/*
 * 2.0.0-beta3: the panel inside the site's WordPress page (shortcode [nexo_panel] on /app/, Front\AccesoWp).
 * Same rules as panel.css, scoped to #nx-wp.nx-panel so the theme and Elementor keep the rest of the page, with
 * the site's palette (post 38 / #nx: Geist, ink buttons, green accents). No global html/body rules.
 * 2.0.0-beta5: the scope is the id (1,1,0 and up) so page 45's custom CSS (#nx a, #nx p, #nx h1-h3, #nx ul,
 * #nx footer, #nx :focus-visible) and the Elementor kit's input rules (0,3,1) no longer win over the panel.
 * Inside page 45 the panel lives in #nx-app (max-width 960px, width calc(100% - 48px), calc(100% - 32px) under
 * 560px); whatever is wide scrolls on its own (the tabs on small screens, tables inside .nx-tabla-caja).
 * .nx-embebido hides the brand (the page header has it).
 * 2.0.0-beta6: checkboxes, radios and ::selection keep the panel's ink + green over Astra's #046bd2.
 * 2.0.0-beta31: every tab has the width the Conectores tab had (76rem, the panel and the page's #nx-app box), so the
 * panel no longer changes size when the tab changes; loose paragraphs keep a readable line (48rem).
 */

#nx-wp.nx-panel {
  --nx-fondo: #f5f6f3;
  --nx-caja: #ffffff;
  --nx-texto: #0f1411;
  --nx-suave: #56615a;
  --nx-borde: #dde1dc;
  --nx-acento: #0f1411;
  --nx-acento-texto: #ffffff;
  --nx-link: #0b7a3b;
  --nx-ok: #0b7a3b;
  --nx-ok-fondo: #e7f6ee;
  --nx-mal: #b42318;
  --nx-mal-fondo: #fdecea;
  --nx-ojo: #8a5a00;
  --nx-ojo-fondo: #fff4dc;
  --nx-gris-fondo: #eef0ec;
  /* 2.0.0-beta33: the mockup's faint text (category counts, card meta, side notes). */
  --nx-tenue: #8b948e;
  --nx-foco: #0f1411;
  --nx-foco-halo: rgba(61, 220, 132, 0.35);
  --nx-verde: #3ddc84;
  --nx-radio: 14px;
  --nx-sombra: 0 1px 2px rgba(15, 20, 17, 0.05);
  color-scheme: light;
  box-sizing: border-box;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  background: var(--nx-fondo);
  border-radius: 20px;
  color: var(--nx-texto);
  font: 16px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

/* 2.0.0-beta31: the page's box around the panel, same width in every tab (any depth: the builder may wrap it). */
#nx-app:has(#nx-wp.nx-panel) {
  max-width: 76rem;
}

/* 2.0.0-beta31: at 76rem a loose paragraph would run the whole width; text keeps a readable line. */
#nx-wp.nx-panel #nx-vista > p.nx-nota,
#nx-wp.nx-panel #nx-vista > .nx-pasos,
#nx-wp.nx-panel #nx-vista > .nx-limites {
  max-width: 48rem;
}

#nx-wp.nx-panel *,
#nx-wp.nx-panel *::before,
#nx-wp.nx-panel *::after {
  box-sizing: border-box;
}

#nx-wp.nx-panel [hidden] {
  display: none !important;
}

#nx-wp.nx-panel a {
  color: var(--nx-acento);
}

/* Ink ring plus a green halo: (1,2,0) beats page 45's #nx :focus-visible; neon alone fails contrast on light. */
#nx-wp.nx-panel :focus-visible,
#nx-wp.nx-panel a:focus-visible {
  outline: 2px solid var(--nx-foco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--nx-foco-halo);
}

#nx-wp.nx-panel h1,
#nx-wp.nx-panel h2,
#nx-wp.nx-panel h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

#nx-wp.nx-panel h1 {
  font-size: 1.5rem;
}

#nx-wp.nx-panel h2 {
  font-size: 1.25rem;
}

#nx-wp.nx-panel h3 {
  font-size: 1.05rem;
}

#nx-wp.nx-panel p {
  margin: 0 0 0.75rem;
}

#nx-wp.nx-panel ul,
#nx-wp.nx-panel ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

#nx-wp.nx-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#nx-wp.nx-panel input[type="checkbox"] + label,
#nx-wp.nx-panel input[type="radio"] + label {
  display: inline;
  font-weight: 400;
  margin-left: 0.35rem;
}

#nx-wp.nx-panel input[type="text"],
#nx-wp.nx-panel input[type="email"],
#nx-wp.nx-panel input[type="password"],
#nx-wp.nx-panel input[type="url"],
#nx-wp.nx-panel input[type="search"],
#nx-wp.nx-panel input[type="tel"],
#nx-wp.nx-panel select,
#nx-wp.nx-panel textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--nx-borde);
  border-radius: 8px;
  background: var(--nx-caja);
  color: var(--nx-texto);
  font: inherit;
}

#nx-wp.nx-panel textarea {
  min-height: 6rem;
  resize: vertical;
}

#nx-wp.nx-panel button,
#nx-wp.nx-panel .nx-boton {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--nx-acento);
  border-radius: 8px;
  background: var(--nx-acento);
  color: var(--nx-acento-texto);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

#nx-wp.nx-panel button.nx-secundario,
#nx-wp.nx-panel .nx-boton.nx-secundario,
#nx-wp.nx-panel .nx-cancelar {
  background: transparent;
  color: var(--nx-acento);
}

#nx-wp.nx-panel button.nx-peligro {
  border-color: var(--nx-mal);
  background: var(--nx-mal);
  color: #ffffff;
}

#nx-wp.nx-panel button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#nx-wp.nx-panel .nx-form {
  margin: 0 0 1rem;
}

#nx-wp.nx-panel .nx-nota {
  color: var(--nx-suave);
  font-size: 0.9rem;
}

#nx-wp.nx-panel .nx-medidor {
  color: var(--nx-suave);
  font-size: 0.9rem;
}

#nx-wp.nx-panel .nx-casillas p {
  margin-bottom: 0.5rem;
}

#nx-wp.nx-panel .nx-ts {
  margin: 0.75rem 0;
  min-height: 0;
}

#nx-wp.nx-panel .nx-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#nx-wp.nx-panel .nx-avanzado {
  margin: 0.5rem 0 1rem;
}

#nx-wp.nx-panel .nx-avanzado summary {
  cursor: pointer;
  color: var(--nx-acento);
  margin-bottom: 0.5rem;
}

#nx-wp.nx-panel .nx-aviso,
#nx-wp.nx-panel .nx-error,
#nx-wp.nx-panel .nx-ok-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1rem;
}

#nx-wp.nx-panel .nx-aviso {
  background: var(--nx-gris-fondo);
  border: 1px solid var(--nx-borde);
}

#nx-wp.nx-panel .nx-aviso.nx-bien,
#nx-wp.nx-panel .nx-ok-msg {
  background: var(--nx-ok-fondo);
  border: 1px solid var(--nx-ok);
}

#nx-wp.nx-panel .nx-aviso.nx-alerta {
  background: var(--nx-ojo-fondo);
  border: 1px solid var(--nx-ojo);
}

#nx-wp.nx-panel .nx-error {
  background: var(--nx-mal-fondo);
  border: 1px solid var(--nx-mal);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .nx-mensaje {
  color: var(--nx-suave);
}

#nx-wp.nx-panel .nx-links {
  font-size: 0.95rem;
}

#nx-wp.nx-panel .nx-pie {
  max-width: 64rem;
  margin: 2rem auto 0;
  padding: 1rem;
  border-top: 1px solid var(--nx-borde);
  color: var(--nx-suave);
  font-size: 0.9rem;
  text-align: center;
}

#nx-wp.nx-panel .nx-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

#nx-wp.nx-panel .nx-marca {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}

#nx-wp.nx-panel .nx-marca a {
  color: var(--nx-texto);
  text-decoration: none;
}

#nx-wp.nx-panel .nx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1 1 auto;
}

#nx-wp.nx-panel .nx-tabs a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--nx-texto);
  text-decoration: none;
}

#nx-wp.nx-panel .nx-tabs a[aria-current="page"] {
  background: var(--nx-acento);
  color: var(--nx-acento-texto);
}

#nx-wp.nx-panel .nx-salir {
  margin: 0;
}

#nx-wp.nx-panel .nx-salir button {
  background: transparent;
  color: var(--nx-acento);
}

#nx-wp.nx-panel .nx-avisos,
#nx-wp.nx-panel #nx-vista,
#nx-wp.nx-panel .nx-reportar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

#nx-wp.nx-panel #nx-vista {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

#nx-wp.nx-panel .nx-cuenta-linea {
  color: var(--nx-suave);
  font-size: 0.95rem;
}

#nx-wp.nx-panel .nx-cuenta-linea button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--nx-acento);
  font-weight: 400;
  text-decoration: underline;
}

#nx-wp.nx-panel .nx-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

/* 2.0.0-beta23: the API key cards go two by two (one column on small screens) so their text has room. */
#nx-wp.nx-panel .nx-tarjetas.nx-apis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 40rem) {
  #nx-wp.nx-panel .nx-tarjetas.nx-apis {
    grid-template-columns: minmax(0, 1fr);
  }
}

#nx-wp.nx-panel .nx-tarjeta {
  padding: 1rem;
  background: var(--nx-caja);
  border: 1px solid var(--nx-borde);
  border-radius: var(--nx-radio);
  box-shadow: var(--nx-sombra);
}

#nx-wp.nx-panel .nx-tarjeta h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

#nx-wp.nx-panel .nx-tarjeta .nx-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* 2.0.0-beta10: a long unbroken message or comment (a URL) must not widen the Reportes card past the screen; the same for a connector's card. */
#nx-wp.nx-panel .nx-reporte-texto {
  overflow-wrap: anywhere;
}

/* 2.0.0-beta10: a connector's name has no spaces and can have 40 characters: its «Conectar con <nombre>» and the notices that repeat it. A Drive folder's name can have 300. */
#nx-wp.nx-panel .nx-lista .nx-acciones button,
#nx-wp.nx-panel .nx-avisos,
#nx-wp.nx-panel .nx-drive {
  overflow-wrap: anywhere;
}

#nx-wp.nx-panel .nx-numero {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

#nx-wp.nx-panel .nx-chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--nx-gris-fondo);
  color: var(--nx-suave);
}

#nx-wp.nx-panel .nx-chip.nx-chip-funciona {
  background: var(--nx-ok-fondo);
  color: var(--nx-ok);
}

#nx-wp.nx-panel .nx-chip.nx-chip-rechazada,
#nx-wp.nx-panel .nx-chip.nx-chip-bloqueada {
  background: var(--nx-mal-fondo);
  color: var(--nx-mal);
}

#nx-wp.nx-panel .nx-chip.nx-chip-saldo,
#nx-wp.nx-panel .nx-chip.nx-chip-verificar {
  background: var(--nx-ojo-fondo);
  color: var(--nx-ojo);
}

/* 2.0.0-beta28: «No se pudo probar» says nothing against the key: gray like «Sin cargar». */
#nx-wp.nx-panel .nx-chip.nx-chip-neutro {
  background: var(--nx-gris-fondo);
  color: var(--nx-suave);
}

/* 2.0.0-beta7: «No funciona» (no answer, paused account, Nexo error) and the chip while «Probar» is running. */
#nx-wp.nx-panel .nx-chip.nx-chip-nofunciona {
  background: var(--nx-ojo-fondo);
  color: var(--nx-ojo);
}

#nx-wp.nx-panel .nx-chip.nx-chip-probando {
  background: var(--nx-gris-fondo);
  color: var(--nx-suave);
  animation: nx-latido 1.2s ease-in-out infinite;
}

@keyframes nx-latido {
  50% {
    opacity: 0.45;
  }
}

#nx-wp.nx-panel .nx-lista {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

#nx-wp.nx-panel .nx-lista li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--nx-borde);
}

#nx-wp.nx-panel .nx-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

#nx-wp.nx-panel .nx-tabla th,
#nx-wp.nx-panel .nx-tabla td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--nx-borde);
  text-align: left;
}

#nx-wp.nx-panel .nx-tabla td.nx-cifra {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Wide tables scroll inside their box instead of pushing #nx-app; the min-width only applies inside the box. */
#nx-wp.nx-panel .nx-tabla-caja {
  max-width: 100%;
  margin: 0 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#nx-wp.nx-panel .nx-tabla-caja .nx-tabla {
  min-width: 28rem;
  margin: 0;
}

#nx-wp.nx-panel .nx-vacio {
  margin: 0 0 1rem;
  padding: 1.5rem;
  border: 1px dashed var(--nx-borde);
  border-radius: var(--nx-radio);
  color: var(--nx-suave);
  text-align: center;
}

#nx-wp.nx-panel .nx-vacio .nx-vacio-titulo {
  margin: 0;
  color: var(--nx-texto);
  font-weight: 600;
}

#nx-wp.nx-panel .nx-vacio .nx-nota {
  margin: 0.35rem 0 0;
}

#nx-wp.nx-panel .nx-periodos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

#nx-wp.nx-panel .nx-periodos button[aria-pressed="true"] {
  background: var(--nx-acento);
  color: var(--nx-acento-texto);
}

#nx-wp.nx-panel .nx-periodos button[aria-pressed="false"] {
  background: transparent;
  color: var(--nx-acento);
}

#nx-wp.nx-panel .nx-barra {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--nx-gris-fondo);
  overflow: hidden;
}

#nx-wp.nx-panel .nx-barra progress {
  display: block;
  width: 100%;
  height: 0.5rem;
  border: 0;
}

#nx-wp.nx-panel .nx-copiar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}

#nx-wp.nx-panel .nx-copiar code,
#nx-wp.nx-panel .nx-copiar input {
  flex: 1 1 18rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

/* .nx-copiar is the flex row above; on the button itself (Claude's instructions) it stays a plain button. */
#nx-wp.nx-panel button.nx-copiar {
  display: inline-block;
  margin: 0 0.5rem 0 0;
}

#nx-wp.nx-panel .nx-instrucciones {
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nx-borde);
}

#nx-wp.nx-panel .nx-instrucciones-titulo {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

#nx-wp.nx-panel .nx-instrucciones-texto {
  width: 100%;
  max-width: none;
  min-height: 14rem;
  resize: vertical;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

#nx-wp.nx-panel .nx-pasos {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

#nx-wp.nx-panel .nx-pasos li {
  margin-bottom: 0.5rem;
}

#nx-wp.nx-panel .nx-bloqueado {
  padding: 1rem;
  border: 1px dashed var(--nx-borde);
  border-radius: var(--nx-radio);
  color: var(--nx-suave);
}

#nx-wp.nx-panel .nx-reportar {
  margin-top: 1rem;
}

#nx-wp.nx-panel .nx-reportar select {
  max-width: 20rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 40rem) {
  #nx-wp.nx-panel .nx-cabecera {
    flex-wrap: wrap;
  }

  /* One scrolling row of pills; the padding keeps the focus ring inside the scroll box. */
  #nx-wp.nx-panel .nx-tabs {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    padding: 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #nx-wp.nx-panel .nx-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  #nx-wp.nx-panel .nx-numero {
    font-size: 1.35rem;
  }
}

/* ---- site look on top of the shared rules ---------------------------------------------------------------------- */

#nx-wp.nx-panel a {
  color: var(--nx-link);
}

#nx-wp.nx-panel h1,
#nx-wp.nx-panel h2,
#nx-wp.nx-panel h3 {
  color: var(--nx-texto);
  font-family: inherit;
  letter-spacing: -0.01em;
  text-transform: none;
}

#nx-wp.nx-panel button,
#nx-wp.nx-panel .nx-boton {
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.3;
  text-transform: none;
  box-shadow: none;
}

#nx-wp.nx-panel button:hover,
#nx-wp.nx-panel .nx-boton:hover {
  background: #26302a;
  color: #ffffff;
}

#nx-wp.nx-panel button.nx-secundario:hover,
#nx-wp.nx-panel .nx-boton.nx-secundario:hover,
#nx-wp.nx-panel .nx-cancelar:hover,
#nx-wp.nx-panel .nx-salir button:hover {
  background: var(--nx-gris-fondo);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .nx-salir button,
#nx-wp.nx-panel button.nx-secundario,
#nx-wp.nx-panel .nx-boton.nx-secundario {
  border-color: var(--nx-borde);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .nx-cabecera {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  max-width: none;
  background: var(--nx-caja);
  border: 1px solid var(--nx-borde);
  border-radius: var(--nx-radio);
}

#nx-wp.nx-panel .nx-marca,
#nx-wp.nx-panel .nx-chip,
#nx-wp.nx-panel .nx-tabla th {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#nx-wp.nx-panel .nx-marca {
  font-size: 0.95rem;
}

/* Tabs are the site's pills at every width (#nx .pill: white, hairline border, fully rounded). */
#nx-wp.nx-panel .nx-tabs a {
  border: 1px solid var(--nx-borde);
  border-radius: 999px;
  background: var(--nx-caja);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nx-suave);
}

#nx-wp.nx-panel .nx-tabs a:hover {
  background: var(--nx-gris-fondo);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .nx-tabs a[aria-current="page"] {
  border-color: var(--nx-texto);
  background: var(--nx-texto);
  color: #ffffff;
}

/* Salir stays on the right when the tabs wrap below (small screens) or the brand is hidden (.nx-embebido). */
#nx-wp.nx-panel .nx-salir {
  margin-left: auto;
}

#nx-wp.nx-panel .nx-avisos,
#nx-wp.nx-panel #nx-vista,
#nx-wp.nx-panel .nx-reportar,
#nx-wp.nx-panel .nx-pie {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#nx-wp.nx-panel .nx-tarjeta {
  padding: 1.25rem;
}

#nx-wp.nx-panel .nx-tarjeta:hover {
  border-color: #c5ccc6;
}

#nx-wp.nx-panel .nx-saldo {
  color: var(--nx-ojo);
  font-size: 0.9rem;
}

/* ---- embedded in the site page: its header already carries the brand; .nx-pie stays (page 45 has no legal links) */

#nx-wp.nx-panel.nx-embebido .nx-marca {
  display: none;
}

#nx-wp.nx-panel.nx-embebido .nx-cabecera {
  justify-content: space-between;
}

/* ---- 2.0.0-beta6: Astra paints checked boxes and the text selection #046bd2 (--ast-global-color-0, 0,3,1);
   the panel keeps its ink + green (1,3,1 wins without !important). */

#nx-wp.nx-panel input[type="checkbox"],
#nx-wp.nx-panel input[type="radio"] {
  accent-color: var(--nx-texto);
}

#nx-wp.nx-panel input[type="checkbox"]:checked,
#nx-wp.nx-panel input[type="radio"]:checked {
  border-color: var(--nx-texto);
  background-color: var(--nx-texto);
  box-shadow: none;
}

#nx-wp.nx-panel::selection,
#nx-wp.nx-panel ::selection {
  background: var(--nx-verde, #3ddc84);
  color: #0f1411;
}

/* ---- 2.0.0-beta7: Probar, Tus límites, Clientes and «Conectar a mano» ------------------------------------------ */

#nx-wp.nx-panel .nx-tarjeta[aria-busy="true"] .nx-mensaje {
  color: var(--nx-texto);
}

#nx-wp.nx-panel .nx-mensaje.nx-motivo-error {
  color: var(--nx-mal);
}

#nx-wp.nx-panel .nx-nota.nx-probada {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

#nx-wp.nx-panel .nx-limites {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

#nx-wp.nx-panel .nx-limites li {
  margin-bottom: 0.35rem;
}

#nx-wp.nx-panel .nx-limite-nivel,
#nx-wp.nx-panel .nx-contador.nx-contador-lleno {
  color: var(--nx-ojo);
  font-weight: 600;
}

#nx-wp.nx-panel .nx-contador {
  margin: 0 0 1rem;
  color: var(--nx-suave);
  font-size: 0.9rem;
}

#nx-wp.nx-panel .nx-cliente-editor:empty {
  display: none;
}

#nx-wp.nx-panel .nx-cliente-editor {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0 0 1rem;
}

#nx-wp.nx-panel .nx-cliente-editor textarea,
#nx-wp.nx-panel #nx-cliente-md {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 16rem;
  resize: vertical;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* The row that opens the manual steps lets its text column take the full width. */
#nx-wp.nx-panel .nx-lista li.nx-fila-manual > div {
  flex: 1 1 100%;
  min-width: 0;
}

#nx-wp.nx-panel .nx-manual-lugar:empty {
  display: none;
}

#nx-wp.nx-panel .nx-manual {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border: 1px solid var(--nx-borde);
  border-radius: var(--nx-radio);
  background: var(--nx-caja);
}

#nx-wp.nx-panel .nx-manual h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

#nx-wp.nx-panel .nx-manual-aviso {
  margin: 0 0 0.75rem;
  color: var(--nx-ojo);
  font-weight: 600;
}

#nx-wp.nx-panel .nx-manual-pasos {
  margin: 0;
  padding: 0;
}

#nx-wp.nx-panel .nx-manual-paso {
  margin: 0 0 0.75rem;
  padding: 0;
}

#nx-wp.nx-panel .nx-manual-paso p {
  margin: 0 0 0.5rem;
}

#nx-wp.nx-panel .nx-manual textarea {
  display: block;
  width: 100%;
  max-width: none;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  word-break: break-all;
}

#nx-wp.nx-panel .nx-nota.nx-volviste {
  margin: 0.35rem 0 0;
  color: var(--nx-texto);
}

/* 2.0.0-beta7: «Guardar en Google Drive», tarjeta arriba de «Apps» (dis_drive §2). */
#nx-wp.nx-panel .nx-drive {
  margin: 0 0 1.5rem;
}

#nx-wp.nx-panel .nx-drive h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

#nx-wp.nx-panel .nx-drive > p,
#nx-wp.nx-panel .nx-drive-form > p {
  margin: 0.5rem 0 0;
}

#nx-wp.nx-panel .nx-drive-pasos,
#nx-wp.nx-panel .nx-drive-faltan,
#nx-wp.nx-panel .nx-drive-busqueda {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

#nx-wp.nx-panel .nx-drive-pasos li + li {
  margin-top: 0.35rem;
}

#nx-wp.nx-panel .nx-drive-faltan,
#nx-wp.nx-panel .nx-drive-busqueda {
  color: var(--nx-suave);
  font-size: 0.875rem;
}

#nx-wp.nx-panel .nx-drive-form {
  margin-top: 0.75rem;
}

#nx-wp.nx-panel .nx-drive-form > label {
  margin-top: 0.75rem;
}

#nx-wp.nx-panel .nx-drive-form > label:first-child {
  margin-top: 0;
}

#nx-wp.nx-panel .nx-drive-form .nx-drive-casilla label {
  display: inline;
  margin: 0 0 0 0.35rem;
  font-weight: 400;
}

/* 2.0.0-beta33: the folder change form under the Drive summary (.drive-form). */
#nx-wp.nx-panel .nx-drive-cambiar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--nx-gris-fondo);
}

#nx-wp.nx-panel .nx-drive-cambiar[hidden],
#nx-wp.nx-panel .nx-drive .nx-manual-lugar:empty {
  display: none;
}

/* ---- 2.0.0-beta8: aire bajo los textarea sueltos, «Claves de API» y «¿Algo no anda?» ---------------------------- */

/* «Conectar a mano» (form.nx-manual-form: label, textarea, p.nx-acciones) and the suggested instructions (textarea,
   p with Copiar): the button row sat glued to the textarea. The .nx-manual-paso one has to beat
   «.nx-manual-paso p { margin: 0 0 .5rem }». */
#nx-wp.nx-panel textarea + p,
#nx-wp.nx-panel textarea + .nx-acciones,
#nx-wp.nx-panel .nx-manual-paso .nx-manual-form textarea + .nx-acciones {
  margin-top: 0.75rem;
}

#nx-wp.nx-panel .nx-claves-api {
  margin: 1.5rem 0 1rem;
}

#nx-wp.nx-panel .nx-claves-api h2 {
  margin: 0 0 0.35rem;
}

#nx-wp.nx-panel .nx-claves-api h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}

#nx-wp.nx-panel .nx-claves-api .nx-form {
  margin: 0 0 0.5rem;
}

#nx-wp.nx-panel .nx-reauth .nx-nota {
  margin-top: 0.5rem;
}

/* «¿Algo no anda?»: a help card of its own at the end, apart from the view. */
#nx-wp.nx-panel .nx-reportar.nx-ayuda {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#nx-wp.nx-panel .nx-ayuda-caja {
  padding: 1.25rem;
  background: var(--nx-caja);
  border: 1px solid var(--nx-borde);
  border-radius: var(--nx-radio);
  box-shadow: var(--nx-sombra);
}

#nx-wp.nx-panel .nx-ayuda h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

#nx-wp.nx-panel .nx-ayuda .nx-form {
  margin: 0;
}

/* ---- 2.0.0-beta27: «Qué hace Nexo con esta clave» (design 4.4) and the Jev card with Jev included (3.3) ---------- */

#nx-wp.nx-panel .nx-funciones-bloque {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--nx-borde);
}

#nx-wp.nx-panel .nx-funciones-titulo {
  margin: 0 0 0.5rem;
}

#nx-wp.nx-panel .nx-funcion {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
}

#nx-wp.nx-panel .nx-funcion label {
  margin: 0;
  font-weight: 400;
}

#nx-wp.nx-panel .nx-nota.nx-funcion-nota {
  margin: 0.2rem 0 0 3rem;
  font-size: 0.85rem;
}

#nx-wp.nx-panel .nx-nota.nx-funcion-nota[hidden],
#nx-wp.nx-panel .nx-nota.nx-funciones-linea:empty {
  display: none;
}

#nx-wp.nx-panel .nx-nota.nx-funciones-linea {
  margin: 0.5rem 0 0;
}

#nx-wp.nx-panel .nx-nota.nx-funciones-linea.nx-motivo-error {
  color: var(--nx-mal);
}

/* 2.0.0-beta28: some air between the last switch and what follows it («Para que funcione…» or, with it hidden, the
   next note or link): on the block itself, since a hidden nx-saldo is still its next sibling. */
#nx-wp.nx-panel .nx-funciones-bloque {
  margin-bottom: 0.5rem;
}

/* The switch: a track with a knob, green when on. It beats the 1,3,1 checkbox rules above (1,4,1 and 1,5,1). */
#nx-wp.nx-panel input[type="checkbox"].nx-switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nx-borde);
  border-radius: 999px;
  background-color: var(--nx-gris-fondo);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#nx-wp.nx-panel input[type="checkbox"].nx-switch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 20, 17, 0.3);
  transform: translateY(-50%);
  transition: left 0.15s ease;
}

#nx-wp.nx-panel input[type="checkbox"].nx-switch:checked {
  border-color: var(--nx-ok);
  background-color: var(--nx-ok);
}

#nx-wp.nx-panel input[type="checkbox"].nx-switch:checked::before {
  left: calc(100% - 1.15rem);
}

#nx-wp.nx-panel input[type="checkbox"].nx-switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#nx-wp.nx-panel input[type="checkbox"].nx-switch:focus-visible {
  outline: 2px solid var(--nx-foco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--nx-foco-halo);
}

/* 2.0.0-beta28 (E2): only the Jev included card keeps its own height in the two-by-two grid. */
#nx-wp.nx-panel .nx-tarjeta.nx-jev-incluido {
  align-self: start;
}

/* 2.0.0-beta28 (E3): «Última prueba» sits under the message, apart from the switches. */
#nx-wp.nx-panel .nx-nota.nx-probada {
  margin-bottom: 0.5rem;
}

#nx-wp.nx-panel .nx-nota.nx-jev-propia {
  margin-top: 0.25rem;
}

/*
 * 2.0.0-beta29 (diseno.md §5): the Conectores tab with its catalog. Wider only in that view: the page's #nx-app box
 * (960px) and the panel's own 72rem go to 76rem (since beta31 every tab has that width). The #nx-app rule is the one that
 * can't carry the #nx-wp.nx-panel prefix (it widens the page's box around the panel, diseno.md §5 names it); any
 * depth, since the page builder may wrap the shortcode.
 */
#nx-app:has(#nx-wp.nx-panel.nx-vista-conectores) {
  max-width: 76rem;
}

#nx-wp.nx-panel.nx-vista-conectores {
  max-width: 76rem;
}

/*
 * 2.0.0-beta33 (b33 contract §2.2/§2.5): the Conectores view of maqueta b33_conectores. Kept classes are rewritten
 * here in place; the rules of the retired ones (cx-cuerpo, cx-cats-titulo, cx-resultados, cx-app-cab, cx-app-acciones,
 * cx-propia, cx-sin-catalogo, label.cx-orden) were removed once panel.js stopped emitting them.
 */
#nx-wp.nx-panel .cx-vista {
  min-width: 0;
}

/* 2.0.0-beta33: inside the view buttons take the mockup's .btn sizes; .nx-secundario and .cx-mas are its .ghost. */
#nx-wp.nx-panel .cx-vista button {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

#nx-wp.nx-panel .cx-vista button.nx-secundario,
#nx-wp.nx-panel .cx-vista button.cx-mas {
  border-color: var(--nx-borde);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .cx-vista button.nx-secundario:hover,
#nx-wp.nx-panel .cx-vista button.cx-mas:hover {
  border-color: var(--nx-texto);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

/* 2.0.0-beta33: the mockup's .btn.sm (row action, card foot, Drive card, report strip). */
#nx-wp.nx-panel .cx-fila-acciones > button,
#nx-wp.nx-panel .cx-app-pie > button,
#nx-wp.nx-panel .cx-reporte > button,
#nx-wp.nx-panel .cx-lado .nx-drive button {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
}

/* 2.0.0-beta33: the mockup's .link. */
#nx-wp.nx-panel .cx-vista button.cx-enlace {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--nx-suave);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#nx-wp.nx-panel .cx-vista button.cx-enlace:hover {
  background: none;
  color: var(--nx-texto);
}

/* 2.0.0-beta33: state pills (row name, card foot): the mockup's .pill over the existing chip colours. */
#nx-wp.nx-panel .cx-fila-nombre .nx-chip,
#nx-wp.nx-panel .cx-app-pie .nx-chip {
  padding: 2px 7px;
  border-radius: 6px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 2.0.0-beta33: header (.head). */
#nx-wp.nx-panel .cx-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 18px;
}

#nx-wp.nx-panel .cx-intro h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#nx-wp.nx-panel .cx-intro-texto {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
}

#nx-wp.nx-panel .cx-intro-texto p {
  margin: 0;
  color: var(--nx-suave);
}

#nx-wp.nx-panel .cx-intro-accion {
  flex: 0 0 auto;
}

#nx-wp.nx-panel .cx-intro-accion p {
  /* 2.0.0-beta33: the wp-admin note wraps under the button and no longer squeezes the title. */
  max-width: 20rem;
  margin: 6px 0 0;
  font-size: 0.85rem;
}

#nx-wp.nx-panel button.cx-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* 2.0.0-beta36: the usage video's button, under «Agregar conector personalizado» and as wide as that column. */
#nx-wp.nx-panel .cx-intro-accion button.cx-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0 0;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-mas-signo {
  font-size: 16px;
  line-height: 1;
}

/* 2.0.0-beta33: the state filter chips (.summary / .chip / .dot). */
#nx-wp.nx-panel .cx-estados {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

#nx-wp.nx-panel button.cx-estado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--nx-borde);
  border-radius: 999px;
  background: var(--nx-caja);
  color: var(--nx-suave);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

#nx-wp.nx-panel button.cx-estado:hover {
  border-color: var(--nx-texto);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

#nx-wp.nx-panel button.cx-estado[aria-pressed="true"] {
  border-color: var(--nx-texto);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

#nx-wp.nx-panel button.cx-estado b {
  color: var(--nx-texto);
  font-weight: 600;
}

#nx-wp.nx-panel .cx-punto {
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-suave);
}

#nx-wp.nx-panel .cx-punto.cx-punto-ok {
  background: #12a150;
}

#nx-wp.nx-panel .cx-punto.cx-punto-aviso {
  background: #e0a000;
}

#nx-wp.nx-panel .cx-punto.cx-punto-mal {
  background: #d92d20;
}

/* 2.0.0-beta33: your connectors and the Drive card side by side (.grid-top); no overflow, so the menu is not clipped. */
#nx-wp.nx-panel .cx-arriba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

#nx-wp.nx-panel .cx-tarjeta {
  min-width: 0;
  border: 1px solid var(--nx-borde);
  border-radius: var(--nx-radio);
  background: var(--nx-caja);
}

#nx-wp.nx-panel .cx-seccion {
  min-width: 0;
  margin: 0;
}

#nx-wp.nx-panel .cx-seccion-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

#nx-wp.nx-panel .cx-seccion-cab h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

#nx-wp.nx-panel .cx-tuyos > .cx-seccion-cab {
  justify-content: space-between;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nx-gris-fondo);
}

#nx-wp.nx-panel .cx-tuyos > .cx-seccion-cab h2 {
  font-size: 16px;
  letter-spacing: 0;
}

#nx-wp.nx-panel .cx-cuenta {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--nx-gris-fondo);
  color: var(--nx-suave);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

#nx-wp.nx-panel .cx-seccion-pista {
  color: var(--nx-suave);
  font-size: 13px;
}

/* The app's logo: a tile with the real icon, or its first letter. 2.0.0-beta33: 36px tile, 20px image (.ico). */
#nx-wp.nx-panel .cx-icono {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nx-borde);
  border-radius: 10px;
  background: var(--nx-caja);
  overflow: hidden;
}

/* The logos are drawn for a light background: their tile stays white in dark mode too (a black logo would vanish). */
#nx-wp.nx-panel .cx-icono:not(.cx-letra) {
  background: #ffffff;
}

#nx-wp.nx-panel .cx-icono img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#nx-wp.nx-panel .cx-icono.cx-letra {
  background: var(--nx-gris-fondo);
  color: var(--nx-texto);
  font-weight: 600;
  font-size: 15px;
}

#nx-wp.nx-panel .cx-icono.cx-grande {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
}

#nx-wp.nx-panel .cx-icono.cx-grande img {
  width: 2.5rem;
  height: 2.5rem;
}

#nx-wp.nx-panel .cx-icono.cx-chico {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.5rem;
  border-radius: 7px;
  vertical-align: middle;
  font-size: 0.85rem;
}

#nx-wp.nx-panel .cx-icono.cx-chico img {
  width: 1.15rem;
  height: 1.15rem;
}

/* 2.0.0-beta33: one connector per grid line (.row); the border goes between visible rows only (filters hide rows). */
#nx-wp.nx-panel ul.cx-filas {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nx-wp.nx-panel .cx-filas > li.cx-fila {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
}

#nx-wp.nx-panel .cx-filas > li.cx-fila:not([hidden]) ~ li.cx-fila {
  border-top: 1px solid var(--nx-gris-fondo);
}

#nx-wp.nx-panel .cx-fila-texto {
  min-width: 0;
}

#nx-wp.nx-panel .cx-fila-nombre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

#nx-wp.nx-panel .cx-fila-desc {
  margin: 0;
  overflow: hidden;
  color: var(--nx-suave);
  font-size: 13.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-fila-acciones {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

#nx-wp.nx-panel .cx-fila-acciones > button {
  white-space: nowrap;
}

/* 2.0.0-beta33: the «⋯» menu (.kebab / .menu), over the following rows and the sticky catalog tools. */
#nx-wp.nx-panel .cx-menu {
  position: relative;
  flex: 0 0 auto;
}

#nx-wp.nx-panel .cx-vista button.cx-menu-boton {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--nx-borde);
  border-radius: 8px;
  background: var(--nx-caja);
  color: var(--nx-suave);
  font-size: 18px;
  line-height: 1;
}

#nx-wp.nx-panel .cx-vista button.cx-menu-boton:hover,
#nx-wp.nx-panel .cx-vista button.cx-menu-boton[aria-expanded="true"] {
  border-color: var(--nx-borde);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .cx-menu-lista {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 5px;
  border: 1px solid var(--nx-borde);
  border-radius: 10px;
  background: var(--nx-caja);
  box-shadow: 0 12px 30px -12px rgba(15, 20, 17, 0.3);
}

#nx-wp.nx-panel .cx-vista .cx-menu-lista > button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--nx-texto);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-vista .cx-menu-lista > button:hover {
  background: var(--nx-gris-fondo);
  color: var(--nx-texto);
}

#nx-wp.nx-panel .cx-vista .cx-menu-lista > button.nx-peligro,
#nx-wp.nx-panel .cx-vista .cx-menu-lista > button.nx-peligro:hover {
  color: var(--nx-mal);
}

#nx-wp.nx-panel .cx-menu-lista > hr {
  height: 0;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--nx-gris-fondo);
}

/* 2.0.0-beta33: the strip with the row's long text (.note.warn / .note.bad), one line until «Ver detalle». */
#nx-wp.nx-panel .cx-franja {
  grid-column: 2 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin-top: -2px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

#nx-wp.nx-panel .cx-franja.cx-franja-aviso {
  background: var(--nx-ojo-fondo);
  color: var(--nx-ojo);
}

#nx-wp.nx-panel .cx-franja.cx-franja-mal {
  background: var(--nx-mal-fondo);
  color: var(--nx-mal);
}

#nx-wp.nx-panel .cx-franja-texto {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-franja.cx-abierta .cx-franja-texto {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#nx-wp.nx-panel .cx-vista button.cx-franja-mas,
#nx-wp.nx-panel .cx-vista button.cx-franja-mas:hover {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: underline;
  white-space: nowrap;
}

/* 2.0.0-beta33: today's per-row notices; an empty place takes no space. */
#nx-wp.nx-panel .cx-fila-extra {
  grid-column: 2 / -1;
  min-width: 0;
}

#nx-wp.nx-panel .cx-fila-extra:empty {
  display: none;
}

#nx-wp.nx-panel .cx-fila-extra:not(:has(> :not([hidden]):not(:empty))) {
  display: none;
}

#nx-wp.nx-panel .cx-fila-extra > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* 2.0.0-beta33: the gap goes only between visible notices: the hidden p.nx-error and the empty places add none. */
#nx-wp.nx-panel .cx-fila-extra > :not([hidden]):not(:empty) ~ :not([hidden]):not(:empty) {
  margin-top: 8px;
}

/* 2.0.0-beta33: the Drive side card (.card > .drive, .st, .kv, .drive-form, .side-note). */
#nx-wp.nx-panel .cx-lado {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#nx-wp.nx-panel .cx-lado .nx-drive.cx-tarjeta {
  margin: 0;
  padding: 16px 18px;
}

#nx-wp.nx-panel .nx-drive h2.cx-drive-estado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

#nx-wp.nx-panel .cx-lado .nx-drive > h2 + p {
  margin-top: 0;
}

#nx-wp.nx-panel .cx-lado .nx-drive > p.nx-nota {
  color: var(--nx-suave);
  font-size: 13.5px;
}

#nx-wp.nx-panel dl.cx-drive-datos {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  font-size: 13.5px;
}

#nx-wp.nx-panel .cx-drive-datos > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

#nx-wp.nx-panel .cx-drive-datos dt {
  flex: 0 0 auto;
  margin: 0;
  color: var(--nx-suave);
  font-weight: 400;
}

#nx-wp.nx-panel .cx-drive-datos dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-lado .nx-drive-cambiar > .nx-drive-form {
  margin-top: 0;
}

#nx-wp.nx-panel .cx-lado .nx-drive-form > label {
  margin: 10px 0 5px;
  font-size: 13px;
  font-weight: 500;
}

#nx-wp.nx-panel .cx-lado .nx-drive-form > label:first-child {
  margin-top: 0;
}

#nx-wp.nx-panel .cx-lado .nx-drive input:not([type="checkbox"]):not([type="radio"]) {
  max-width: none;
  padding: 8px 10px;
  border-radius: 9px;
}

#nx-wp.nx-panel .cx-lado .nx-drive-form .nx-nota {
  color: var(--nx-tenue);
  font-size: 12.5px;
}

#nx-wp.nx-panel .cx-lado-nota {
  margin: 0;
  color: var(--nx-tenue);
  font-size: 12.5px;
}

/* 2.0.0-beta33: the catalog (.cat): sticky tools (search, order, one scrolling line of categories), then the cards. */
#nx-wp.nx-panel .cx-seccion.cx-catalogo {
  margin-top: 28px;
}

/* 2.0.0-beta33: the sticky block; the dialog's ul.cx-herramientas shares the name, hence the parent in the selector. */
#nx-wp.nx-panel .cx-catalogo > .cx-herramientas {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 10;
  min-width: 0;
  padding: 10px 0;
  background: var(--nx-fondo);
}

#nx-wp.nx-panel .cx-barra {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

#nx-wp.nx-panel .cx-buscar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--nx-borde);
  border-radius: 11px;
  background: var(--nx-caja);
  color: var(--nx-tenue);
}

#nx-wp.nx-panel .cx-buscar:focus-within {
  outline: 2px solid var(--nx-foco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--nx-foco-halo);
}

#nx-wp.nx-panel svg.cx-lupa {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

#nx-wp.nx-panel .cx-buscar input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--nx-texto);
  font-size: 14px;
  outline: 0;
}

#nx-wp.nx-panel .cx-buscar input:focus,
#nx-wp.nx-panel .cx-buscar input:focus-visible {
  box-shadow: none;
  outline: 0;
}

#nx-wp.nx-panel select.cx-orden {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--nx-borde);
  border-radius: 11px;
  background-color: var(--nx-caja);
  color: var(--nx-texto);
  font-size: 14px;
}

#nx-wp.nx-panel .cx-cats {
  position: static;
  display: flex;
  gap: 6px;
  padding: 10px 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#nx-wp.nx-panel button.cx-cat {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  padding: 5px 11px;
  border: 1px solid var(--nx-borde);
  border-radius: 999px;
  background: var(--nx-caja);
  color: var(--nx-suave);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

#nx-wp.nx-panel button.cx-cat:hover {
  border-color: var(--nx-texto);
  background: var(--nx-caja);
  color: var(--nx-texto);
}

#nx-wp.nx-panel button.cx-cat[aria-pressed="true"] {
  border-color: var(--nx-texto);
  background: var(--nx-texto);
  color: var(--nx-caja);
}

#nx-wp.nx-panel .cx-cat-n {
  margin-left: 5px;
  color: var(--nx-tenue);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
}

#nx-wp.nx-panel button.cx-cat[aria-pressed="true"] .cx-cat-n {
  color: #9aa39d;
}

#nx-wp.nx-panel .cx-resumen {
  margin: 6px 0 12px;
  color: var(--nx-suave);
  font-size: 13px;
}

/* 2.0.0-beta33: compact app cards (.apps / .app / .meta / .foot / .empty / .more). */
#nx-wp.nx-panel .cx-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 0;
}

#nx-wp.nx-panel .cx-app {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: start;
  gap: 4px 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--nx-borde);
  border-radius: 12px;
  background: var(--nx-caja);
  color: var(--nx-texto);
  box-shadow: none;
  overflow-wrap: anywhere;
  transition: border-color 0.12s;
}

#nx-wp.nx-panel .cx-app:hover {
  border-color: #b9c0ba;
  box-shadow: none;
}

#nx-wp.nx-panel .cx-app > .cx-icono {
  grid-column: 1;
  grid-row: 1 / 3;
}

#nx-wp.nx-panel .cx-app-nombre {
  align-self: end;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-app-cat {
  align-self: flex-start;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--nx-tenue);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-app-desc {
  grid-column: 1 / -1;
  display: -webkit-box;
  min-height: 39px;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--nx-suave);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#nx-wp.nx-panel .cx-app-solo,
#nx-wp.nx-panel .cx-app .nx-error {
  grid-column: 1 / -1;
  margin: 0;
}

#nx-wp.nx-panel .cx-app-pie {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

#nx-wp.nx-panel .cx-app-herr {
  white-space: nowrap;
}

#nx-wp.nx-panel .cx-vacio {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--nx-borde);
  border-radius: 12px;
  background: var(--nx-caja);
  color: var(--nx-suave);
  text-align: center;
}

#nx-wp.nx-panel .cx-vacio strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--nx-texto);
  font-size: 1.05rem;
}

#nx-wp.nx-panel .cx-ver-mas {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}

/* 2.0.0-beta33: the report strip at the end of the view (.report). */
#nx-wp.nx-panel .cx-reporte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 10px;
  padding: 12px 16px;
  border: 1px solid var(--nx-borde);
  border-radius: 12px;
  background: var(--nx-caja);
  color: var(--nx-suave);
  font-size: 14px;
}

/* 2.0.0-beta33: the report dialog (mockup .modal > .card: 480px, 20px padding). */
#nx-wp.nx-panel dialog.cx-dialogo.cx-dialogo-reporte {
  width: min(480px, calc(100% - 2rem));
}

#nx-wp.nx-panel dialog.cx-dialogo.cx-dialogo-reporte .cx-d-cuerpo {
  padding: 20px;
}

/* Windows: tools of an app, the key of an app, the custom connector form. */
#nx-wp.nx-panel dialog.cx-dialogo {
  width: min(47rem, calc(100% - 2rem));
  max-height: min(90vh, 54rem);
  padding: 0;
  border: 1px solid var(--nx-borde);
  border-radius: 18px;
  background: var(--nx-caja);
  color: var(--nx-texto);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
  overflow: hidden;
}

#nx-wp.nx-panel dialog.cx-dialogo[open] {
  display: flex;
  flex-direction: column;
}

#nx-wp.nx-panel dialog.cx-dialogo.cx-chico {
  width: min(36rem, calc(100% - 2rem));
}

#nx-wp.nx-panel dialog.cx-dialogo::backdrop {
  background: rgba(15, 20, 17, 0.55);
}

#nx-wp.nx-panel .cx-d-cab {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem 1.75rem 1.35rem;
  border-bottom: 1px solid var(--nx-borde);
}

#nx-wp.nx-panel .cx-d-cab h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  overflow-wrap: anywhere;
}

#nx-wp.nx-panel .cx-d-titulo {
  min-width: 0;
}

#nx-wp.nx-panel .cx-d-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

#nx-wp.nx-panel .cx-p-icono {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--nx-ok-fondo);
  color: var(--nx-ok);
  font-size: 1.4rem;
  font-weight: 700;
}

#nx-wp.nx-panel button.cx-d-cerrar {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  padding: 0;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--nx-suave);
  font-size: 1.4rem;
  line-height: 1;
}

#nx-wp.nx-panel button.cx-d-cerrar:hover {
  background: var(--nx-gris-fondo);
}

#nx-wp.nx-panel .cx-d-cuerpo {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

#nx-wp.nx-panel .cx-d-cuerpo > * {
  min-width: 0;
}

#nx-wp.nx-panel .cx-d-desc {
  margin: 0;
  font-size: 1.02rem;
}

#nx-wp.nx-panel .cx-d-cuerpo input,
#nx-wp.nx-panel .cx-d-cuerpo textarea {
  max-width: none;
}

#nx-wp.nx-panel .cx-d-cuerpo form#nx-form-conector {
  margin: 0;
}

#nx-wp.nx-panel .cx-form {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

#nx-wp.nx-panel .cx-form-pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

#nx-wp.nx-panel .cx-h-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.85rem;
}

#nx-wp.nx-panel .cx-h-cab h3 {
  margin: 0;
}

#nx-wp.nx-panel .cx-h-cab input.cx-h-buscar {
  flex: 1 1 14rem;
  max-width: 20rem;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  font-size: 0.93rem;
}

#nx-wp.nx-panel ul.cx-herramientas {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nx-wp.nx-panel .cx-herr {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--nx-borde);
  border-radius: 10px;
  background: var(--nx-caja);
}

#nx-wp.nx-panel .cx-herr-nombre {
  color: var(--nx-texto);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

#nx-wp.nx-panel .cx-herr-desc {
  margin: 0;
  color: var(--nx-suave);
  font-size: 0.9rem;
}

#nx-wp.nx-panel .cx-d-pie {
  margin: 0;
  color: var(--nx-suave);
  font-size: 0.85rem;
}

@media (max-width: 40rem) {
  #nx-wp.nx-panel dialog.cx-dialogo,
  #nx-wp.nx-panel dialog.cx-dialogo.cx-chico {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  #nx-wp.nx-panel .cx-d-cab,
  #nx-wp.nx-panel .cx-d-cuerpo {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  #nx-wp.nx-panel .cx-h-cab input.cx-h-buscar {
    max-width: none;
    margin-left: 0;
  }
}

/* 2.0.0-beta33: the mockup's breakpoints. */
@media (max-width: 960px) {
  #nx-wp.nx-panel .cx-arriba {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  #nx-wp.nx-panel .cx-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  #nx-wp.nx-panel .cx-seccion-pista {
    display: none;
  }

  #nx-wp.nx-panel .cx-filas > li.cx-fila {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
  }

  #nx-wp.nx-panel .cx-fila-acciones {
    display: contents;
  }

  #nx-wp.nx-panel .cx-fila-acciones > .cx-menu {
    grid-column: 3;
    grid-row: 1;
  }

  #nx-wp.nx-panel .cx-fila-acciones > button {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: start;
    white-space: normal;
  }

  #nx-wp.nx-panel .cx-franja {
    grid-column: 2 / 4;
  }

  #nx-wp.nx-panel .cx-grilla {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #nx-wp.nx-panel .cx-app {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 12px;
  }

  #nx-wp.nx-panel .cx-app-desc {
    display: none;
  }

  #nx-wp.nx-panel .cx-app-pie {
    grid-column: 3;
    grid-row: 1 / 3;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
  }

  #nx-wp.nx-panel .cx-app-pie button.cx-enlace {
    font-size: 12px;
  }
}

/* 2.0.0-beta33: under 600px WordPress's admin bar scrolls away with the page, so the sticky tools go to the top. */
@media (max-width: 600px) {
  #nx-wp.nx-panel .cx-catalogo > .cx-herramientas {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nx-wp.nx-panel * {
    transition: none !important;
    animation: none !important;
  }
}
