#J_GVSE {
    --jv-rojo: #cc0000; --jv-rojo-suave: #b94040; --jv-activo: #1a1a1a; --jv-gris: #6f6f6f; --jv-gris-claro: #9a9a9a; --jv-raya: #e3e3e3; --jv-columna: #d4d4d4;
    --jv-nom: 9rem; --jv-tot: 6.5rem; --jv-pct: 8.5rem;
    display: block; margin: 0; padding: 0; border: 0; background: #fff; color: #000; text-align: left;
    font-family: Roboto, Arial, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.375;
  }
  #J_GVSE, #J_GVSE *, #J_GVSE *::before, #J_GVSE *::after { box-sizing: border-box; }
  /* Por si la web anfitriona trae estilos para estas etiquetas: aquí heredan los del gráfico */
  #J_GVSE :is(p, ol, li, div, span, label, strong) { margin: 0; padding: 0; border: 0; list-style: none; font-family: inherit; font-size: inherit; font-weight: inherit; font-style: normal; line-height: inherit; color: inherit; text-transform: none; letter-spacing: normal; text-decoration: none; background: none; }
  #J_GVSE [hidden] { display: none !important; }
  #J_GVSE :focus-visible { outline: 2px solid var(--jv-rojo); outline-offset: 2px; }

  #J_GVSE .jv-titulo { margin: 0 0 4px; font-family: Merriweather, Georgia, serif; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: #000; text-wrap: balance; }
  #J_GVSE .jv-subtitulo { margin: 0 0 12px; color: var(--jv-gris); text-wrap: balance; }
  #J_GVSE .jv-resumen { margin: 0 0 16px; text-wrap: balance; }
  #J_GVSE .jv-resumen strong { font-weight: 700; }

  /* Filtro normal: salen las candidaturas cuyo nombre contiene lo escrito */
  #J_GVSE .jv-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
  #J_GVSE .jv-campo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
  #J_GVSE .jv-buscar {
    -webkit-appearance: none; appearance: none; margin: 0; width: 13rem; min-width: 0; min-height: 2.5rem; padding: 6px 10px;
    font-family: Roboto, Arial, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.375; color: #000; background: #fff;
    border: 1px solid #000; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
  }
  #J_GVSE .jv-buscar::placeholder { color: var(--jv-gris-claro); opacity: 1; }
  #J_GVSE .jv-buscar:hover { border-color: var(--jv-rojo); }
  #J_GVSE .jv-escrutado { color: var(--jv-gris); }
  /* Páginas: «Página 1 de 6» y flechas, arriba a la derecha de la tabla */
  #J_GVSE .jv-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
  #J_GVSE .jv-paginas { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  #J_GVSE .jv-pag-texto { margin-right: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  #J_GVSE .jv-pag {
    display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin: 0; padding: 0; cursor: pointer;
    color: #000; background: #fff; border: 1px solid #d0d0d0; border-radius: 0; box-shadow: none;
  }
  #J_GVSE .jv-pag svg { display: block; width: 10px; height: 16px; }
  #J_GVSE .jv-pag:hover { border-color: var(--jv-rojo); }
  #J_GVSE .jv-pag:disabled { color: #c4c4c4; border-color: #e3e3e3; cursor: default; }
  #J_GVSE .jv-escrutado strong { font-weight: 700; color: var(--jv-rojo-suave); }

  /* Tabla: candidatura, votos sin escaño (barra y cifra), total de votos y % de sus votos que se queda sin escaño.
     Cada columna, separada de la anterior por una línea vertical */
  #J_GVSE .jv-tabla { overflow: hidden; overflow: clip; }
  #J_GVSE .jv-cabecera, #J_GVSE .jv-fila {
    display: grid; column-gap: 0;
    grid-template-columns: var(--jv-nom) minmax(0, 1fr) var(--jv-tot) var(--jv-pct);
    grid-template-areas: "nom sin tot pct";
  }
  #J_GVSE .jv-cabecera { align-items: stretch; border-bottom: 2px solid #000; }
  #J_GVSE .jv-col { align-self: stretch; min-width: 0; padding-left: 12px; padding-right: 12px; border-left: 1px solid var(--jv-columna); }
  #J_GVSE .jv-o-pct, #J_GVSE .jv-pct { padding-right: 0; }
  /* Cabeceras que ordenan la tabla al pulsarlas */
  #J_GVSE .jv-orden {
    display: flex; align-items: flex-end; gap: 4px; margin: 0; padding-top: 0; padding-bottom: 6px; cursor: pointer; text-align: left;
    font-family: Roboto, Arial, sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--jv-gris);
    background: none; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
  }
  #J_GVSE .jv-o-nom { padding-left: 0; padding-right: 12px; border-left: 0; }
  #J_GVSE .jv-orden:hover { color: #000; }
  #J_GVSE .jv-orden[aria-pressed="true"] { color: var(--jv-activo); }
  #J_GVSE .jv-flecha { flex: none; width: 1ch; font-weight: 400; }
  #J_GVSE .jv-o-nom { grid-area: nom; }
  #J_GVSE .jv-o-sin { grid-area: sin; }
  #J_GVSE .jv-o-tot { grid-area: tot; justify-content: flex-end; text-align: right; }
  #J_GVSE .jv-o-pct { grid-area: pct; justify-content: flex-end; text-align: right; }

  #J_GVSE .jv-fila { border-bottom: 1px solid var(--jv-raya); }
  #J_GVSE .jv-nombre { grid-area: nom; align-self: center; min-width: 0; margin: 10px 12px 10px 0; padding-left: 8px; border-left: 3px solid var(--c, #9a9a9a); font-weight: 700; line-height: 1.25rem; overflow-wrap: anywhere; }
  #J_GVSE .jv-c-sin { grid-area: sin; display: flex; align-items: center; padding-top: 9px; padding-bottom: 9px; }
  #J_GVSE .jv-celda { position: relative; flex: 1 1 auto; min-width: 0; height: 1.75rem; }
  #J_GVSE .jv-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c, #9a9a9a); transition: width .7s cubic-bezier(.22, .8, .24, 1); }
  #J_GVSE .jv-bar.jv-minimo { min-width: 2px; }
  #J_GVSE .jv-num { position: absolute; top: 50%; left: 6px; transform: translateY(-50%); white-space: nowrap; line-height: 1.25; font-variant-numeric: tabular-nums; transition: opacity .25s ease; }
  #J_GVSE .jv-num.jv-dentro { font-weight: 700; }
  #J_GVSE .jv-num.jv-fuera { font-weight: 400; color: #000; }
  #J_GVSE .jv-total { grid-area: tot; display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; }
  /* % sin escaño: la cifra y, a su derecha, una barra vertical que se llena de abajo arriba hasta ese % */
  #J_GVSE .jv-pct { grid-area: pct; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  #J_GVSE .jv-pct-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
  #J_GVSE .jv-medidor { position: relative; flex: none; width: 14px; height: 1.75rem; background: #ececec; }
  #J_GVSE .jv-relleno { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--c, #9a9a9a); transition: height .7s cubic-bezier(.22, .8, .24, 1); }
  #J_GVSE .jv-relleno.jv-minimo { min-height: 2px; }
  /* Las cifras se apagan mientras sus barras cambian de tamaño y vuelven al acabar */
  #J_GVSE:not(.jv-visto) .jv-num, #J_GVSE .jv-moviendo .jv-num { opacity: 0; transition: opacity .12s ease; }

  #J_GVSE .jv-vacio { margin: 16px 0 0; color: var(--jv-gris); }
  #J_GVSE .jv-aviso { margin: 10px 0 0; padding-left: 10px; border-left: 3px solid var(--jv-rojo); color: var(--jv-rojo); }
  /* Pie: la hora de actualización como nota y, en otra línea, la fuente */
  #J_GVSE .jv-pie { margin: 14px 0 0; padding-top: 8px; border-top: 1px solid #dcdcdc; text-align: right; color: var(--jv-gris); }
  #J_GVSE .jv-oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* Estrecho (menos de 400 px de ancho del gráfico; la clase la pone el script): la candidatura encima de sus tres datos */
  #J_GVSE.jv-estrecho { --jv-tot: 5.75rem; --jv-pct: 6rem; }
  #J_GVSE.jv-estrecho .jv-titulo { font-size: 1.25rem; }
  #J_GVSE.jv-estrecho .jv-campo { flex: 1 1 100%; }
  #J_GVSE.jv-estrecho .jv-buscar { flex: 1 1 auto; width: auto; }
  #J_GVSE.jv-estrecho .jv-cabecera, #J_GVSE.jv-estrecho .jv-fila { grid-template-columns: minmax(0, 1fr) var(--jv-tot) var(--jv-pct); grid-template-areas: "nom nom nom" "sin tot pct"; }
  #J_GVSE.jv-estrecho .jv-col { padding-left: 10px; padding-right: 10px; }
  #J_GVSE.jv-estrecho .jv-o-pct, #J_GVSE.jv-estrecho .jv-pct { padding-right: 0; }
  #J_GVSE.jv-estrecho .jv-o-sin, #J_GVSE.jv-estrecho .jv-c-sin { padding-left: 0; border-left: 0; }
  #J_GVSE.jv-estrecho .jv-o-nom { padding-bottom: 2px; }
  #J_GVSE.jv-estrecho .jv-nombre { margin: 8px 0 0; }
  #J_GVSE.jv-estrecho .jv-c-sin { padding-top: 4px; padding-bottom: 10px; }
  #J_GVSE.jv-estrecho .jv-celda { height: 2.375rem; }
  #J_GVSE.jv-estrecho .jv-bar { top: auto; height: 10px; }
  #J_GVSE.jv-estrecho .jv-num { top: 0; transform: none; }
  #J_GVSE.jv-estrecho .jv-pct { gap: 8px; }

  @media (prefers-reduced-motion: reduce) {
    #J_GVSE .jv-bar, #J_GVSE .jv-relleno, #J_GVSE .jv-num { transition: none !important; }
  }
