/* =====================================================================
   EL JUEGO DEL CALAMAR x LALIGA — V2 FOUNDATION
   Capa visual no destructiva: mantiene IDs, funciones y llamadas backend.
   ===================================================================== */

:root {
  color-scheme: dark;
  --squid-pink: #ff1f6b;
  --squid-cyan: #00d4ff;
  --squid-green: #1aff9c;
  --bg-dark: #060812;
  --panel-bg: rgba(13, 18, 32, 0.78);
  --text-light: #cbd5e1;
  --text-bright: #ffffff;

  --v2-bg-0: #050713;
  --v2-bg-1: #080b18;
  --v2-bg-2: #0f1424;
  --v2-bg-3: #151c31;
  --v2-surface: rgba(15, 22, 39, 0.78);
  --v2-surface-strong: rgba(19, 28, 49, 0.92);
  --v2-surface-soft: rgba(255, 255, 255, 0.045);
  --v2-border: rgba(148, 163, 184, 0.16);
  --v2-border-strong: rgba(255, 31, 107, 0.35);
  --v2-muted: #8b9bb2;
  --v2-danger: #ff4f6d;
  --v2-warning: #ffd166;
  --v2-success: #1aff9c;
  --v2-info: #00d4ff;

  --v2-space-1: 4px;
  --v2-space-2: 8px;
  --v2-space-3: 12px;
  --v2-space-4: 16px;
  --v2-space-5: 20px;
  --v2-space-6: 24px;
  --v2-space-7: 32px;
  --v2-space-8: 40px;
  --v2-space-9: 48px;

  --v2-radius-xs: 8px;
  --v2-radius-sm: 12px;
  --v2-radius-md: 16px;
  --v2-radius-lg: 24px;
  --v2-radius-xl: 32px;

  --v2-shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
  --v2-shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
  --v2-shadow-glow: 0 0 34px rgba(255, 31, 107, 0.18), 0 0 48px rgba(0, 212, 255, 0.08);
  --v2-container: min(1540px, calc(100vw - 48px));
  --v2-transition: 180ms cubic-bezier(.2,.8,.2,1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 31, 107, 0.22), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(0, 212, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 98%, rgba(26, 255, 156, 0.10), transparent 28%),
    linear-gradient(135deg, var(--v2-bg-0), var(--v2-bg-1) 45%, #090718);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.28));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 24%, rgba(255,31,107,0.035));
  mix-blend-mode: screen;
}

*::selection {
  background: rgba(255, 31, 107, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(0, 212, 255, 0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

#login-screen,
#main-app {
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 2vw, 28px) !important;
}

/* LOGIN ---------------------------------------------------------------- */
#login-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 31, 107, .24), transparent 34%),
    linear-gradient(135deg, #080711, #120817 58%, #050713) !important;
}

#login-screen::before {
  content: "CONTROL ROOM";
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(42px, 8vw, 118px);
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
}

.login-box {
  width: min(100%, 480px) !important;
  padding: clamp(28px, 4vw, 52px) !important;
  border-radius: var(--v2-radius-xl) !important;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(10, 13, 25, 0.86)) !important;
  border: 1px solid rgba(255, 31, 107, .45) !important;
  box-shadow: var(--v2-shadow-md), var(--v2-shadow-glow) !important;
}

.login-box h1 {
  margin-bottom: 34px !important;
  font-family: 'Orbitron', sans-serif !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  letter-spacing: .08em !important;
}

/* APP SHELL ------------------------------------------------------------- */
#main-app {
  max-width: none !important;
  gap: var(--v2-space-5);
}

header,
nav,
.view-content {
  width: var(--v2-container) !important;
  max-width: var(--v2-container) !important;
}

header {
  position: sticky;
  top: 14px;
  z-index: 900;
  margin: 0 auto var(--v2-space-4) auto !important;
  padding: 16px 18px !important;
  border-radius: var(--v2-radius-lg) !important;
  border: 1px solid rgba(255, 31, 107, .32) !important;
  border-bottom: 1px solid rgba(255, 31, 107, .38) !important;
  background: linear-gradient(135deg, rgba(15, 22, 39, .92), rgba(9, 13, 26, .86)) !important;
  box-shadow: var(--v2-shadow-sm), 0 0 0 1px rgba(255,255,255,.035) inset !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif !important;
  font-size: clamp(17px, 1.5vw, 24px) !important;
  letter-spacing: .08em !important;
}

.logo-text::before {
  content: "△";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--squid-pink), #8d1bff);
  box-shadow: 0 0 24px rgba(255, 31, 107, .38);
}

.user-info {
  gap: 12px !important;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-tag {
  border: 1px solid rgba(0, 212, 255, .35) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: rgba(0, 212, 255, .08) !important;
  color: #d9fbff !important;
}

/* NAVIGATION ------------------------------------------------------------ */
nav {
  position: sticky !important;
  top: 90px;
  z-index: 850;
  margin: 0 auto var(--v2-space-6) auto !important;
  padding: 10px !important;
  gap: 8px !important;
  border-radius: var(--v2-radius-lg) !important;
  border: 1px solid var(--v2-border) !important;
  background: rgba(7, 11, 22, .72) !important;
  box-shadow: var(--v2-shadow-sm) !important;
  backdrop-filter: blur(18px) saturate(130%);
}

nav button:not(.hamburger-menu),
.dropdown-menu > button {
  min-height: 46px;
  border-radius: 14px !important;
  color: var(--v2-muted) !important;
  letter-spacing: .06em !important;
  transition: transform var(--v2-transition), background var(--v2-transition), box-shadow var(--v2-transition), color var(--v2-transition) !important;
}

nav button:not(.hamburger-menu):hover,
.dropdown-menu:hover > button {
  transform: translateY(-1px);
  color: var(--text-bright) !important;
  background: rgba(255, 31, 107, .12) !important;
  box-shadow: 0 0 0 1px rgba(255, 31, 107, .26) inset !important;
}

nav button:not(.hamburger-menu).active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 31, 107, .96), rgba(164, 40, 255, .84)) !important;
  box-shadow: 0 14px 34px rgba(255, 31, 107, .28), 0 0 0 1px rgba(255,255,255,.16) inset !important;
}

.dropdown-content {
  top: calc(100% + 8px) !important;
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(255,31,107,.32) !important;
  background: rgba(10, 14, 27, .96) !important;
  box-shadow: var(--v2-shadow-md) !important;
}

/* VIEWS / CARDS --------------------------------------------------------- */
.view-content {
  margin: 0 auto !important;
  animation: v2FadeUp .35s ease both !important;
}

.view-content.active {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--v2-space-5);
  align-items: start;
}

.view-content > .panel {
  grid-column: span 12;
}

#view-porra.active > .panel:first-child { grid-column: span 12; }
#view-porra.active > .panel:nth-child(2) { grid-column: span 5; }
#view-porra.active > .panel:nth-child(3) { grid-column: span 7; }

#view-censo.active > .panel:nth-child(1) { grid-column: span 12; }
#view-censo.active > .panel:nth-child(2) { grid-column: span 7; }
#view-censo.active > .panel:nth-child(3) { grid-column: span 5; }
#view-censo.active > .panel:nth-child(4) { grid-column: span 12; }

#view-admin-partidos.active > .panel:nth-child(1),
#view-admin-usuarios.active > .panel:nth-child(1) { grid-column: span 12; }
#view-admin-partidos.active > .panel:nth-child(2) { grid-column: span 8; }
#view-admin-partidos.active > .panel:nth-child(3) { grid-column: span 4; }
#view-admin-usuarios.active > .panel:nth-child(2) { grid-column: span 7; }
#view-admin-usuarios.active > .panel:nth-child(3) { grid-column: span 5; }
#view-admin-usuarios.active > .panel:nth-child(4) { grid-column: span 12; }

.panel {
  position: relative;
  margin-bottom: 0 !important;
  padding: clamp(20px, 2vw, 30px) !important;
  border-radius: var(--v2-radius-lg) !important;
  border: 1px solid var(--v2-border) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)),
    var(--v2-surface) !important;
  box-shadow: var(--v2-shadow-sm), 0 0 0 1px rgba(255,255,255,.025) inset !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,31,107,.9), rgba(0,212,255,.75), transparent);
  opacity: .72;
}

.panel:hover {
  border-color: rgba(255, 31, 107, .26) !important;
  box-shadow: var(--v2-shadow-md), var(--v2-shadow-glow) !important;
  transform: translateY(-1px);
  transition: transform var(--v2-transition), box-shadow var(--v2-transition), border-color var(--v2-transition);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--v2-space-5) !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  color: #fff !important;
  font-family: 'Changa', sans-serif !important;
  font-size: clamp(16px, 1.35vw, 22px) !important;
  letter-spacing: .06em !important;
}

.panel-title::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--squid-pink), var(--squid-cyan));
  box-shadow: 0 0 18px rgba(255,31,107,.45);
}

/* DASHBOARD STATS ------------------------------------------------------- */
.status-banner {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--v2-space-4) !important;
}

.status-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--v2-radius-md) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,31,107,.18), transparent 34%),
    rgba(255,255,255,.045) !important;
  transition: transform var(--v2-transition), border-color var(--v2-transition), background var(--v2-transition);
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, .32) !important;
}

.status-label {
  color: var(--v2-muted) !important;
  font-size: 12px !important;
  letter-spacing: .12em;
}

.status-value {
  margin-top: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 2vw, 34px) !important;
}

#countdown-container {
  border-radius: var(--v2-radius-md) !important;
  border: 1px solid rgba(255, 31, 107, .35) !important;
  background: rgba(255, 31, 107, .06) !important;
}

/* FORMS ---------------------------------------------------------------- */
.input-group label,
label {
  color: #ff75a6;
  font-weight: 700;
  letter-spacing: .08em;
}

.input-group input,
.input-group select,
textarea,
select,
input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
.tabla-cyber select,
.tabla-cyber input,
.cyber-csv-file-input {
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, .20) !important;
  background: rgba(4, 8, 18, .72) !important;
  color: #f8fafc !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
  transition: border-color var(--v2-transition), box-shadow var(--v2-transition), background var(--v2-transition);
}

textarea {
  width: 100%;
  padding: 14px !important;
  line-height: 1.5;
}

.input-group input:focus,
.input-group select:focus,
textarea:focus,
select:focus,
input:focus {
  border-color: rgba(0, 212, 255, .72) !important;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .12), 0 0 24px rgba(0, 212, 255, .12) !important;
}

/* BUTTONS --------------------------------------------------------------- */
.btn-neon,
.btn-action,
.btn-logout,
button {
  border-radius: 14px !important;
  transition: transform var(--v2-transition), box-shadow var(--v2-transition), background var(--v2-transition), border-color var(--v2-transition), color var(--v2-transition);
}

.btn-action,
.btn-neon {
  min-height: 46px;
  padding: 11px 18px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.22) !important;
}

.btn-action:hover,
.btn-neon:hover,
.btn-logout:hover {
  transform: translateY(-2px);
}

.btn-action.primary,
.btn-neon {
  background: linear-gradient(135deg, var(--squid-pink), #9b35ff) !important;
  color: #fff !important;
  border-color: rgba(255,31,107,.55) !important;
}

.btn-action.secondary {
  background: rgba(0, 212, 255, .10) !important;
  color: #d7fbff !important;
  border-color: rgba(0,212,255,.36) !important;
}

.btn-action.danger,
.btn-logout {
  background: linear-gradient(135deg, #ff315f, #a20f33) !important;
  color: #fff !important;
  border-color: rgba(255,79,109,.48) !important;
}

/* TABLES --------------------------------------------------------------- */
.table-responsive {
  overflow: auto !important;
  border-radius: var(--v2-radius-md);
  border: 1px solid var(--v2-border);
  background: rgba(4, 8, 18, .56);
  scrollbar-width: thin;
  scrollbar-color: var(--squid-pink) rgba(255,255,255,.05);
}

.table-responsive::-webkit-scrollbar { height: 10px !important; width: 10px !important; }
.table-responsive::-webkit-scrollbar-track { background: rgba(255,255,255,.04) !important; border-radius: 999px; }
.table-responsive::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--squid-pink), var(--squid-cyan)) !important; border-radius: 999px !important; }

table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

th,
td {
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .12) !important;
  padding: 14px 16px !important;
}

th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 18, 32, .96) !important;
  color: #ff75a6 !important;
  font-size: 12px !important;
  letter-spacing: .08em;
  backdrop-filter: blur(16px);
}

td {
  color: #e5edf8 !important;
}

tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.025);
}

tbody tr:hover td {
  background: rgba(0, 212, 255, .075);
}

.table-sticky th:first-child,
.table-sticky td:first-child {
  background: rgba(12, 18, 32, .98) !important;
}

/* DYNAMIC GAME CARDS ---------------------------------------------------- */
.partidos-list {
  display: grid;
  gap: 14px;
}

.partidos-list > * {
  border-radius: var(--v2-radius-md) !important;
}

.voto-previo-box,
.log-container,
#comunicado-texto-render,
#agrupacion-equipos-body > * {
  border-radius: var(--v2-radius-md) !important;
}

#grid-calamar-container > * {
  border-radius: 18px !important;
  transition: transform var(--v2-transition), box-shadow var(--v2-transition), border-color var(--v2-transition);
}

#grid-calamar-container > *:hover {
  transform: translateY(-3px) scale(1.01);
}

/* ADMIN ---------------------------------------------------------------- */
.critical-zone {
  border-color: rgba(255, 79, 109, .58) !important;
  background: linear-gradient(180deg, rgba(255, 79, 109, .08), rgba(255, 79, 109, .025)) !important;
}

.panel-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.log-container {
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--v2-border);
  background: rgba(0,0,0,.28);
  line-height: 1.5;
}

/* ACCESSIBILITY / MOTION ----------------------------------------------- */
@keyframes v2FadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1280px) {
  :root { --v2-container: min(100%, calc(100vw - 32px)); }
  #view-porra.active > .panel:nth-child(2),
  #view-porra.active > .panel:nth-child(3),
  #view-censo.active > .panel:nth-child(2),
  #view-censo.active > .panel:nth-child(3),
  #view-admin-partidos.active > .panel:nth-child(2),
  #view-admin-partidos.active > .panel:nth-child(3),
  #view-admin-usuarios.active > .panel:nth-child(2),
  #view-admin-usuarios.active > .panel:nth-child(3) {
    grid-column: span 12;
  }
}

@media (max-width: 850px) {
  :root { --v2-container: min(100%, calc(100vw - 24px)); }

  #login-screen,
  #main-app { padding: 12px !important; }

  header {
    position: relative;
    top: auto;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px;
  }

  .user-info { width: 100%; justify-content: space-between; }

  nav {
    position: sticky !important;
    top: 8px;
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .hamburger-menu {
    width: 100% !important;
    height: 44px !important;
    align-items: center;
    justify-content: center !important;
    gap: 5px;
    border-radius: 14px !important;
    background: rgba(255, 31, 107, .10) !important;
    border: 1px solid rgba(255, 31, 107, .24) !important;
  }

  nav button:not(.hamburger-menu),
  .dropdown-menu {
    width: 100% !important;
  }

  .dropdown-menu {
    display: none !important;
    flex-direction: column;
  }

  nav.open .dropdown-menu {
    display: flex !important;
  }

  .dropdown-content {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin-top: 8px;
  }

  .view-content.active {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .view-content > .panel,
  #view-porra.active > .panel,
  #view-censo.active > .panel,
  #view-admin-partidos.active > .panel,
  #view-admin-usuarios.active > .panel {
    grid-column: 1 / -1 !important;
  }

  .status-banner {
    grid-template-columns: 1fr !important;
  }

  .panel { padding: 18px !important; }

  th, td { padding: 12px !important; }
}

@media (max-width: 520px) {
  .logo-text { font-size: 15px !important; }
  .logo-text::before { width: 32px; height: 32px; border-radius: 12px; }
  .user-info { flex-direction: column; align-items: stretch !important; }
  .user-tag, .btn-logout { width: 100%; text-align: center; }
  .panel-title { font-size: 16px !important; }
}

/* =====================================================================
   V2.0 HOTFIX 1 — login/session, dashboard density and fixed admin menu
   ===================================================================== */

/* Estado de simulación: versión más elegante y compacta */
#view-porra .panel:has(#stat-jornada) {
  padding: clamp(18px, 1.45vw, 24px) !important;
}

#view-porra .panel:has(#stat-jornada) .panel-title {
  margin-bottom: 18px !important;
  font-size: clamp(16px, 1.15vw, 20px) !important;
}

#view-porra .panel:has(#stat-jornada) .panel-title::before {
  height: 22px;
  width: 8px;
}

.status-banner {
  gap: 12px !important;
}

.status-card {
  min-height: 88px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
}

.status-label {
  font-size: 10px !important;
  letter-spacing: .14em !important;
}

.status-value {
  font-size: clamp(19px, 1.45vw, 28px) !important;
  line-height: 1.12 !important;
}

#stat-limite {
  max-width: 100%;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: clamp(15px, 1vw, 20px) !important;
  line-height: 1.15 !important;
  letter-spacing: .03em !important;
  overflow-wrap: anywhere;
}

#countdown-container {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

#countdown-container span {
  font-size: 10px !important;
  letter-spacing: .14em !important;
  margin-bottom: 6px !important;
}

#countdown-timer {
  font-size: clamp(15px, 1.25vw, 20px) !important;
  line-height: 1.25 !important;
  color: #a8b3c7 !important;
}

/* Administración: el submenú queda anclado al hacer clic */
.dropdown-menu {
  align-items: stretch;
}

.dropdown-menu > .admin-menu-trigger {
  width: 100% !important;
}

.dropdown-menu.open > .admin-menu-trigger,
.dropdown-menu > .admin-menu-trigger.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 31, 107, .96), rgba(164, 40, 255, .84)) !important;
  box-shadow: 0 14px 34px rgba(255, 31, 107, .28), 0 0 0 1px rgba(255,255,255,.16) inset !important;
}

.dropdown-menu.open .dropdown-content,
.dropdown-menu:hover .dropdown-content {
  display: block !important;
}

.dropdown-content button.active,
.dropdown-content button:hover {
  background: rgba(0, 212, 255, .10) !important;
  color: #fff !important;
}

@media (max-width: 850px) {
  .dropdown-menu.open,
  nav.open .dropdown-menu {
    display: flex !important;
  }

  .dropdown-menu.open .dropdown-content {
    display: block !important;
  }
}

@media (max-width: 620px) {
  .status-card {
    min-height: 78px !important;
  }

  .status-value {
    font-size: 22px !important;
  }

  #stat-limite,
  #countdown-timer {
    font-size: 16px !important;
  }
}

/* =====================================================================
   V2.0 SPRINT 2 — administración hover + tablas de sujetos premium
   ===================================================================== */

/* Submenú de administración: hover persistente y sin clic obligatorio */
@media (hover: hover) and (pointer: fine) and (min-width: 851px) {
  #tab-admin.dropdown-menu {
    position: relative;
    z-index: 920;
  }

  #tab-admin.dropdown-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }

  #tab-admin .dropdown-content {
    display: block !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.985);
    transform-origin: top center;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  #tab-admin:hover .dropdown-content,
  #tab-admin.open .dropdown-content,
  #tab-admin:focus-within .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  #tab-admin:hover > .admin-menu-trigger,
  #tab-admin.open > .admin-menu-trigger,
  #tab-admin:focus-within > .admin-menu-trigger {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(255, 31, 107, .96), rgba(164, 40, 255, .84)) !important;
    box-shadow: 0 14px 34px rgba(255, 31, 107, .28), 0 0 0 1px rgba(255,255,255,.16) inset !important;
  }
}

/* Paneles del censo */
.censo-table-panel {
  min-height: 100%;
}

.operative-subjects-panel {
  border-color: rgba(26, 255, 156, .20) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(26,255,156,.11), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)),
    var(--v2-surface) !important;
}

.eliminated-subjects-panel {
  border-color: rgba(255, 79, 109, .28) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,79,109,.13), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.015)),
    var(--v2-surface) !important;
}

.censo-panel-title {
  justify-content: space-between;
  gap: 16px !important;
}

.censo-panel-title > span:first-child {
  min-width: 0;
}

.panel-title-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  color: #071018;
  background: linear-gradient(135deg, var(--v2-success), #93ffd4);
  box-shadow: 0 0 22px rgba(26,255,156,.23);
}

.panel-title-count.danger {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-danger), var(--squid-pink));
  box-shadow: 0 0 22px rgba(255,79,109,.24);
}

.panel-subtitle {
  margin: -10px 0 18px 0;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .025em;
}

.subject-table-scroll {
  max-height: min(62vh, 620px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(4, 8, 18, .62) !important;
}

.subject-table {
  min-width: 720px;
}

.eliminated-table {
  min-width: 560px;
}

.subject-table th {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  text-align: left !important;
}

.subject-table th:nth-child(2),
.subject-table td:nth-child(2) {
  text-align: left !important;
}

.subject-table th:nth-child(3),
.subject-table td:nth-child(3) {
  text-align: left !important;
}

.subject-table td {
  vertical-align: middle;
  white-space: normal !important;
}

.subject-row td {
  transition: background var(--v2-transition), box-shadow var(--v2-transition), transform var(--v2-transition);
}

.subject-row:hover td {
  background: rgba(0, 212, 255, .085) !important;
}

.subject-row--alive:hover td:first-child {
  box-shadow: inset 3px 0 0 rgba(26,255,156,.86);
}

.subject-row--dead {
  opacity: .82;
}

.subject-row--dead:hover td:first-child {
  box-shadow: inset 3px 0 0 rgba(255,79,109,.86);
}

.subject-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.subject-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  color: #061018;
  background: linear-gradient(135deg, var(--v2-success), #d8ffef);
  box-shadow: 0 0 18px rgba(26,255,156,.18);
}

.subject-avatar--dead {
  color: #fff;
  background: linear-gradient(135deg, #ff315f, #5c0a20);
  box-shadow: 0 0 18px rgba(255,79,109,.18);
}

.subject-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.subject-meta strong {
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.subject-cell--dead .subject-meta strong {
  color: #c5cbd7;
  text-decoration: line-through;
  text-decoration-color: rgba(255,79,109,.68);
}

.subject-meta small {
  color: var(--v2-muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vote-chip,
.team-chip,
.empty-value {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .045em;
}

.vote-chip {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255,255,255,.055);
  color: #dbe8f7;
  font-weight: 700;
  text-transform: uppercase;
}

.vote-chip-revealed {
  color: #081018;
  border-color: rgba(26,255,156,.48);
  background: linear-gradient(135deg, var(--v2-success), #d8ffef);
}

.vote-chip-private {
  color: #fff;
  border-color: rgba(255,31,107,.45);
  background: linear-gradient(135deg, rgba(255,31,107,.86), rgba(155,53,255,.70));
  box-shadow: 0 0 18px rgba(255,31,107,.18);
}

.vote-chip-hidden {
  color: #dffaff;
  border-color: rgba(0,212,255,.38);
  background: rgba(0,212,255,.095);
}

.vote-chip-pending {
  color: #ffe9a6;
  border-color: rgba(255,209,102,.34);
  background: rgba(255,209,102,.10);
}

.vote-chip-missing {
  color: #ffb3c0;
  border-color: rgba(255,79,109,.36);
  background: rgba(255,79,109,.10);
}

.team-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
}

.team-chip {
  max-width: 210px;
  border: 1px solid rgba(0, 212, 255, .25);
  background: rgba(0, 212, 255, .075);
  color: #dffaff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-chip-list.is-muted .team-chip {
  border-color: rgba(255,79,109,.24);
  background: rgba(255,79,109,.07);
  color: #f0bec8;
}

.team-chip-more {
  color: #f8fafc;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}

.empty-value {
  color: var(--v2-muted);
  border: 1px dashed rgba(148, 163, 184, .24);
  background: rgba(255,255,255,.035);
}

/* Grid de malla de supervivencia, sin estilos inline generados */
.guard-card {
  position: relative;
  min-height: 116px;
  padding: 14px 8px 12px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.045);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform var(--v2-transition), border-color var(--v2-transition), box-shadow var(--v2-transition);
}

.guard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v2-shadow-sm);
}

.guard-card.is-alive {
  border-color: rgba(26,255,156,.34);
}

.guard-card.is-dead {
  border-color: rgba(255,79,109,.36);
  filter: grayscale(.18);
}

.guard-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 9px auto;
  display: block;
  object-fit: cover;
  border: 2px solid currentColor;
}

.guard-card.is-alive .guard-card-avatar { color: var(--v2-success); }
.guard-card.is-dead .guard-card-avatar { color: var(--v2-danger); }

.guard-card-name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guard-card-status {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .10em;
  color: var(--v2-success);
}

.guard-card.is-dead .guard-card-status { color: var(--v2-danger); }

.guard-card-killmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,19,97,.22);
  color: var(--squid-pink);
  font-size: 38px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  pointer-events: none;
}

@media (max-width: 850px) {
  .subject-table,
  .eliminated-table {
    min-width: 0;
  }

  .subject-table thead {
    display: none;
  }

  .subject-table,
  .subject-table tbody,
  .subject-table tr,
  .subject-table td {
    display: block;
    width: 100%;
  }

  .subject-table tr {
    margin: 0 0 12px 0;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
  }

  .subject-table td {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid rgba(148,163,184,.10) !important;
  }

  .subject-table td::before {
    content: attr(data-label);
    color: var(--v2-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .subject-cell {
    min-width: 0;
  }

  .subject-table-scroll {
    border: 0;
    background: transparent !important;
  }
}

@media (max-width: 520px) {
  .subject-table td {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .team-chip {
    max-width: 100%;
  }
}

/* =====================================================================
   V2.0 SPRINT 3 — menú de usuario premium + histórico moderno
   ===================================================================== */

/* Header / Profile menu ------------------------------------------------ */
.user-info.user-profile-menu {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.user-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 9px 7px 7px;
  border: 1px solid rgba(0, 212, 255, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(6, 10, 22, .74);
  color: #f8fafc;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.035) inset;
  transition: transform var(--v2-transition), border-color var(--v2-transition), background var(--v2-transition), box-shadow var(--v2-transition);
}

.user-profile-trigger:hover,
.user-profile-menu.open .user-profile-trigger,
.user-profile-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 107, .50);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,31,107,.16), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)),
    rgba(6, 10, 22, .86);
  box-shadow: 0 18px 44px rgba(0,0,0,.30), 0 0 30px rgba(255,31,107,.10), 0 0 0 1px rgba(255,255,255,.06) inset;
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #051019;
  background: linear-gradient(135deg, var(--squid-cyan), var(--squid-green));
  box-shadow: 0 0 22px rgba(0,212,255,.22), 0 0 0 1px rgba(255,255,255,.22) inset;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  font-size: 14px;
}

.user-profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.user-profile-name {
  max-width: 190px;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.user-profile-role {
  max-width: 190px;
  color: var(--v2-muted);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.user-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--v2-success);
  background: rgba(26,255,156,.08);
  border: 1px solid rgba(26,255,156,.16);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.user-profile-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--v2-success);
  box-shadow: 0 0 12px var(--v2-success);
}

.user-profile-chevron {
  color: var(--v2-muted);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform var(--v2-transition), color var(--v2-transition);
}

.user-profile-menu.open .user-profile-chevron {
  color: #fff;
  transform: rotate(180deg) translateY(1px);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,31,107,.28);
  background:
    radial-gradient(circle at 90% 0%, rgba(0,212,255,.14), transparent 36%),
    linear-gradient(180deg, rgba(16, 24, 43, .98), rgba(6, 10, 21, .98));
  box-shadow: var(--v2-shadow-md), 0 0 0 1px rgba(255,255,255,.045) inset;
  backdrop-filter: blur(22px) saturate(140%);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 1100;
}

.user-profile-menu.open .user-profile-dropdown,
.user-profile-menu:focus-within .user-profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .user-profile-menu:hover .user-profile-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(148,163,184,.12);
}

.user-profile-card strong {
  display: block;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.user-profile-card small {
  display: block;
  color: var(--v2-muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.user-profile-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font-family: 'Changa', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  transition: background var(--v2-transition), color var(--v2-transition), transform var(--v2-transition);
}

.user-profile-dropdown button:hover,
.user-profile-dropdown button:focus-visible {
  transform: translateX(2px);
  color: #fff;
  background: rgba(0, 212, 255, .10);
}

.user-profile-dropdown button.danger {
  color: #ffd4dc;
  margin-top: 4px;
  border-top: 1px solid rgba(148,163,184,.10);
}

.user-profile-dropdown button.danger:hover,
.user-profile-dropdown button.danger:focus-visible {
  background: rgba(255, 79, 109, .14);
  color: #fff;
}

.user-admin-shortcut {
  display: none !important;
}

body.is-admin .user-admin-shortcut,
body.is-gestor .user-admin-shortcut {
  display: flex !important;
}

/* El perfil vive en el menú de usuario, no como pestaña principal. */
#view-perfil .panel-title::before {
  content: "👤 ";
}

/* Histórico premium ---------------------------------------------------- */
.history-panel {
  border-color: rgba(0, 212, 255, .24) !important;
  background:
    radial-gradient(circle at 5% 0%, rgba(0,212,255,.11), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(255,31,107,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
    var(--v2-surface) !important;
}

.history-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 18px;
}

.history-title {
  margin-bottom: 12px !important;
}

.history-subtitle {
  margin: -8px 0 0 0 !important;
  max-width: 820px;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
  min-width: min(360px, 100%);
}

.history-kpi {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(3, 7, 18, .42);
  box-shadow: 0 0 0 1px rgba(255,255,255,.025) inset;
}

.history-kpi span {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
}

.history-kpi small {
  color: var(--v2-muted);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.history-table-scroll {
  max-height: min(68vh, 680px);
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014)),
    rgba(3, 7, 18, .60) !important;
  border: 1px solid rgba(148,163,184,.13);
}

.history-table {
  min-width: 860px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.history-table th,
.history-table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(148,163,184,.10) !important;
}

.history-table th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 14, 27, .98) !important;
  color: #d9fbff !important;
  padding: 14px 12px !important;
  vertical-align: middle;
  box-shadow: 0 1px 0 rgba(0,212,255,.15);
}

.history-table th:first-child,
.history-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 21;
  min-width: 260px;
  background: rgba(8, 12, 24, .98) !important;
  border-right: 1px solid rgba(255,31,107,.20) !important;
}

.history-table thead th:first-child {
  z-index: 30;
}

.history-round-head span,
.history-round-head small {
  display: block;
  text-align: center;
}

.history-round-head span {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
}

.history-round-head small {
  margin-top: 2px;
  color: var(--v2-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.history-table td {
  padding: 10px !important;
  white-space: normal !important;
  vertical-align: middle;
  background: rgba(255,255,255,.016) !important;
  transition: background var(--v2-transition), box-shadow var(--v2-transition);
}

.history-row:hover td {
  background: rgba(0, 212, 255, .064) !important;
}

.history-row--dead {
  opacity: .86;
}

.history-result-card {
  width: 100%;
  min-width: 112px;
  min-height: 50px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.045);
}

.history-result-card strong {
  max-width: 150px;
  color: #f8fafc;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-result-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.history-result-cell--alive .history-result-card {
  border-color: rgba(26,255,156,.20);
  background: linear-gradient(180deg, rgba(26,255,156,.10), rgba(26,255,156,.035));
}

.history-result-cell--alive .history-result-status {
  color: #071018;
  background: linear-gradient(135deg, var(--v2-success), #baffdf);
}

.history-result-cell--dead .history-result-card {
  border-color: rgba(255,79,109,.24);
  background: linear-gradient(180deg, rgba(255,79,109,.12), rgba(255,79,109,.038));
}

.history-result-cell--dead .history-result-card strong {
  color: #ffd4dc;
  text-decoration: line-through;
  text-decoration-color: rgba(255,79,109,.75);
}

.history-result-cell--dead .history-result-status {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-danger), var(--squid-pink));
}

.history-empty {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  color: rgba(203, 213, 225, .42);
  background: rgba(255,255,255,.022);
  border: 1px dashed rgba(148,163,184,.12);
}

@media (max-width: 980px) {
  header {
    align-items: flex-start !important;
    gap: 14px;
  }

  .user-profile-copy,
  .user-profile-status {
    display: none;
  }

  .history-hero {
    flex-direction: column;
  }

  .history-summary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 850px) {
  .user-info.user-profile-menu {
    width: auto !important;
    align-items: flex-end !important;
  }

  .user-profile-trigger {
    min-height: 48px;
  }

  .user-profile-dropdown {
    right: 0;
  }

  .history-table {
    min-width: 0;
  }

  .history-table thead {
    display: none;
  }

  .history-table,
  .history-table tbody,
  .history-table tr,
  .history-table td {
    display: block;
    width: 100%;
  }

  .history-table tr {
    margin-bottom: 14px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
  }

  .history-table th:first-child,
  .history-table td:first-child {
    position: relative;
    left: auto;
    min-width: 0;
    border-right: 0 !important;
  }

  .history-table td {
    display: grid;
    grid-template-columns: minmax(106px, 32%) 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px !important;
  }

  .history-table td::before {
    content: attr(data-label);
    color: var(--v2-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .history-subject-cell::before {
    display: none;
  }

  .history-result-card,
  .history-empty {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  header {
    flex-direction: row !important;
    align-items: center !important;
  }

  .logo-text {
    max-width: calc(100% - 72px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .logo-text::before {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .user-profile-trigger {
    padding: 6px;
    border-radius: 16px;
  }

  .user-profile-chevron {
    display: none;
  }

  .user-profile-dropdown {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    width: auto;
    transform-origin: top center;
  }

  .history-summary {
    grid-template-columns: 1fr;
  }

  .history-kpi {
    min-height: 58px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    place-items: center start;
  }

  .history-table td {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* =====================================================================
   V2.0 SPRINT 4 — dropdowns estables, documentos ricos y voto premium
   ===================================================================== */

/* Dropdowns: comportamiento unificado hover/tap ------------------------ */
@media (hover: hover) and (pointer: fine) and (min-width: 851px) {
  #tab-admin.dropdown-menu::before,
  .user-info.user-profile-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
  }

  #tab-admin .dropdown-content,
  .user-profile-dropdown {
    will-change: opacity, transform;
  }

  #tab-admin:not(:hover):not(:focus-within):not(.open) .dropdown-content,
  .user-profile-menu:not(:hover):not(:focus-within):not(.open) .user-profile-dropdown {
    pointer-events: none !important;
  }

  #tab-admin:hover .dropdown-content,
  #tab-admin:focus-within .dropdown-content,
  #tab-admin.open .dropdown-content {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }

  .user-profile-menu:hover .user-profile-dropdown,
  .user-profile-menu:focus-within .user-profile-dropdown,
  .user-profile-menu.open .user-profile-dropdown {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }
}

.dropdown-content {
  border-radius: 18px !important;
  overflow: hidden;
}

.dropdown-content button,
.user-profile-dropdown button {
  user-select: none;
}

/* Documentos enriquecidos: reglas y comunicados ------------------------ */
.rich-doc-panel,
.announcement-panel,
.rich-editor-panel {
  overflow: hidden;
  position: relative;
}

.rich-doc-panel::before,
.announcement-panel::before,
.rich-editor-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 255, 156, .10), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(0, 212, 255, .10), transparent 32%);
  opacity: .9;
}

.rich-doc-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.026));
}

.rich-doc-hero.compact {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.rich-doc-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,31,107,.95), rgba(0,212,255,.75));
  box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 28px rgba(0,212,255,.12);
  font-size: 24px;
}

.rich-doc-title {
  margin-bottom: 4px !important;
}

.rich-document {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  color: #e6eef8;
  line-height: 1.72;
  font-family: 'Changa', system-ui, sans-serif;
  font-size: clamp(15px, .96vw, 17px);
}

.rich-document h1,
.rich-document h2,
.rich-document h3,
.rich-document h4 {
  margin: 12px 0 4px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .06em;
  line-height: 1.18;
  text-transform: uppercase;
}

.rich-document h1 { font-size: clamp(24px, 2vw, 34px); }
.rich-document h2 { font-size: clamp(19px, 1.5vw, 26px); }
.rich-document h3,
.rich-document h4 { font-size: clamp(16px, 1.08vw, 20px); }

.rich-document p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.rich-document strong,
.rich-document b {
  color: #fff;
  font-weight: 900;
}

.rich-document em,
.rich-document i {
  color: var(--squid-cyan);
}

.rich-document ul,
.rich-document ol {
  margin: 0;
  padding: 14px 16px 14px 38px;
  border: 1px solid rgba(26,255,156,.16);
  border-radius: 18px;
  background: rgba(26,255,156,.045);
}

.rich-document li + li {
  margin-top: 7px;
}

.rich-document blockquote {
  margin: 4px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,31,107,.24);
  border-left: 4px solid var(--squid-pink);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,31,107,.11), rgba(255,255,255,.035));
  color: #fff;
  font-weight: 700;
}

.rich-document hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.55), rgba(255,31,107,.55), transparent);
}

.rich-document--announcement p,
.announcement-panel .rich-document p {
  border-color: rgba(0,212,255,.18);
  background: rgba(0,212,255,.055);
}

.rich-editor-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rich-editor-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 18px;
  background: rgba(0,0,0,.20);
}

.rich-editor-toolbar button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #e5eef8;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform var(--v2-transition), background var(--v2-transition), border-color var(--v2-transition);
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0,212,255,.38);
  background: rgba(0,212,255,.10);
}

.rich-editor-canvas {
  min-height: 320px;
  padding: 18px;
  border: 1px solid rgba(0,212,255,.20);
  border-radius: 22px;
  background: rgba(4, 8, 18, .55);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(255,255,255,.035) inset;
  outline: 0;
  overflow: auto;
}

.rich-editor-canvas:empty::before {
  content: attr(data-placeholder);
  color: rgba(203, 213, 225, .46);
}

.rich-editor-canvas:focus {
  border-color: rgba(255,31,107,.45);
  box-shadow: 0 0 0 3px rgba(255,31,107,.10), 0 0 0 1px rgba(255,255,255,.04) inset;
}

.rich-editor-preview {
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(26,255,156,.24);
  border-radius: 20px;
  background: rgba(26,255,156,.035);
}

.rich-editor-preview::before {
  content: "Vista previa";
  display: block;
  margin-bottom: 10px;
  color: var(--v2-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rich-editor-actions {
  margin-top: 16px;
}

/* Emitir voto: tabla/listado de partidos premium ----------------------- */
#panel-voto-activo {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,31,107,.11), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(0,212,255,.10), transparent 32%),
    var(--v2-surface) !important;
}

#panel-voto-activo .panel-title::after {
  content: "Jugada titular + reserva";
  display: inline-flex;
  margin-left: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: 999px;
  color: var(--squid-cyan);
  background: rgba(0,212,255,.075);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  vertical-align: middle;
}

.voto-previo-box {
  margin-bottom: 16px;
  padding: 0 !important;
  border: 1px solid rgba(26,255,156,.22) !important;
  background: linear-gradient(135deg, rgba(26,255,156,.10), rgba(255,255,255,.035)) !important;
  overflow: hidden;
}

.vote-previo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.vote-previo-content span {
  color: var(--v2-muted);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.vote-previo-content strong {
  padding: 5px 10px;
  border-radius: 999px;
  color: #06111b;
  background: linear-gradient(135deg, var(--squid-green), var(--squid-cyan));
  font-size: 12px;
}

.partidos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.vote-match-card {
  position: relative;
  padding: 14px !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)),
    rgba(8, 13, 27, .80) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.03) inset !important;
  transition: transform var(--v2-transition), border-color var(--v2-transition), box-shadow var(--v2-transition);
}

.vote-match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,212,255,.28) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.30), 0 0 32px rgba(0,212,255,.08) !important;
}

.vote-match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vote-match-id,
.vote-match-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.vote-match-id {
  color: #fff;
  background: rgba(255,31,107,.12);
  border: 1px solid rgba(255,31,107,.22);
}

.vote-match-state {
  color: var(--squid-green);
  background: rgba(26,255,156,.08);
  border: 1px solid rgba(26,255,156,.18);
}

.vote-match-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.vote-team-option {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  transition: transform var(--v2-transition), border-color var(--v2-transition), background var(--v2-transition);
}

.vote-team-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0,212,255,.28);
  background: rgba(0,212,255,.075);
}

.vote-team-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.vote-team-option.is-selected,
.vote-team-option:has(input:checked) {
  border-color: rgba(255,31,107,.55);
  background: linear-gradient(135deg, rgba(255,31,107,.17), rgba(0,212,255,.07));
  box-shadow: 0 0 0 1px rgba(255,31,107,.15) inset, 0 18px 38px rgba(255,31,107,.08);
}

.vote-team-option.is-consumed,
.vote-team-option:has(input:disabled) {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.55);
}

.vote-team-code {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 13px;
  color: #07111d;
  background: linear-gradient(135deg, var(--squid-cyan), var(--squid-green));
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}

.vote-team-name {
  min-width: 0;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: clamp(15px, .95vw, 18px);
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-team-note {
  color: var(--v2-muted);
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.vote-vs-pill {
  align-self: center;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,31,107,.16);
  border: 1px solid rgba(255,31,107,.24);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 900;
}

#contenedor-reserva {
  margin-top: 20px !important;
  padding: 18px !important;
  border: 1px solid rgba(0,212,255,.16) !important;
  border-radius: 20px;
  background: rgba(0,212,255,.045);
}

#contenedor-reserva label::after {
  content: "Si el titular se suspende, se aplicará este equipo";
  display: block;
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
}

.vote-submit-button {
  min-width: min(100%, 280px);
}

.vote-locked-banner,
.vote-empty-state {
  width: 100%;
  padding: 18px;
  border: 1px dashed rgba(255,31,107,.42);
  border-radius: 18px;
  color: var(--squid-pink);
  background: rgba(255,31,107,.085);
  text-align: center;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vote-empty-state {
  display: grid;
  gap: 6px;
  color: #dbeafe;
  background: rgba(255,255,255,.035);
  border-color: rgba(148,163,184,.16);
}

.vote-empty-state span {
  color: var(--v2-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.vote-empty-state.danger {
  color: var(--squid-pink);
  border-color: rgba(255,31,107,.30);
  background: rgba(255,31,107,.07);
}

/* Pulido tipográfico y formatos generales -------------------------------- */
.panel-title {
  letter-spacing: .08em !important;
}

.panel-subtitle {
  max-width: 850px;
}

label {
  letter-spacing: .06em;
}

input,
select,
textarea,
button {
  text-rendering: geometricPrecision;
}

.empty-value {
  color: var(--v2-muted);
  font-style: normal;
}

@media (max-width: 900px) {
  .partidos-list {
    grid-template-columns: 1fr;
  }

  .vote-match-body {
    grid-template-columns: 1fr;
  }

  .vote-vs-pill {
    width: 100%;
    height: 28px;
    border-radius: 12px;
  }

  .rich-doc-hero {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .rich-doc-hero,
  .rich-doc-hero.compact {
    display: grid;
    padding: 14px;
  }

  .rich-doc-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .rich-editor-toolbar button {
    flex: 1 1 calc(50% - 8px);
  }

  .vote-team-option {
    min-height: 90px;
  }
}

/* =====================================================================
   V2.0 SPRINT 5 — reglamento compacto, voto legible y resolución 2 columnas
   ===================================================================== */

/* Reglas / comunicados: documento premium, compacto y legible ---------- */
.rich-doc-panel.rules-panel {
  padding-inline: clamp(18px, 2.2vw, 34px) !important;
}

.rules-panel .rich-doc-hero,
.announcement-panel .rich-doc-hero {
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.rules-panel .rich-document,
.announcement-panel .rich-document {
  max-width: 1080px;
  margin-inline: auto;
  display: block;
  font-family: 'Changa', system-ui, sans-serif;
  line-height: 1.66;
  color: rgba(230, 238, 248, .94);
}

.rich-document > * + * {
  margin-top: 14px;
}

.rules-panel .rich-document h1,
.announcement-panel .rich-document h1 {
  margin: 4px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 212, 255, .18);
  color: #fff;
  font-size: clamp(22px, 1.65vw, 30px);
  letter-spacing: .075em;
}

.rules-panel .rich-document h2,
.announcement-panel .rich-document h2,
.rules-panel .rich-document h3,
.announcement-panel .rich-document h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  color: #f8fafc;
  font-size: clamp(17px, 1.05vw, 21px);
  letter-spacing: .055em;
}

.rules-panel .rich-document p,
.announcement-panel .rich-document p,
.rich-editor-preview p,
.rich-editor-canvas p {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rules-panel .rich-document .rich-lead,
.announcement-panel .rich-document .rich-lead {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 212, 255, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .075), rgba(255, 31, 107, .05));
  color: #fff;
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 700;
}

.rules-panel .rich-document ul,
.rules-panel .rich-document ol,
.announcement-panel .rich-document ul,
.announcement-panel .rich-document ol,
.rich-editor-preview ul,
.rich-editor-preview ol,
.rich-editor-canvas ul,
.rich-editor-canvas ol {
  margin: 10px 0 18px;
  padding: 14px 18px 14px 34px;
  border: 1px solid rgba(26, 255, 156, .12);
  border-radius: 18px;
  background: rgba(26, 255, 156, .032);
}

.rules-panel .rich-document li,
.announcement-panel .rich-document li,
.rich-editor-preview li,
.rich-editor-canvas li {
  padding-left: 4px;
}

.rules-panel .rich-document li + li,
.announcement-panel .rich-document li + li,
.rich-editor-preview li + li,
.rich-editor-canvas li + li {
  margin-top: 8px;
}

.rules-panel .rich-document blockquote,
.announcement-panel .rich-document blockquote,
.rich-editor-preview blockquote,
.rich-editor-canvas blockquote {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 31, 107, .20);
  border-left: 4px solid var(--squid-pink);
  border-radius: 16px;
  background: rgba(255, 31, 107, .065);
  color: #fff;
}

.rules-panel .rich-document strong,
.announcement-panel .rich-document strong,
.rich-editor-preview strong,
.rich-editor-canvas strong {
  color: #fff;
  font-weight: 900;
}

.rules-panel .rich-document br,
.announcement-panel .rich-document br {
  display: none;
}

.rich-document [style*="margin-left"],
.rich-editor-preview [style*="margin-left"],
.rich-editor-canvas [style*="margin-left"],
.rich-document [style*="padding-left"],
.rich-editor-preview [style*="padding-left"],
.rich-editor-canvas [style*="padding-left"] {
  max-width: calc(100% - 12px);
}

.rich-editor-canvas {
  line-height: 1.62;
}

.rich-editor-toolbar button[onclick*="Sangria"],
.rich-editor-toolbar button[onclick*="Sangría"],
.rich-editor-toolbar button[onclick*="aplicarSangriaEditor"] {
  border-color: rgba(26,255,156,.16);
  color: #dfffee;
}

/* Emitir voto 2.1: cards horizontales limpias -------------------------- */
#lista-partidos-votar.partidos-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 12px;
}

#lista-partidos-votar.is-vote-locked {
  opacity: .96;
}

.vote-match-card {
  padding: 12px !important;
  border-radius: 20px !important;
}

.vote-match-head {
  margin-bottom: 10px;
}

.vote-match-state.is-global {
  color: rgba(203, 213, 225, .82);
  background: rgba(148, 163, 184, .08);
  border-color: rgba(148, 163, 184, .14);
}

.vote-match-body.vote-match-body--linear {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.vote-team-option.vote-team-option--linear {
  min-height: 74px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
}

.vote-team-option.vote-team-option--linear .vote-team-code {
  width: 34px;
  height: 34px;
  grid-row: auto;
  border-radius: 12px;
  font-size: 15px;
}

.vote-team-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vote-team-role {
  color: var(--v2-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.vote-team-option.vote-team-option--linear .vote-team-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(14px, .88vw, 16px);
  line-height: 1.18;
}

.vote-team-option.vote-team-option--linear .vote-team-note {
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid rgba(255,31,107,.18);
  border-radius: 999px;
  color: rgba(255, 166, 193, .92);
  background: rgba(255,31,107,.08);
  font-size: 9px;
}

.vote-match-body--linear .vote-vs-pill {
  width: 34px;
  height: 34px;
  align-self: center;
  font-size: 10px;
}

.is-vote-locked .vote-match-card:hover {
  transform: none;
}

.is-vote-locked .vote-team-option {
  cursor: default;
}

.vote-locked-banner {
  padding: 14px 16px;
  border-radius: 16px;
  letter-spacing: .07em;
}

/* Resolución operativa 2.1: dos columnas y controles compactos ---------- */
#admin-resolucion-lista-partidos.resolution-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resolution-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px !important;
  border: 1px solid rgba(0,212,255,.15) !important;
  border-radius: 18px !important;
  background: rgba(4, 12, 18, .72) !important;
}

.resolution-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.resolution-index {
  flex: 0 0 auto;
  min-width: 42px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
}

.resolution-teams {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e5eef8;
}

.resolution-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Changa', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.resolution-vs {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 9px;
}

.resolution-options {
  flex: 0 0 auto;
  display: flex !important;
  gap: 8px;
}

.resolution-options label {
  position: relative;
  margin: 0;
}

.resolution-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.resolution-options span {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 9px;
  color: #ff73aa;
  background: rgba(15, 23, 42, .80);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--v2-transition), border-color var(--v2-transition), background var(--v2-transition), color var(--v2-transition), box-shadow var(--v2-transition);
}

.resolution-options input:checked + span {
  color: #031016;
  border-color: rgba(26,255,156,.72);
  background: linear-gradient(135deg, var(--squid-green), #16f0b0);
  box-shadow: 0 0 20px rgba(26,255,156,.22);
}

.resolution-options span:hover,
.resolution-options input:focus-visible + span {
  transform: translateY(-1px);
  border-color: rgba(0,212,255,.45);
}

@media (max-width: 1180px) {
  #admin-resolucion-lista-partidos.resolution-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .resolution-card {
    grid-template-columns: 1fr;
  }

  .resolution-teams {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .resolution-vs {
    align-self: flex-start;
  }

  .resolution-options {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
  }

  .resolution-options span {
    width: 100%;
  }

  .vote-match-body.vote-match-body--linear {
    grid-template-columns: 1fr;
  }

  .vote-match-body--linear .vote-vs-pill {
    width: 100%;
    height: 28px;
    border-radius: 12px;
  }

  .vote-team-option.vote-team-option--linear {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .vote-team-option.vote-team-option--linear .vote-team-note {
    grid-column: 2;
    justify-self: start;
  }
}

/* =====================================================================
   V2.0 SPRINT 6 — voto alineado y comunicado compacto/condicional
   ===================================================================== */

/* Comunicado oficial: card compacta, sin contenido flotante ------------- */
#panel-comunicado-contenedor.announcement-panel {
  padding: clamp(18px, 2vw, 28px) !important;
  margin-bottom: 22px !important;
  min-height: 0 !important;
}

#panel-comunicado-contenedor.announcement-panel::before {
  opacity: .65;
}

#panel-comunicado-contenedor .rich-doc-hero.compact {
  width: 100%;
  max-width: none;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border-radius: 20px;
  align-items: center;
}

#panel-comunicado-contenedor .rich-doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 22px;
}

#panel-comunicado-contenedor .rich-doc-title {
  margin: 0 0 2px !important;
  font-size: clamp(18px, 1.35vw, 24px) !important;
  line-height: 1.18;
}

#panel-comunicado-contenedor .panel-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(203, 213, 225, .74);
}

#panel-comunicado-contenedor .rich-document {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 212, 255, .13);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .055), rgba(255,255,255,.026));
  box-shadow: 0 16px 38px rgba(0,0,0,.14) inset;
}

#panel-comunicado-contenedor .rich-document > *:first-child {
  margin-top: 0 !important;
}

#panel-comunicado-contenedor .rich-document > *:last-child {
  margin-bottom: 0 !important;
}

#panel-comunicado-contenedor .rich-document p {
  margin-bottom: 8px;
  color: rgba(230, 238, 248, .94);
}

#panel-comunicado-contenedor .rich-document h1,
#panel-comunicado-contenedor .rich-document h2,
#panel-comunicado-contenedor .rich-document h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Emitir voto: estructura fija y cubos alineados ------------------------ */
#lista-partidos-votar .vote-match-card {
  display: grid !important;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  min-height: 96px;
}

#lista-partidos-votar .vote-match-head {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-content: start;
  align-content: center;
  gap: 8px;
}

#lista-partidos-votar .vote-match-id,
#lista-partidos-votar .vote-match-state {
  width: max-content;
  max-width: 118px;
  white-space: nowrap;
}

#lista-partidos-votar .vote-match-state {
  overflow: hidden;
  text-overflow: ellipsis;
}

#lista-partidos-votar .vote-match-body.vote-match-body--linear {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear {
  width: 100%;
  min-width: 0;
  height: 74px;
  min-height: 74px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  justify-self: stretch;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear .vote-team-code {
  width: 36px;
  height: 36px;
}

#lista-partidos-votar .vote-team-copy,
#lista-partidos-votar .vote-team-name {
  min-width: 0;
}

#lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
  width: 38px;
  height: 38px;
  justify-self: center;
  align-self: center;
}

@media (min-width: 761px) {
  #lista-partidos-votar .vote-team-option.vote-team-option--linear:first-child {
    justify-items: start;
  }

  #lista-partidos-votar .vote-team-option.vote-team-option--linear:last-child {
    justify-items: start;
  }
}

@media (max-width: 860px) {
  #lista-partidos-votar .vote-match-card {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  #lista-partidos-votar .vote-match-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 760px) {
  #lista-partidos-votar .vote-match-body.vote-match-body--linear {
    grid-template-columns: 1fr !important;
  }

  #lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
    width: 100%;
    height: 28px;
  }

  #panel-comunicado-contenedor .rich-doc-hero.compact {
    align-items: flex-start;
  }
}

/* =====================================================================
   V2.0 ENTREGA 7 — Mobile-first stability pass
   ===================================================================== */

/* Global mobile safeguards */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  min-width: 0;
}

@media (max-width: 850px) {
  body {
    font-size: 15px;
  }

  #main-app {
    width: 100% !important;
    max-width: 100% !important;
  }

  header {
    border-radius: 22px !important;
    padding: 14px !important;
  }

  .logo-text {
    max-width: calc(100% - 74px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .14em !important;
  }

  .user-profile-trigger {
    min-width: 52px;
    width: 52px;
    height: 52px;
    padding: 7px !important;
    justify-content: center;
    border-radius: 18px !important;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
  }

  .user-profile-chevron {
    display: none;
  }

  .user-profile-dropdown {
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 22px !important;
    z-index: 1400 !important;
  }

  /* Burger navigation: compact closed state, clear drawer open state */
  #nav-tabs {
    position: sticky !important;
    top: 8px;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    align-self: flex-start;
    display: inline-flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px !important;
    border-radius: 22px !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
      rgba(6, 10, 22, .86) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.055) inset !important;
  }

  #nav-tabs.open {
    width: min(360px, calc(100vw - 24px)) !important;
    padding: 12px !important;
  }

  .hamburger-menu {
    width: 54px !important;
    min-width: 54px !important;
    height: 48px !important;
    padding: 12px !important;
    align-self: flex-start;
    justify-content: space-between !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(255,31,107,.28), transparent 58%),
      rgba(4, 8, 18, .84) !important;
    border: 1px solid rgba(255,31,107,.34) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.26), 0 0 24px rgba(255,31,107,.12) !important;
  }

  .hamburger-menu span {
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--squid-pink), var(--squid-cyan)) !important;
  }

  #nav-tabs:not(.open) button:not(.hamburger-menu),
  #nav-tabs:not(.open) .dropdown-menu {
    display: none !important;
  }

  #nav-tabs.open button:not(.hamburger-menu),
  #nav-tabs.open .dropdown-menu {
    display: flex !important;
    width: 100% !important;
  }

  #nav-tabs.open button:not(.hamburger-menu),
  #nav-tabs.open .dropdown-menu > .admin-menu-trigger {
    min-height: 46px;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(148,163,184,.12) !important;
  }

  #nav-tabs.open button:not(.hamburger-menu).active {
    background: linear-gradient(135deg, rgba(255,31,107,.86), rgba(0,212,255,.28)) !important;
    border-color: rgba(255,31,107,.44) !important;
  }

  #nav-tabs.open .dropdown-content {
    width: 100% !important;
    padding: 8px !important;
    margin-top: 6px !important;
    border-radius: 16px !important;
    background: rgba(3, 7, 18, .72) !important;
    border: 1px solid rgba(0,212,255,.14) !important;
  }

  #nav-tabs.open .dropdown-content button {
    margin: 0 0 6px 0 !important;
  }

  .panel {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  .panel-title {
    align-items: flex-start !important;
    line-height: 1.22 !important;
    letter-spacing: .11em !important;
  }

  .panel-title::before {
    flex: 0 0 auto;
    margin-top: 2px;
  }
}

/* Sujetos: card layout real en móvil, sin solapes entre labels y contenido */
@media (max-width: 850px) {
  .censo-table-panel {
    padding: 18px !important;
  }

  .censo-panel-title {
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .censo-panel-title > span:first-child {
    font-size: clamp(15px, 5vw, 20px) !important;
    letter-spacing: .11em !important;
    line-height: 1.2;
  }

  .panel-subtitle {
    margin: 0 0 16px 0 !important;
    font-size: 13px !important;
    line-height: 1.55;
  }

  .subject-table-scroll {
    max-height: none !important;
    overflow: visible !important;
  }

  .subject-table tr {
    display: grid !important;
    gap: 0;
    padding: 0 !important;
    margin-bottom: 14px !important;
    border-radius: 20px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(7, 11, 24, .82) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.22) !important;
  }

  .subject-table td {
    display: block !important;
    width: auto !important;
    padding: 14px 16px !important;
  }

  .subject-table td::before {
    display: block;
    margin-bottom: 8px;
    color: var(--squid-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
  }

  .subject-cell {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    gap: 12px !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .subject-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
  }

  .subject-meta strong {
    font-size: 16px !important;
    line-height: 1.15;
    word-break: break-word;
  }

  .subject-meta small {
    font-size: 10px !important;
    line-height: 1.35;
  }

  .vote-chip,
  .empty-value {
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }

  .team-chip-list {
    gap: 8px !important;
  }

  .team-chip {
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    min-height: 30px;
  }
}

@media (max-width: 520px) {
  .operative-subjects-panel,
  .eliminated-subjects-panel {
    padding: 16px !important;
  }

  .panel-title-count {
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
  }

  .subject-table td {
    padding: 13px 14px !important;
  }

  .subject-cell {
    grid-template-columns: 40px 1fr;
  }

  .subject-avatar {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Control de censo: convertir gestión masiva en tarjetas táctiles */
@media (max-width: 850px) {
  #view-admin-usuarios .table-responsive {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  #admin-censo-masivo-body {
    display: block;
  }

  #admin-censo-masivo-body tr {
    display: block !important;
    margin-bottom: 16px !important;
    padding: 16px !important;
    border: 1px solid rgba(255,31,107,.26) !important;
    border-radius: 20px !important;
    background:
      radial-gradient(circle at 0 0, rgba(0,212,255,.10), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      rgba(6, 10, 22, .84) !important;
  }

  #admin-censo-masivo-body td {
    display: block !important;
    width: 100% !important;
    padding: 0 0 14px 0 !important;
    margin: 0 0 14px 0 !important;
    border-bottom: 1px solid rgba(148,163,184,.14) !important;
  }

  #admin-censo-masivo-body td:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  #admin-censo-masivo-body td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 7px 0;
    color: var(--squid-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  #admin-censo-masivo-body td > strong {
    display: block;
    color: #f8fafc;
    font-size: 18px;
    text-align: right;
    word-break: break-word;
  }

  #admin-censo-masivo-body select,
  #admin-censo-masivo-body input {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  #admin-censo-masivo-body .btn-logout,
  #admin-censo-masivo-body button {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  #view-admin-usuarios .panel > .btn-action.primary {
    width: 100% !important;
    margin-top: 8px;
  }

  #view-admin-usuarios .input-group,
  #view-admin-usuarios .admin-form,
  #view-admin-usuarios .panel div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* Formularios admin genéricos en pantallas pequeñas */
@media (max-width: 620px) {
  #view-admin-usuarios .panel,
  #view-admin-partidos .panel,
  #view-admin-comunicado .panel,
  #view-admin-reglas .panel {
    padding: 16px !important;
  }

  #view-admin-usuarios input,
  #view-admin-usuarios select,
  #view-admin-usuarios textarea,
  #view-admin-partidos input,
  #view-admin-partidos select,
  #view-admin-partidos textarea,
  #view-admin-comunicado input,
  #view-admin-comunicado select,
  #view-admin-comunicado textarea,
  #view-admin-reglas input,
  #view-admin-reglas select,
  #view-admin-reglas textarea {
    width: 100% !important;
    max-width: 100% !important;
  }

  .panel-footer-actions {
    justify-content: stretch !important;
  }

  .panel-footer-actions > button,
  .panel-footer-actions > .btn-action {
    width: 100% !important;
  }
}

/* Votación: asegurar que no reaparece scroll horizontal en móvil */
@media (max-width: 850px) {
  .vote-match-row,
  .vote-match-card,
  .vote-team-card,
  .vote-grid,
  #lista-partidos-votar > * {
    max-width: 100% !important;
  }

  .vote-match-row,
  .vote-match-card {
    overflow: hidden !important;
  }
}

/* =====================================================================
   V2.0 ENTREGA 8 — Hotfix mobile cards, historial acordeón y menús
   ===================================================================== */

@media (max-width: 850px) {
  /* Menús móviles: submenús cerrados por defecto y cierre limpio */
  #nav-tabs.open .dropdown-menu:not(.open) .dropdown-content,
  #nav-tabs.open .dropdown-menu:not(.open):hover .dropdown-content,
  #nav-tabs.open .dropdown-menu:not(.open):focus-within .dropdown-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }

  #nav-tabs.open .dropdown-menu.open .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #nav-tabs.open .dropdown-menu.open > .admin-menu-trigger::after {
    transform: rotate(180deg);
  }

  #nav-tabs.open .admin-menu-trigger {
    position: relative;
  }

  #nav-tabs.open .admin-menu-trigger::after {
    content: "⌄";
    margin-left: auto;
    font-size: 13px;
    color: var(--squid-cyan);
    transition: transform var(--v2-transition);
  }

  /* Sujetos operativos/eliminados: ficha móvil real, sin herencia de tabla */
  .subject-table-scroll {
    padding: 0 !important;
  }

  .subject-table,
  .subject-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .subject-table tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .subject-table td {
    position: static !important;
    display: block !important;
    width: 100% !important;
    padding: 14px 14px 15px !important;
    padding-left: 14px !important;
    text-align: left !important;
    white-space: normal !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148,163,184,.12) !important;
  }

  .subject-table td:last-child {
    border-bottom: 0 !important;
  }

  .subject-table td::before {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    color: var(--squid-cyan) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  .subject-table td:first-child {
    padding-top: 16px !important;
    background: rgba(255,255,255,.018) !important;
  }

  .subject-table td:first-child::before {
    display: none !important;
  }

  .subject-cell {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .subject-avatar {
    grid-row: 1 / span 2;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .subject-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .subject-meta strong {
    display: block !important;
    max-width: 100% !important;
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1.18 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  .subject-meta small {
    display: block !important;
    margin-top: 4px !important;
    color: var(--v2-muted) !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    letter-spacing: .10em !important;
  }

  .vote-chip,
  .empty-value {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 30px !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.2 !important;
  }

  .team-chip-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .team-chip {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Historial móvil: se sustituye tabla larga por acordeón compacto */
  .history-table-scroll {
    display: none !important;
  }

  .history-mobile-accordion {
    display: grid !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }

  .history-mobile-card {
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024)),
      rgba(7, 11, 24, .86);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,.24);
  }

  .history-mobile-card.is-dead {
    border-color: rgba(255,79,109,.22);
  }

  .history-mobile-card.is-alive {
    border-color: rgba(26,255,156,.18);
  }

  .history-mobile-toggle {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.018);
    font-family: inherit;
    text-align: left;
  }

  .history-mobile-head-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
  }

  .history-mobile-head-copy strong {
    font-family: 'Changa', sans-serif;
    font-size: 17px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .history-mobile-head-copy small {
    color: var(--v2-muted);
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  .history-mobile-head-copy b {
    color: #d9fbff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .history-mobile-caret {
    justify-self: end;
    color: var(--squid-cyan);
    font-size: 18px;
    transition: transform var(--v2-transition);
  }

  .history-mobile-card.open .history-mobile-caret {
    transform: rotate(180deg);
  }

  .history-mobile-details {
    display: none;
    padding: 0 14px 14px;
  }

  .history-mobile-card.open .history-mobile-details {
    display: grid;
    gap: 8px;
  }

  .history-mobile-round,
  .history-mobile-no-data,
  .history-mobile-empty {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(76px, auto) 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.12);
    background: rgba(255,255,255,.035);
  }

  .history-mobile-round span {
    color: var(--v2-muted);
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  .history-mobile-round strong {
    color: #fff;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .history-mobile-round em {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  .history-mobile-round.is-alive {
    border-color: rgba(26,255,156,.18);
    background: rgba(26,255,156,.06);
  }

  .history-mobile-round.is-alive em {
    color: #071018;
    background: var(--v2-success);
  }

  .history-mobile-round.is-dead {
    border-color: rgba(255,79,109,.22);
    background: rgba(255,79,109,.06);
  }

  .history-mobile-round.is-dead em {
    color: #fff;
    background: var(--v2-danger);
  }

  .history-mobile-no-data,
  .history-mobile-empty {
    grid-template-columns: 1fr;
    color: var(--v2-muted);
    text-align: center;
  }

  /* Gestión masiva del censo: ficha móvil más natural */
  #admin-censo-masivo-body tr {
    padding: 0 !important;
    overflow: hidden !important;
  }

  #admin-censo-masivo-body td {
    position: static !important;
    padding: 14px 16px !important;
    padding-left: 16px !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  #admin-censo-masivo-body td::before {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  #admin-censo-masivo-body td:first-child {
    background: rgba(0,212,255,.045) !important;
  }

  #admin-censo-masivo-body td:first-child::before {
    display: none !important;
  }

  #admin-censo-masivo-body td > strong.census-mobile-name,
  #admin-censo-masivo-body td > strong {
    display: block !important;
    color: #fff !important;
    font-family: 'Changa', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  .census-mobile-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--v2-muted);
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  #admin-censo-masivo-body select,
  #admin-censo-masivo-body input {
    border-radius: 16px !important;
  }

  #admin-censo-masivo-body .btn-logout {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }
}

@media (min-width: 851px) {
  .history-mobile-accordion {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .subject-table td,
  #admin-censo-masivo-body td {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .history-mobile-round {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .history-mobile-round strong {
    text-align: left;
  }
}

/* Entrega 9: hotfix desktop para etiqueta auxiliar del censo */
.census-mobile-subtitle {
  display: none;
}

@media (max-width: 850px) {
  .census-mobile-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--v2-muted);
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
  }
}

/* Entrega 9: Acerca de / Centro de versión */
body.modal-open {
  overflow: hidden;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.about-modal.open {
  display: flex;
}

.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 31, 107, .18), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(0, 212, 255, .16), transparent 38%),
    rgba(2, 6, 14, .78);
  backdrop-filter: blur(14px);
}

.about-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgba(0, 212, 255, .26);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 31, 107, .12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(10, 16, 30, .96);
  box-shadow: 0 30px 90px rgba(0,0,0,.62), 0 0 42px rgba(0,212,255,.12);
  padding: 26px;
  color: var(--v2-text, #f8fafc);
}

.about-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(2, 6, 14, .68);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.about-modal-close:hover,
.about-modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 31, 107, .72);
  box-shadow: 0 0 18px rgba(255, 31, 107, .24);
  outline: none;
}

.about-modal-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 52px 22px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.about-modal-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--squid-pink), var(--squid-cyan));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 26px;
  box-shadow: 0 0 28px rgba(0, 212, 255, .18);
}

.about-modal-kicker {
  margin: 0 0 4px 0;
  color: var(--squid-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-modal h2 {
  margin: 0;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.about-modal p {
  margin: 6px 0 0 0;
  color: var(--v2-muted, #9ca3af);
  line-height: 1.55;
}

.about-version-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.about-version-strip > div,
.about-card {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(2, 6, 14, .45);
}

.about-version-strip > div {
  padding: 16px;
}

.about-version-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--v2-muted, #9ca3af);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about-version-strip strong {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: .04em;
}

.about-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.about-card {
  padding: 18px;
}

.about-card h3 {
  margin: 0 0 12px 0;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-card li {
  position: relative;
  padding-left: 18px;
  color: var(--v2-text, #e5e7eb);
  line-height: 1.45;
}

.about-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--squid-pink), var(--squid-cyan));
  box-shadow: 0 0 10px rgba(0,212,255,.35);
}

.about-roadmap-card {
  margin-top: 14px;
}

.about-roadmap-list {
  display: grid;
  gap: 10px;
}

.about-roadmap-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(0, 212, 255, .14);
  border-radius: 16px;
  background: rgba(0, 212, 255, .045);
}

.about-roadmap-item strong {
  color: var(--squid-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}

.about-roadmap-item span {
  color: #e5e7eb;
  line-height: 1.35;
}

.about-roadmap-item em {
  justify-self: end;
  border: 1px solid rgba(255,31,107,.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--squid-pink);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255,31,107,.08);
}

@media (max-width: 720px) {
  .about-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .about-modal-panel {
    max-height: 92vh;
    border-radius: 24px 24px 18px 18px;
    padding: 18px;
  }

  .about-modal-hero {
    align-items: flex-start;
    padding-right: 44px;
  }

  .about-modal-logo {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    font-size: 22px;
  }

  .about-version-strip,
  .about-modal-grid {
    grid-template-columns: 1fr;
  }

  .about-roadmap-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-roadmap-item em {
    justify-self: start;
  }
}

/* V2.10 Editores enriquecidos 2.2 -------------------------------------- */
.rich-editor-toolbar--advanced {
  align-items: stretch;
  gap: 10px;
}

.rich-toolbar-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, .10);
  border-radius: 14px;
  background: rgba(2, 6, 23, .34);
}

.rich-toolbar-group--selects {
  gap: 9px;
}

.rich-editor-control,
.rich-editor-color-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: rgba(203, 213, 225, .72);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.rich-editor-select {
  min-height: 38px;
  max-width: 150px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(0, 212, 255, .18);
  border-radius: 12px;
  background: rgba(3, 7, 18, .82);
  color: #e5eef8;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  outline: 0;
}

.rich-editor-select:focus-visible {
  border-color: rgba(0, 212, 255, .55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}

.rich-editor-color {
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.rich-editor-canvas [style*="font-size"],
.rich-editor-preview [style*="font-size"],
.rich-document [style*="font-size"] {
  line-height: 1.45;
}

.rich-editor-canvas [style*="background-color"],
.rich-editor-preview [style*="background-color"],
.rich-document [style*="background-color"] {
  padding: .08em .22em;
  border-radius: .35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 720px) {
  .rich-editor-toolbar--advanced {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 8px;
  }

  .rich-toolbar-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
  }

  .rich-toolbar-group--selects,
  .rich-toolbar-group[aria-label="Color"] {
    grid-template-columns: 1fr;
  }

  .rich-editor-toolbar button,
  .rich-editor-select,
  .rich-editor-control,
  .rich-editor-color-control {
    width: 100%;
  }

  .rich-editor-control,
  .rich-editor-color-control {
    justify-content: space-between;
  }

  .rich-editor-select {
    max-width: none;
  }

  .rich-editor-canvas {
    min-height: 280px;
    padding: 14px;
  }
}

/* =====================================================================
   V2.5 ENTREGA 2 — cierre robusto de menús flotantes
   Motivo: evitar que :hover/:focus-within mantenga abiertos los menús
   después de seleccionar una opción o navegar entre vistas.
   ===================================================================== */
@media (hover: hover) and (pointer: fine) and (min-width: 851px) {
  #tab-admin.dropdown-menu.dropdown-suppressed .dropdown-content,
  #tab-admin.dropdown-menu.dropdown-suppressed:hover .dropdown-content,
  #tab-admin.dropdown-menu.dropdown-suppressed:focus-within .dropdown-content,
  #tab-admin.dropdown-menu:not(.open) .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) scale(.985) !important;
  }

  #tab-admin.dropdown-menu.open:not(.dropdown-suppressed) .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .user-profile-menu.dropdown-suppressed .user-profile-dropdown,
  .user-profile-menu.dropdown-suppressed:hover .user-profile-dropdown,
  .user-profile-menu.dropdown-suppressed:focus-within .user-profile-dropdown,
  .user-profile-menu:not(.open) .user-profile-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(.985) !important;
  }

  .user-profile-menu.open:not(.dropdown-suppressed) .user-profile-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
}

@media (max-width: 850px) {
  #tab-admin.dropdown-menu:not(.open) .dropdown-content {
    display: none !important;
  }

  .user-profile-menu.dropdown-suppressed .user-profile-dropdown,
  .user-profile-menu:not(.open) .user-profile-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(.985) !important;
  }
}

/* =====================================================================
   V2.5 ENTREGA 3 — Centro de seguridad, backups y auditoría segura
   ===================================================================== */
.security-center-panel {
  position: relative;
  overflow: hidden;
}

.security-center-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 212, 255, .14), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(255, 19, 97, .12), transparent 36%);
}

.security-center-panel > * {
  position: relative;
  z-index: 1;
}

.security-center-lead,
.security-panel-help {
  margin: -6px 0 18px;
  color: rgba(226, 232, 240, .72);
  line-height: 1.55;
}

.security-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-kpi-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .88));
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.security-kpi-card.sensitive {
  border-color: rgba(255, 19, 97, .32);
}

.security-kpi-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(148, 163, 184, .86);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.security-kpi-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1;
}

.security-kpi-card small {
  color: rgba(226, 232, 240, .64);
  line-height: 1.35;
}

.security-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: start;
}

.audit-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.audit-log-container,
.sensitive-log-container,
.backup-list {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  background: rgba(2, 6, 23, .68);
  max-height: 360px;
  overflow: auto;
}

.backup-create-form,
.sensitive-access-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.backup-create-form label {
  color: rgba(148, 163, 184, .88);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.backup-create-form select,
.backup-create-form input,
.sensitive-access-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(2, 6, 23, .75);
  color: #fff;
  font-family: inherit;
}

.backup-item,
.security-empty-state {
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.backup-item:last-child,
.security-empty-state:last-child {
  border-bottom: 0;
}

.backup-item strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.backup-item span,
.backup-item small,
.security-empty-state {
  color: rgba(226, 232, 240, .62);
  font-size: .78rem;
}

.sensitive-audit-panel {
  border-color: rgba(255, 19, 97, .22) !important;
}

@media (max-width: 980px) {
  .security-kpi-grid,
  .security-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .security-kpi-card {
    min-height: 112px;
    padding: 14px;
    border-radius: 16px;
  }

  .audit-toolbar,
  .audit-toolbar .btn-action,
  .backup-create-form .btn-action,
  .sensitive-access-form .btn-action {
    width: 100%;
  }
}

/* =====================================================================
   V2.5 ENTREGA 4 — Hotfix layout Centro de Seguridad
   ===================================================================== */
#view-admin-logs.active > .security-center-panel,
#view-admin-logs.active > .security-admin-grid,
#view-admin-logs.active > .sensitive-audit-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

#view-admin-logs.active {
  align-items: stretch !important;
}

.security-admin-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) !important;
}

.security-admin-grid > .panel,
.security-center-panel,
.sensitive-audit-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.security-admin-grid > .panel {
  align-self: start;
}

.audit-log-container,
.sensitive-log-container,
.backup-list {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
}

.backup-create-form select,
.backup-create-form input,
.sensitive-access-form input,
.security-admin-grid .btn-action {
  max-width: 100% !important;
}

.security-empty-state {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1100px) {
  .security-admin-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  #view-admin-logs.active {
    gap: 16px !important;
  }

  .security-admin-grid {
    gap: 16px !important;
  }

  .security-center-lead,
  .security-panel-help {
    margin-top: 0 !important;
    font-size: .88rem !important;
  }

  .backup-create-form,
  .sensitive-access-form {
    gap: 12px !important;
  }
}

/* V2.5 Entrega 5 - Permisos y roles */
.permissions-center-panel,
.permissions-roles-panel,
.permissions-matrix-panel {
  overflow: hidden;
}

.permissions-center-lead {
  max-width: 980px;
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.65;
}

.permissions-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.permissions-kpi-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(7, 10, 20, 0.9));
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 45px rgba(0,0,0,0.2);
}

.permissions-kpi-card.sensitive {
  border-color: rgba(255, 31, 107, 0.28);
  background: linear-gradient(145deg, rgba(35, 14, 35, 0.9), rgba(7, 10, 20, 0.92));
}

.permissions-kpi-label {
  display: block;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.permissions-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #f8fafc;
  line-height: 1;
}

.permissions-kpi-card small {
  display: block;
  margin-top: 9px;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.45;
}

.permissions-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.65fr);
  gap: 22px;
  align-items: start;
}

.permissions-roles-overview {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.permission-role-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(10, 15, 28, 0.72);
}

.permission-role-card.scope-global {
  border-color: rgba(255, 31, 107, 0.32);
  background: linear-gradient(135deg, rgba(255, 31, 107, 0.12), rgba(10, 15, 28, 0.74));
}

.permission-role-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.permission-role-head strong {
  color: #f8fafc;
  font-size: 1rem;
}

.permission-role-head em,
.permission-role-meta span {
  color: rgba(148, 163, 184, 0.82);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permission-role-card code {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.permission-role-card p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
}

.permission-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.permissions-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.permissions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.permissions-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 18px 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(3, 7, 18, 0.45);
}

.permissions-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  color: rgba(226, 232, 240, 0.72);
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permissions-tabs button.active {
  color: #06111f;
  background: linear-gradient(135deg, #00f5ff, #37ff9f);
  box-shadow: 0 12px 32px rgba(0, 245, 255, 0.22);
}

.permissions-matrix-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.44);
}

.permissions-matrix-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.permissions-matrix-table th,
.permissions-matrix-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  vertical-align: middle;
}

.permissions-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(12px);
}

.permissions-matrix-table th:first-child,
.permissions-matrix-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: rgba(8, 13, 25, 0.98);
  min-width: 230px;
}

.permissions-matrix-table th span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.permissions-matrix-table th small,
.permission-key-cell code {
  display: block;
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.permission-key-cell strong {
  display: block;
  color: #f8fafc;
  font-size: 0.9rem;
}

.permission-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.permission-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: 0.2s ease;
}

.permission-switch span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  transition: 0.2s ease;
}

.permission-switch input:checked + span {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.45), rgba(55, 255, 159, 0.35));
  border-color: rgba(55, 255, 159, 0.7);
  box-shadow: 0 0 18px rgba(55, 255, 159, 0.22);
}

.permission-switch input:checked + span::after {
  transform: translateX(20px);
  background: #ecfeff;
}

.permission-switch input:disabled + span {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .permissions-kpi-grid,
  .permissions-layout-grid {
    grid-template-columns: 1fr;
  }
  .permissions-matrix-header {
    flex-direction: column;
  }
  .permissions-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .permissions-tabs {
    display: flex;
    width: 100%;
  }
  .permissions-tabs button {
    flex: 1;
    padding-inline: 10px;
  }
  .permissions-matrix-table {
    min-width: 720px;
  }
}

/* V2.5.8 - Permisos y roles: layout y estado robusto ---------------------- */
#view-admin-permisos.active > .permissions-center-panel,
#view-admin-permisos.active > .permissions-layout-grid {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.permissions-center-status {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, .26);
  background: rgba(0, 212, 255, .08);
  color: var(--text-bright);
  font-size: .84rem;
  letter-spacing: .03em;
}

.permissions-center-status.warn {
  border-color: rgba(255, 213, 74, .34);
  background: rgba(255, 213, 74, .08);
}

.permissions-center-status.error {
  border-color: rgba(255, 31, 107, .45);
  background: rgba(255, 31, 107, .1);
}

.permissions-layout-grid,
.permissions-matrix-panel,
.permissions-matrix-scroll {
  min-width: 0 !important;
}


/* V2.5.12 · permisos reales y gestor de backups */
.permission-hidden { display: none !important; }
.backup-item--managed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.backup-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.backup-item-main strong,
.backup-item-main span,
.backup-item-main small {
  overflow-wrap: anywhere;
}
.backup-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.backup-modal-panel {
  max-width: min(980px, calc(100vw - 32px));
}
.backup-modal-content {
  max-height: min(60vh, 620px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3, 6, 14, .86);
  color: rgba(245, 248, 255, .92);
  font-size: .84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .backup-item--managed { grid-template-columns: 1fr; }
  .backup-item-actions { justify-content: stretch; }
  .backup-item-actions .btn-action { flex: 1; }
}
#tab-admin.permission-hidden,
#nav-tabs .permission-hidden,
.dropdown-content .permission-hidden {
  display: none !important;
}

/* V2.5.13 · gestor de backups seleccionable */
.backup-manager-v25 {
  display: grid;
  gap: 12px;
}

.backup-selection-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .94));
  backdrop-filter: blur(12px);
}

.backup-selection-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.backup-selection-copy span {
  color: rgba(0, 212, 255, .9);
  font-family: 'Orbitron', sans-serif;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.backup-selection-copy strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.backup-selection-copy small {
  color: rgba(226, 232, 240, .62);
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.backup-selection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.backup-select-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.backup-select-item {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background: rgba(15, 23, 42, .54);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.backup-select-item:hover,
.backup-select-item:focus-visible {
  border-color: rgba(0, 212, 255, .38);
  background: rgba(15, 23, 42, .78);
  outline: none;
}

.backup-select-item.is-selected {
  border-color: rgba(26, 255, 156, .62);
  background: linear-gradient(135deg, rgba(26, 255, 156, .12), rgba(0, 212, 255, .08));
  box-shadow: 0 0 0 1px rgba(26, 255, 156, .1), 0 16px 36px rgba(0, 0, 0, .24);
}

.backup-select-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .42);
  background: rgba(2, 6, 23, .8);
  box-shadow: inset 0 0 0 4px rgba(2, 6, 23, .95);
}

.backup-select-item.is-selected .backup-select-radio {
  border-color: rgba(26, 255, 156, .92);
  background: #1aff9c;
  box-shadow: inset 0 0 0 4px rgba(2, 6, 23, .95), 0 0 18px rgba(26, 255, 156, .35);
}

.backup-select-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.backup-select-content strong {
  display: block;
  color: #fff;
  font-size: .86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.backup-select-content span {
  display: block;
  color: rgba(226, 232, 240, .62);
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .backup-selection-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .backup-selection-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .backup-selection-actions .btn-action {
    width: 100%;
  }
  .backup-select-list {
    padding: 10px;
  }
  .backup-select-item {
    padding: 12px 10px;
  }
}


/* =====================================================================
   V2.5.14 · Hotfix Gestor de Backups
   Evita que el texto de selección se comprima en columnas estrechas.
   ===================================================================== */
.backup-selection-toolbar {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

.backup-selection-copy {
  width: 100% !important;
  min-width: 0 !important;
}

.backup-selection-copy strong,
.backup-selection-copy small,
.backup-select-content strong,
.backup-select-content span {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.backup-selection-actions {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
}

.backup-selection-actions .btn-action {
  width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
}

.backup-select-list {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.backup-select-item {
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
}

.backup-select-radio {
  margin-top: 2px !important;
  flex: 0 0 auto !important;
}

.backup-select-content {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 520px) {
  .backup-selection-actions {
    grid-template-columns: 1fr !important;
  }
}

/* V3.0 · Mapa de uso de equipos -------------------------------------- */
.history-team-usage-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(0, 212, 255, .20);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 212, 255, .12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 31, 107, .10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018)),
    rgba(5, 10, 22, .70);
  box-shadow: 0 18px 48px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.025) inset;
}

.history-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.history-usage-title {
  margin-bottom: 8px !important;
  font-size: clamp(18px, 2vw, 24px) !important;
}

.history-usage-subtitle {
  margin: 0 !important;
  max-width: 760px;
}

.history-usage-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(3, 7, 18, .46);
  flex: 0 0 auto;
}

.history-usage-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--v2-muted);
  background: transparent;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--v2-transition), color var(--v2-transition), box-shadow var(--v2-transition);
}

.history-usage-tabs button.active,
.history-usage-tabs button:hover,
.history-usage-tabs button:focus-visible {
  color: #061018;
  background: linear-gradient(135deg, var(--v2-success), var(--squid-cyan));
  box-shadow: 0 10px 24px rgba(0, 212, 255, .18);
  outline: none;
}

.history-usage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.history-usage-kpi {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.13);
  background: rgba(3, 7, 18, .48);
}

.history-usage-kpi span {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .06em;
}

.history-usage-kpi small {
  color: var(--v2-muted);
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.history-usage-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  gap: 12px;
  margin-bottom: 16px;
}

.history-usage-toolbar input,
.history-usage-toolbar select {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(3, 7, 18, .62);
  color: #fff;
  padding: 0 14px;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: .04em;
}

.history-team-usage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.history-team-card {
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, .16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(7, 11, 24, .78);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.history-team-card--availability {
  border-color: rgba(26,255,156,.18);
}

.history-team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.history-team-card-head strong {
  min-width: 0;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.history-team-card-head span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, var(--v2-success), #baffdf);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-team-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.history-team-section > small {
  display: block;
  margin-bottom: 8px;
  color: var(--squid-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.history-team-chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.history-team-player-chip,
.history-team-more-chip,
.history-team-empty-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,212,255,.28);
  background: rgba(0,212,255,.08);
  color: #dffcff;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.history-team-player-chip.is-available {
  border-color: rgba(26,255,156,.26);
  background: rgba(26,255,156,.08);
  color: #eafff5;
}

.history-team-player-chip strong {
  font-weight: 900;
}

.history-team-player-chip small,
.history-team-more-chip {
  color: #071018;
  background: var(--squid-cyan);
  border-color: transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.history-team-empty-chip {
  color: var(--v2-muted);
  border-color: rgba(148,163,184,.16);
  background: rgba(255,255,255,.04);
}

.history-team-mini-stats,
.history-team-stats-grid {
  display: grid;
  gap: 8px;
}

.history-team-mini-stats div,
.history-team-stats-grid div {
  min-width: 78px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(3, 7, 18, .50);
  text-align: center;
}

.history-team-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.history-team-mini-stats b,
.history-team-stats-grid b {
  display: block;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

.history-team-mini-stats small,
.history-team-stats-grid small {
  color: var(--v2-muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-team-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(3, 7, 18, .68);
}

.history-team-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--squid-pink), var(--squid-cyan));
}

.history-team-empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed rgba(148,163,184,.22);
  color: var(--v2-muted);
  text-align: center;
  background: rgba(3, 7, 18, .36);
}

@media (max-width: 880px) {
  .history-usage-header {
    flex-direction: column;
  }

  .history-usage-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .history-usage-summary,
  .history-usage-toolbar,
  .history-team-stats-grid,
  .history-team-split {
    grid-template-columns: 1fr;
  }

  .history-team-usage-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .history-team-usage-list {
    grid-template-columns: 1fr;
  }

  .history-team-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* V3.0.2 · Mapa de uso de equipos: desktop enhanced + filtros estables */
.history-team-usage-panel {
  margin-top: 28px;
  padding: clamp(22px, 2.4vw, 34px) !important;
}

.history-usage-header {
  align-items: center !important;
  margin-bottom: 22px !important;
}

.history-usage-summary {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.history-usage-kpi {
  min-height: 82px !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
}

.history-usage-kpi span {
  font-size: 26px !important;
}

.history-usage-toolbar {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 340px) !important;
  gap: 16px !important;
  align-items: end !important;
  margin: 6px 0 24px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148,163,184,.12) !important;
  background: rgba(3, 7, 18, .34) !important;
}

.history-usage-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.history-usage-field label {
  color: var(--squid-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.history-usage-toolbar input,
.history-usage-toolbar select {
  min-height: 52px !important;
  border-radius: 18px !important;
  font-size: 13px !important;
}

.history-team-usage-list {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
  gap: 18px !important;
}

.history-team-card {
  padding: 20px !important;
  border-radius: 24px !important;
  min-height: 260px;
}

.history-team-card-head {
  align-items: center !important;
  margin-bottom: 16px !important;
}

.history-team-card-head strong {
  font-size: clamp(20px, 1.35vw, 24px) !important;
}

.history-team-card-head span {
  padding: 8px 12px !important;
}

.history-team-consumption {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}

.history-team-consumption-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-team-consumption-head small {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.history-team-consumption-head strong {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
}

.history-team-meter {
  height: 12px !important;
  background: rgba(3, 7, 18, .82) !important;
}

.history-team-meter span {
  min-width: 4px;
  box-shadow: 0 0 20px rgba(0,212,255,.22);
}

.history-team-stats-grid,
.history-team-mini-stats {
  gap: 10px !important;
}

.history-team-mini-stats {
  grid-template-columns: 1fr !important;
}

.history-team-mini-stats div,
.history-team-stats-grid div {
  padding: 12px 12px !important;
  border-radius: 16px !important;
}

.history-team-split {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) !important;
  gap: 18px !important;
}

.history-team-section > small {
  margin-bottom: 10px !important;
}

.history-team-chipline {
  gap: 9px !important;
}

.history-team-player-chip,
.history-team-more-chip,
.history-team-empty-chip {
  min-height: 32px !important;
  padding: 7px 11px !important;
}

@media (max-width: 880px) {
  .history-team-usage-panel {
    padding: 16px !important;
  }

  .history-usage-header {
    align-items: stretch !important;
  }

  .history-usage-summary,
  .history-usage-toolbar,
  .history-team-stats-grid,
  .history-team-split {
    grid-template-columns: 1fr !important;
  }

  .history-usage-toolbar {
    padding: 12px !important;
    gap: 12px !important;
  }

  .history-team-usage-list {
    grid-template-columns: 1fr !important;
  }

  .history-team-card {
    min-height: 0;
    padding: 16px !important;
  }

  .history-team-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* V3.0.3 - Disponibilidad inteligente: estado activo/eliminado de equipos */
.history-team-head-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 48%;
}

.history-team-card-head .history-team-head-meta > span,
.history-team-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 7px 10px !important;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.history-team-status.is-active {
  color: #061018 !important;
  background: linear-gradient(135deg, var(--v2-success), #baffdf) !important;
}

.history-team-status.is-eliminated {
  color: #fff !important;
  border: 1px solid rgba(255, 79, 109, .45);
  background: linear-gradient(135deg, rgba(255, 31, 107, .95), rgba(255, 79, 109, .65)) !important;
  box-shadow: 0 0 18px rgba(255,31,107,.16);
}

.history-team-card:has(.history-team-status.is-eliminated) {
  border-color: rgba(255, 79, 109, .22) !important;
}

.history-team-card:has(.history-team-status.is-eliminated) .history-team-meter span {
  background: linear-gradient(90deg, rgba(255,79,109,.92), rgba(255,213,74,.88)) !important;
}

@media (max-width: 760px) {
  .history-team-card-head {
    align-items: flex-start !important;
  }
  .history-team-head-meta {
    max-width: none;
    justify-content: flex-start;
    width: 100%;
  }
}

/* V3.1 Perfil, estadísticas y timeline base */
.profile-dashboard-v31 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-hero-v31 {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.profile-identity-v31,
.player-modal-hero-v31 {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-avatar-v31 {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #050713;
    background: linear-gradient(135deg, var(--squid-cyan), var(--squid-green));
    box-shadow: 0 0 28px rgba(8, 247, 254, 0.22);
    flex: 0 0 auto;
}

.profile-kicker-v31 {
    margin: 0 0 4px;
    color: var(--squid-pink);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 11px;
    font-weight: 800;
}

.profile-identity-v31 h2,
.player-modal-hero-v31 h2 {
    margin: 0;
    font-family: 'Orbitron', monospace;
    font-size: clamp(26px, 3vw, 42px);
    color: #fff;
    line-height: 1.05;
    word-break: break-word;
}

.profile-badges-v31 {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-status-pill-v31,
.profile-role-pill-v31,
.profile-count-pill-v31 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #d8e8ff;
}

.profile-status-pill-v31.is-alive {
    border-color: rgba(57, 255, 20, 0.45);
    color: var(--squid-green);
    background: rgba(57, 255, 20, 0.08);
}

.profile-status-pill-v31.is-dead {
    border-color: rgba(255, 0, 76, 0.48);
    color: var(--squid-pink);
    background: rgba(255, 0, 76, 0.08);
}

.profile-hero-metrics-v31,
.player-modal-kpis-v31 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-hero-metrics-v31 > div,
.profile-stats-grid-v31 > div,
.player-modal-kpis-v31 > div {
    border: 1px solid rgba(8, 247, 254, 0.18);
    background: rgba(5, 8, 20, 0.58);
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
}

.profile-hero-metrics-v31 strong,
.profile-stats-grid-v31 b,
.player-modal-kpis-v31 strong {
    display: block;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.profile-hero-metrics-v31 small,
.profile-stats-grid-v31 small,
.player-modal-kpis-v31 small {
    display: block;
    color: #9fb1ca;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-top: 6px;
}

.profile-layout-v31 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.profile-card-v31 {
    min-width: 0;
}

.profile-card-v31--stats,
.profile-card-v31--timeline {
    grid-column: span 7;
}

.profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
    grid-column: span 5;
}

.profile-card-v31--teams {
    grid-column: span 6 !important;
}

.profile-card-v31--security {
    grid-column: span 5;
}

.profile-stats-grid-v31 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-card-head-v31 {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.profile-count-pill-v31 {
    min-width: 42px;
    color: var(--squid-cyan);
    border-color: rgba(8, 247, 254, 0.28);
}

.profile-count-pill-v31.is-available {
    color: var(--squid-green);
    border-color: rgba(57, 255, 20, 0.28);
}

.profile-team-cloud-v31 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.profile-team-chip-v31 {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #e7f4ff;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.055);
}

.profile-team-chip-v31.is-available {
    color: var(--squid-green);
    border-color: rgba(57, 255, 20, 0.24);
    background: rgba(57, 255, 20, 0.07);
}

.profile-team-chip-v31.is-used {
    color: var(--squid-cyan);
    border-color: rgba(8, 247, 254, 0.22);
    background: rgba(8, 247, 254, 0.06);
}

.profile-team-chip-v31.is-eliminated {
    color: #ff8aaa;
    border-color: rgba(255, 0, 76, 0.24);
    background: rgba(255, 0, 76, 0.07);
}

.profile-empty-v31,
.profile-vote-empty-v31,
.profile-vote-hidden-v31 {
    display: block;
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 16px;
    color: #9fb1ca;
    background: rgba(255,255,255,0.035);
}

.profile-vote-hidden-v31 {
    color: var(--squid-pink);
    border-color: rgba(255, 0, 76, 0.32);
}

.profile-vote-detail-v31 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(8, 247, 254, 0.24);
    border-radius: 16px;
    padding: 16px;
    background: rgba(8, 247, 254, 0.05);
    color: #dffbff;
}

.profile-vote-detail-v31 strong {
    color: #fff;
}

.profile-vote-detail-v31 small {
    color: #9fb1ca;
}

.profile-personal-timeline-v31 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-timeline-row-v31 {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.035);
}

.profile-timeline-row-v31 span {
    font-family: 'Orbitron', monospace;
    color: var(--squid-cyan);
    font-size: 12px;
}

.profile-timeline-row-v31 strong {
    overflow-wrap: anywhere;
}

.profile-timeline-row-v31 em {
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--squid-green);
}

.profile-timeline-row-v31.is-dead em {
    color: var(--squid-pink);
}

.btn-mini-profile-v31 {
    border: 1px solid rgba(8, 247, 254, 0.32);
    background: rgba(8, 247, 254, 0.06);
    color: var(--squid-cyan);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-mini-profile-v31:hover,
.guard-card:hover {
    border-color: rgba(8, 247, 254, 0.55);
    box-shadow: 0 0 18px rgba(8, 247, 254, 0.14);
}

.guard-card[role="button"] {
    cursor: pointer;
}

.history-timeline-panel-v31 {
    margin-top: 22px;
    border: 1px solid rgba(8, 247, 254, 0.14);
    border-radius: 22px;
    padding: 18px;
    background: rgba(3, 6, 16, 0.52);
}

.history-timeline-header-v31 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.history-timeline-summary-v31 {
    min-width: 150px;
    border: 1px solid rgba(255, 0, 110, 0.22);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 0, 110, 0.06);
    text-align: center;
}

.history-timeline-summary-v31 strong {
    display: block;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
}

.history-timeline-summary-v31 span {
    display: block;
    color: #9fb1ca;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.history-timeline-list-v31 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.timeline-card-v31 {
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    padding: 16px;
    overflow: hidden;
}

.timeline-card-v31::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--squid-green);
    opacity: .9;
}

.timeline-card-v31.has-deaths::before {
    background: var(--squid-pink);
}

.timeline-card-head-v31 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.timeline-card-head-v31 strong {
    display: block;
    font-family: 'Orbitron', monospace;
    color: #fff;
    font-size: 18px;
}

.timeline-card-head-v31 small,
.timeline-card-body-v31 small,
.timeline-eliminated-teams-v31 small {
    color: #9fb1ca;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.timeline-kpis-v31 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.timeline-kpis-v31 span {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
    color: #dbe8ff;
    background: rgba(255,255,255,0.055);
}

.timeline-card-body-v31 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 12px;
}

.timeline-chipline-v31,
.timeline-eliminated-teams-v31 {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.timeline-chipline-v31 span,
.timeline-eliminated-teams-v31 span {
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 800;
    color: var(--squid-cyan);
    border: 1px solid rgba(8, 247, 254, 0.2);
    background: rgba(8, 247, 254, 0.055);
}

.timeline-chipline-v31.is-danger span,
.timeline-eliminated-teams-v31 span {
    color: var(--squid-pink);
    border-color: rgba(255, 0, 76, 0.22);
    background: rgba(255, 0, 76, 0.065);
}

.timeline-chipline-v31 em {
    color: #77869d;
    font-style: normal;
}

.timeline-eliminated-teams-v31 {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
    margin-top: 14px;
}

.player-profile-panel-v31 {
    max-width: 960px;
}

.player-profile-content-v31 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.player-modal-hero-v31 {
    border: 1px solid rgba(8, 247, 254, 0.22);
    border-radius: 22px;
    padding: 16px;
    background: rgba(8, 247, 254, 0.045);
}

.player-modal-hero-v31.is-dead {
    border-color: rgba(255, 0, 76, 0.24);
    background: rgba(255, 0, 76, 0.045);
}

.player-modal-kpis-v31 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-modal-section-v31 {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
}

.player-modal-section-v31 h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .profile-hero-v31,
    .profile-layout-v31,
    .history-timeline-list-v31 {
        grid-template-columns: 1fr;
    }
    .profile-card-v31,
    .profile-card-v31--stats,
    .profile-card-v31--timeline,
    .profile-card-v31--security,
    .profile-card-v31--teams,
    .profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
        grid-column: auto !important;
    }
}

@media (max-width: 760px) {
    .profile-identity-v31,
    .player-modal-hero-v31,
    .history-timeline-header-v31,
    .timeline-card-head-v31 {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-avatar-v31 {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 20px;
    }
    .profile-hero-metrics-v31,
    .profile-stats-grid-v31,
    .player-modal-kpis-v31,
    .timeline-card-body-v31 {
        grid-template-columns: 1fr;
    }
    .profile-timeline-row-v31 {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .profile-timeline-row-v31 em {
        grid-column: 2;
    }
    .history-timeline-panel-v31 {
        padding: 14px;
        border-radius: 18px;
    }
}

/* V3.2 - Gestión de bote y pagos */
.pot-public-panel-v32,
.pot-admin-panel-v32,
.pot-config-panel-v32,
.pot-payments-panel-v32,
.pot-events-panel-v32 {
    border-color: rgba(255, 209, 102, 0.42);
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.07), rgba(8, 247, 254, 0.035)), rgba(5, 8, 18, 0.88);
}

.pot-public-head-v32,
.pot-admin-hero-v32 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pot-status-pill-v32,
.pot-admin-badge-v32 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 7px 12px;
    border-radius: 999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.pot-status-pill-v32.is-active,
.pot-admin-badge-v32.is-active {
    color: #141414;
    border-color: rgba(255, 209, 102, 0.9);
    background: linear-gradient(135deg, #ffd166, #f7b731);
    box-shadow: 0 0 24px rgba(255, 209, 102, 0.18);
}

.pot-status-pill-v32.is-closed,
.pot-admin-badge-v32.is-closed {
    color: #fff;
    border-color: rgba(255, 19, 97, 0.68);
    background: rgba(255, 19, 97, 0.22);
}

.pot-public-grid-v32,
.pot-admin-kpis-v32 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pot-admin-kpis-v32 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pot-public-kpi-v32,
.pot-admin-kpis-v32 article {
    min-width: 0;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, 0.24);
    background: rgba(0, 0, 0, 0.25);
}

.pot-public-kpi-v32 span,
.pot-admin-kpis-v32 span {
    display: block;
    color: #a0aec0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.pot-public-kpi-v32 strong,
.pot-admin-kpis-v32 strong {
    display: block;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    overflow-wrap: anywhere;
}

.pot-config-grid-v32 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.pot-config-grid-v32 label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--squid-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pot-config-grid-v32 input,
.pot-config-grid-v32 select,
.pot-payments-table-v32 input {
    width: 100%;
}

.pot-switch-v32 {
    min-height: 48px;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 13px;
    border: 1px solid rgba(8, 247, 254, 0.22);
    border-radius: 10px;
    background: rgba(8, 247, 254, 0.04);
}

.pot-switch-v32 input {
    width: auto;
    transform: scale(1.2);
    accent-color: #ffd166;
}

.pot-admin-actions-v32 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.pot-payments-table-v32 td small {
    display: block;
    color: #718096;
    margin-top: 3px;
    font-size: 11px;
}

.pot-payments-table-v32 tr.is-paid {
    background: rgba(56, 239, 125, 0.035);
}

.pot-payments-table-v32 tr.is-pending {
    background: rgba(255, 209, 102, 0.025);
}

.pot-player-state-v32,
.pot-payment-check-v32 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pot-player-state-v32.alive {
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.35);
    background: rgba(56, 239, 125, 0.08);
}

.pot-player-state-v32.dead {
    color: var(--squid-pink);
    border: 1px solid rgba(255, 19, 97, 0.35);
    background: rgba(255, 19, 97, 0.08);
}

.pot-payment-check-v32 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pot-payment-check-v32 input {
    width: auto;
    accent-color: #ffd166;
}

.pot-payment-check-v32 span {
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.28);
    background: rgba(255, 209, 102, 0.08);
}

.pot-events-list-v32 {
    display: grid;
    gap: 10px;
}

.pot-event-v32 {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.18);
}

.pot-event-v32 > span {
    color: #a0aec0;
    font-size: 12px;
}

.pot-event-v32 b {
    display: block;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.pot-event-v32 small {
    display: block;
    color: #a0aec0;
    margin-top: 2px;
}

.pot-event-v32 > strong {
    color: #ffd166;
    font-family: 'Orbitron', sans-serif;
}

@media (max-width: 1100px) {
    .pot-public-grid-v32,
    .pot-admin-kpis-v32,
    .pot-config-grid-v32 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pot-public-head-v32,
    .pot-admin-hero-v32 {
        flex-direction: column;
        align-items: stretch;
    }
    .pot-public-grid-v32,
    .pot-admin-kpis-v32,
    .pot-config-grid-v32 {
        grid-template-columns: 1fr;
    }
    .pot-admin-actions-v32 {
        justify-content: stretch;
    }
    .pot-admin-actions-v32 .btn-action {
        width: 100%;
    }
    .pot-event-v32 {
        grid-template-columns: 1fr;
    }
}

/* V3.2.1 — hotfix perfil, voto seleccionado y aislamiento visual */
#view-perfil .profile-dashboard-v31 {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

#view-perfil .profile-hero-v31 {
    grid-template-columns: minmax(320px, 1.35fr) minmax(320px, .95fr);
    align-items: stretch;
}

#view-perfil .profile-identity-v31,
#view-perfil .profile-hero-metrics-v31 {
    min-width: 0;
}

#view-perfil .profile-hero-metrics-v31 {
    align-self: stretch;
}

#view-perfil .profile-hero-metrics-v31 > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#view-perfil .profile-layout-v31 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

#view-perfil .profile-card-v31,
#view-perfil .profile-card-v31--teams,
#view-perfil .profile-card-v31--timeline,
#view-perfil .profile-card-v31--security,
#view-perfil .profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
    grid-column: span 1 !important;
    width: 100%;
    min-width: 0;
}

#view-perfil .profile-card-v31--stats {
    grid-column: 1 / -1 !important;
}

#view-perfil .profile-card-head-v31 {
    flex-wrap: wrap;
}

#view-perfil .profile-stats-grid-v31 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-perfil .profile-current-vote-v31,
#view-perfil .profile-team-cloud-v31,
#view-perfil .profile-personal-timeline-v31 {
    min-width: 0;
}

#panel-voto-activo,
#panel-bote-publico-v32 {
    margin-top: 0 !important;
}

#lista-partidos-votar .vote-team-option.is-selected,
#lista-partidos-votar .vote-team-option:has(input:checked) {
    border-color: rgba(57, 255, 20, 0.72) !important;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.18), rgba(8, 247, 254, 0.075)) !important;
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.24) inset, 0 18px 38px rgba(57, 255, 20, 0.10) !important;
}

#lista-partidos-votar .vote-team-option.is-selected .vote-team-code,
#lista-partidos-votar .vote-team-option:has(input:checked) .vote-team-code {
    background: linear-gradient(135deg, var(--squid-green), var(--squid-cyan));
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.22);
}

.vote-selected-badge-v32 {
    justify-self: end;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(57, 255, 20, 0.42);
    background: rgba(57, 255, 20, 0.12);
    color: var(--squid-green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

#contenedor-reserva.reserva-selected-v32 {
    border-top-color: rgba(57, 255, 20, 0.45) !important;
    border-radius: 16px;
    padding: 16px !important;
    background: rgba(57, 255, 20, 0.055);
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.12) inset;
}

#contenedor-reserva.reserva-selected-v32 label {
    color: var(--squid-green);
}

@media (min-width: 1280px) {
    #view-perfil .profile-card-v31--timeline {
        grid-column: span 1 !important;
    }
}

@media (max-width: 1100px) {
    #view-perfil .profile-hero-v31,
    #view-perfil .profile-layout-v31,
    #view-perfil .profile-stats-grid-v31 {
        grid-template-columns: 1fr;
    }
    #view-perfil .profile-card-v31,
    #view-perfil .profile-card-v31--stats,
    #view-perfil .profile-card-v31--teams,
    #view-perfil .profile-card-v31--timeline,
    #view-perfil .profile-card-v31--security {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 720px) {
    .vote-selected-badge-v32 {
        grid-column: 2;
        justify-self: start;
    }
    #panel-voto-activo {
        margin-top: 12px;
    }
}


/* V3.2.2 Hotfix: alineación estable de Emitir Voto --------------------- */
@media (min-width: 1281px) {
    #view-porra.active {
        grid-template-columns: minmax(420px, 5fr) minmax(560px, 7fr) !important;
        align-items: start !important;
    }

    #view-porra.active > .panel:first-child {
        grid-column: 1 / 2 !important;
        align-self: start !important;
        margin-top: 0 !important;
    }

    #view-porra.active > #panel-voto-activo {
        grid-column: 2 / 3 !important;
        align-self: start !important;
        margin-top: 0 !important;
    }

    #view-porra.active > #panel-bote-publico-v32 {
        grid-column: 1 / -1 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 1280px) {
    #view-porra.active > .panel:first-child,
    #view-porra.active > #panel-voto-activo,
    #view-porra.active > #panel-bote-publico-v32 {
        grid-column: 1 / -1 !important;
        margin-top: 0 !important;
    }
}

/* V3.2.3 — limpieza visual Mis Datos, voto, censo y formularios premium */
#view-perfil.active > .profile-dashboard-v31 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 1480px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

#view-perfil .profile-dashboard-v31,
#view-perfil .profile-dashboard-v31 * {
  box-sizing: border-box;
}

#view-perfil .profile-hero-v31 {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr) !important;
  gap: clamp(14px, 1.4vw, 22px) !important;
  align-items: stretch !important;
}

#view-perfil .profile-identity-v31 {
  min-width: 0 !important;
}

#view-perfil .profile-identity-v31 > div {
  min-width: 0 !important;
}

#view-perfil .profile-identity-v31 h2 {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#view-perfil .profile-hero-metrics-v31,
#view-perfil .profile-stats-grid-v31 {
  min-width: 0 !important;
}

#view-perfil .profile-hero-metrics-v31 > div,
#view-perfil .profile-stats-grid-v31 > div {
  min-width: 0 !important;
  overflow: hidden !important;
}

#view-perfil .profile-layout-v31 {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.2vw, 20px) !important;
}

#view-perfil .profile-card-v31 {
  min-width: 0 !important;
  width: 100% !important;
}

#view-perfil .profile-card-v31--stats {
  grid-column: span 12 !important;
}

#view-perfil .profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--teams):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
  grid-column: span 5 !important;
}

#view-perfil .profile-card-v31--teams {
  grid-column: span 7 !important;
}

#view-perfil .profile-card-v31--timeline {
  grid-column: span 7 !important;
}

#view-perfil .profile-card-v31--security {
  grid-column: span 5 !important;
}

@media (max-width: 1120px) {
  #view-perfil .profile-hero-v31,
  #view-perfil .profile-layout-v31,
  #view-perfil .profile-stats-grid-v31 {
    grid-template-columns: 1fr !important;
  }
  #view-perfil .profile-card-v31,
  #view-perfil .profile-card-v31--stats,
  #view-perfil .profile-card-v31--teams,
  #view-perfil .profile-card-v31--timeline,
  #view-perfil .profile-card-v31--security {
    grid-column: 1 / -1 !important;
  }
}

/* Emitir voto: diseño estable y centrado, sin dependencias de nth-child */
#view-porra.active {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: start !important;
}

#view-porra.active > #panel-comunicado-contenedor,
#view-porra.active > #panel-control-fase-v323,
#view-porra.active > #panel-bote-publico-v32 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 0 !important;
}

#view-porra.active > #panel-voto-activo {
  grid-column: 1 / -1 !important;
  width: min(100%, 1120px) !important;
  justify-self: center !important;
  margin-top: 0 !important;
}

#view-porra.active > #panel-bote-publico-v32 {
  width: min(100%, 1120px) !important;
  justify-self: center !important;
}

#panel-voto-activo .panel-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

#lista-partidos-votar.partidos-list {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

@media (min-width: 1180px) {
  #lista-partidos-votar.partidos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #view-porra.active > #panel-voto-activo,
  #view-porra.active > #panel-bote-publico-v32 {
    width: 100% !important;
  }
}

/* Censo: tabla más limpia, sin listado de equipos consumidos */
.operative-subjects-panel .panel-subtitle,
.eliminated-subjects-panel .panel-subtitle {
  max-width: 760px;
}

.operative-table th:nth-child(1),
.operative-table td:nth-child(1) { width: 42%; }
.operative-table th:nth-child(2),
.operative-table td:nth-child(2) { width: 38%; }
.operative-table th:nth-child(3),
.operative-table td:nth-child(3) { width: 20%; text-align: right; }

.eliminated-table th:nth-child(1),
.eliminated-table td:nth-child(1) { width: 55%; }
.eliminated-table th:nth-child(2),
.eliminated-table td:nth-child(2) { width: 25%; }
.eliminated-table th:nth-child(3),
.eliminated-table td:nth-child(3) { width: 20%; text-align: right; }

.subject-state-pill-v323 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.subject-state-pill-v323.is-dead {
  color: #ffd6e2;
  border: 1px solid rgba(255, 0, 76, .34);
  background: rgba(255, 0, 76, .10);
}

/* Formularios y selects premium */
.input-group input,
.input-group select,
textarea,
select,
input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
input[type="search"],
input[type="file"],
.tabla-cyber select,
.tabla-cyber input,
.pot-config-grid-v32 input,
.pot-config-grid-v32 select,
.pot-payments-table-v32 input,
.cyber-csv-file-input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(8, 247, 254, .24) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), rgba(3, 7, 18, .92) !important;
  color: #f8fbff !important;
  padding: 11px 13px !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.025) inset, 0 12px 26px rgba(0,0,0,.16) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

select,
.input-group select,
.pot-config-grid-v32 select,
.tabla-cyber select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--squid-cyan) 50%),
    linear-gradient(135deg, var(--squid-cyan) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 16px) 50%,
    0 0 !important;
  background-size: 7px 7px, 7px 7px, 100% 100% !important;
  background-repeat: no-repeat !important;
  background-color: rgba(3, 7, 18, .94) !important;
}

select option {
  color: #f8fbff;
  background: #070b17;
}

select option:checked,
select option:hover {
  color: #06111b;
  background: var(--squid-cyan);
}

.input-group input:focus,
.input-group select:focus,
textarea:focus,
select:focus,
input:focus,
.pot-config-grid-v32 input:focus,
.pot-config-grid-v32 select:focus,
.pot-payments-table-v32 input:focus {
  border-color: rgba(8, 247, 254, .78) !important;
  background: linear-gradient(180deg, rgba(8,247,254,.08), rgba(255,255,255,.02)), rgba(3, 7, 18, .96) !important;
  box-shadow: 0 0 0 4px rgba(8, 247, 254, .13), 0 0 30px rgba(8, 247, 254, .16), 0 0 0 1px rgba(255,255,255,.04) inset !important;
}

.pot-config-grid-v32 {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  align-items: end !important;
}

.pot-switch-v32 {
  min-height: 48px !important;
  border-radius: 14px !important;
}

@media (min-width: 1180px) {
  .pot-config-grid-v32 {
    grid-template-columns: minmax(220px, .75fr) repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pot-config-grid-v32 {
    grid-template-columns: 1fr !important;
  }
  .operative-table th:nth-child(n),
  .operative-table td:nth-child(n),
  .eliminated-table th:nth-child(n),
  .eliminated-table td:nth-child(n) {
    width: auto;
    text-align: left;
  }
}

/* V3.2.4 — restauración visual voto, perfil y controles de bote -------- */

/* Mis Datos: módulo encapsulado y ancho estable */
#view-perfil.view-content.active {
  display: block !important;
  width: 100% !important;
  max-width: 1560px !important;
  margin-inline: auto !important;
}

#view-perfil .profile-dashboard-v31 {
  width: 100% !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(16px, 1.4vw, 24px) !important;
  min-width: 0 !important;
}

#view-perfil .profile-hero-v31 {
  display: grid !important;
  grid-template-columns: minmax(360px, 1.25fr) minmax(420px, .95fr) !important;
  gap: clamp(16px, 1.5vw, 24px) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

#view-perfil .profile-identity-v31,
#view-perfil .profile-identity-v31 > div,
#view-perfil .profile-hero-metrics-v31,
#view-perfil .profile-layout-v31,
#view-perfil .profile-card-v31 {
  min-width: 0 !important;
}

#view-perfil .profile-hero-metrics-v31 {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
}

#view-perfil .profile-layout-v31 {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: clamp(16px, 1.3vw, 22px) !important;
  width: 100% !important;
}

#view-perfil .profile-card-v31 {
  width: 100% !important;
  overflow: hidden !important;
}

#view-perfil .profile-card-v31--stats {
  grid-column: 1 / -1 !important;
}

#view-perfil .profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--teams):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
  grid-column: span 5 !important;
}

#view-perfil .profile-card-v31--teams {
  grid-column: span 7 !important;
}

#view-perfil .profile-card-v31--timeline {
  grid-column: span 7 !important;
}

#view-perfil .profile-card-v31--security {
  grid-column: span 5 !important;
}

#view-perfil .profile-stats-grid-v31 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

@media (max-width: 1100px) {
  #view-perfil .profile-hero-v31,
  #view-perfil .profile-layout-v31 {
    grid-template-columns: 1fr !important;
  }

  #view-perfil .profile-card-v31,
  #view-perfil .profile-card-v31--stats,
  #view-perfil .profile-card-v31--teams,
  #view-perfil .profile-card-v31--timeline,
  #view-perfil .profile-card-v31--security {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  #view-perfil .profile-identity-v31 {
    align-items: flex-start !important;
  }

  #view-perfil .profile-avatar-v31 {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    font-size: 20px !important;
  }

  #view-perfil .profile-hero-metrics-v31 {
    grid-template-columns: 1fr !important;
  }
}

/* Emitir Voto: desktop amplio, legible y sin compresión agresiva */
#view-porra.view-content.active {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: clamp(18px, 1.6vw, 28px) !important;
}

#view-porra.active > #panel-comunicado-contenedor,
#view-porra.active > #panel-control-fase-v323,
#view-porra.active > #panel-bote-publico-v32 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  margin-top: 0 !important;
}

#view-porra.active > #panel-voto-activo {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 1560px !important;
  justify-self: center !important;
  margin-top: 0 !important;
}

#panel-voto-activo .panel-title {
  margin-bottom: clamp(18px, 1.4vw, 24px) !important;
}

#lista-partidos-votar.partidos-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 680px), 1fr)) !important;
  gap: clamp(14px, 1.2vw, 20px) !important;
  width: 100% !important;
  margin-bottom: 22px !important;
}

#lista-partidos-votar .vote-match-card {
  display: grid !important;
  grid-template-columns: 142px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 16px !important;
  min-height: 112px !important;
  padding: 14px !important;
}

#lista-partidos-votar .vote-match-head {
  align-content: center !important;
  gap: 9px !important;
}

#lista-partidos-votar .vote-match-id,
#lista-partidos-votar .vote-match-state {
  max-width: 132px !important;
  width: max-content !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

#lista-partidos-votar .vote-match-body.vote-match-body--linear {
  display: grid !important;
  grid-template-columns: minmax(250px, 1fr) 42px minmax(250px, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  align-content: center !important;
  align-items: center !important;
  gap: 4px 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 86px !important;
  padding: 13px 14px !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear .vote-team-code {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

#lista-partidos-votar .vote-team-copy {
  grid-column: 2 !important;
  min-width: 0 !important;
  gap: 3px !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear .vote-team-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  font-size: clamp(16px, 1vw, 19px) !important;
  line-height: 1.08 !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear .vote-team-note,
#lista-partidos-votar .vote-selected-badge-v32 {
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  margin-top: 3px !important;
  position: static !important;
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.1 !important;
}

#lista-partidos-votar .vote-selected-badge-v32 {
  padding: 5px 9px !important;
  border-color: rgba(57, 255, 20, .48) !important;
  background: rgba(57, 255, 20, .13) !important;
  color: var(--squid-green) !important;
  box-shadow: 0 0 18px rgba(57, 255, 20, .10) !important;
}

#lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
  width: 42px !important;
  height: 42px !important;
  align-self: center !important;
}

#panel-voto-activo .panel-footer-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 18px !important;
}

#panel-voto-activo .vote-submit-button {
  min-width: min(100%, 280px) !important;
}

@media (max-width: 920px) {
  #lista-partidos-votar .vote-match-card {
    grid-template-columns: 1fr !important;
  }

  #lista-partidos-votar .vote-match-head {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  #lista-partidos-votar .vote-match-body.vote-match-body--linear {
    grid-template-columns: 1fr !important;
  }

  #lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
    width: 100% !important;
    height: 30px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 640px) {
  #panel-voto-activo .panel-footer-actions {
    justify-content: stretch !important;
  }

  #panel-voto-activo .vote-submit-button {
    width: 100% !important;
  }
}

/* Bote: checkbox compactos, sin heredar estilo de input de texto */
input[type="checkbox"],
input[type="radio"],
.pot-config-grid-v32 input[type="checkbox"],
.pot-payments-table-v32 input[type="checkbox"],
.tabla-cyber input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(8, 247, 254, .38) !important;
  background: rgba(3, 7, 18, .88) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.035) inset, 0 0 16px rgba(8, 247, 254, .08) !important;
  cursor: pointer !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 22px !important;
  vertical-align: middle !important;
}

input[type="checkbox"]::after,
input[type="radio"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform .14s ease;
  background: linear-gradient(135deg, var(--squid-green), var(--squid-cyan));
  box-shadow: 0 0 14px rgba(57, 255, 20, .35);
}

input[type="radio"] {
  border-radius: 50% !important;
}

input[type="radio"]::after {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: rgba(57, 255, 20, .72) !important;
  background: rgba(57, 255, 20, .10) !important;
}

input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
  transform: scale(1);
}

.pot-switch-v32 {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 46px !important;
  padding: 11px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(8, 247, 254, .24) !important;
  background: linear-gradient(180deg, rgba(8,247,254,.055), rgba(255,255,255,.018)), rgba(3, 7, 18, .62) !important;
  cursor: pointer !important;
}

.pot-switch-v32 span,
.pot-payment-check-v32 span {
  color: var(--squid-cyan) !important;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.pot-switch-v32:has(input:checked) {
  border-color: rgba(57, 255, 20, .40) !important;
  background: linear-gradient(180deg, rgba(57,255,20,.08), rgba(8,247,254,.035)), rgba(3, 7, 18, .72) !important;
}

.pot-payment-check-v32 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.pot-payment-check-v32 input[type="checkbox"]:checked + span {
  color: var(--squid-green) !important;
}

.pot-payments-table-v32 td[data-label="Pago"] {
  min-width: 150px !important;
}

.pot-config-grid-v32 input[type="number"],
.pot-payments-table-v32 input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.pot-config-grid-v32 input[type="number"]::-webkit-outer-spin-button,
.pot-config-grid-v32 input[type="number"]::-webkit-inner-spin-button,
.pot-payments-table-v32 input[type="number"]::-webkit-outer-spin-button,
.pot-payments-table-v32 input[type="number"]::-webkit-inner-spin-button {
  opacity: .7;
}

/* V3.2.5 — Hotfix anti-overflow en Emitir Voto
   Evita que los estados/selecciones verdes se viertan sobre otras cards cuando
   el panel entra en layout de dos columnas o hay zoom/resoluciones intermedias. */
#panel-voto-activo {
  overflow: hidden !important;
}

#lista-partidos-votar.partidos-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 780px), 1fr)) !important;
  align-items: start !important;
}

#lista-partidos-votar .vote-match-card {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  contain: paint !important;
}

#lista-partidos-votar .vote-match-head,
#lista-partidos-votar .vote-match-body.vote-match-body--linear,
#lista-partidos-votar .vote-team-option.vote-team-option--linear,
#lista-partidos-votar .vote-team-copy {
  min-width: 0 !important;
  max-width: 100% !important;
}

#lista-partidos-votar .vote-match-body.vote-match-body--linear {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) !important;
  overflow: hidden !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear {
  overflow: hidden !important;
  isolation: isolate !important;
  z-index: 0 !important;
}

#lista-partidos-votar .vote-team-option.vote-team-option--linear.is-selected,
#lista-partidos-votar .vote-team-option.vote-team-option--linear:has(input:checked) {
  z-index: 1 !important;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, .28) inset,
    0 0 0 2px rgba(57, 255, 20, .10) inset,
    0 10px 24px rgba(57, 255, 20, .08) !important;
}

#lista-partidos-votar .vote-selected-badge-v32 {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1720px) {
  #lista-partidos-votar.partidos-list {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1721px) {
  #lista-partidos-votar .vote-match-body.vote-match-body--linear {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) !important;
  }
}


/* === V3 Final · Muro de Supervivencia y modo presentación === */
.survival-wall-panel-v33 {
    border-color: rgba(255, 0, 110, 0.42) !important;
    background:
        radial-gradient(circle at top left, rgba(255, 0, 110, 0.15), transparent 34%),
        radial-gradient(circle at top right, rgba(8, 247, 254, 0.13), transparent 36%),
        rgba(10, 18, 34, 0.86);
    overflow: hidden;
}
.survival-wall-head-v33 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}
.survival-wall-title-v33 {
    color: #fff !important;
    border-left-color: var(--squid-pink) !important;
}
.survival-wall-actions-v33 {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.survival-wall-kpis-v33 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}
.survival-wall-kpis-v33 > div {
    border: 1px solid rgba(8,247,254,.2);
    background: rgba(3, 8, 22, .48);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 0;
}
.survival-wall-kpis-v33 strong {
    display: block;
    color: #fff;
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1;
    font-family: 'Orbitron', monospace;
}
.survival-wall-kpis-v33 small {
    display: block;
    margin-top: 7px;
    color: rgba(226,232,240,.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.survival-wall-grid-v33 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 14px;
}
.survival-subject-card-v33 {
    position: relative;
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr) auto;
    grid-template-areas:
        "num avatar main meta"
        "num avatar vote vote";
    gap: 10px 12px;
    align-items: center;
    min-height: 118px;
    width: 100%;
    border: 1px solid rgba(8,247,254,.26);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(4,13,26,.78));
    color: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.survival-subject-card-v33:hover,
.survival-subject-card-v33:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(8,247,254,.7);
    box-shadow: 0 16px 32px rgba(8,247,254,.12);
    outline: none;
}
.survival-subject-card-v33.is-dead {
    border-color: rgba(255, 0, 110, .32);
    filter: saturate(.68);
}
.survival-subject-card-v33.has-vote.is-alive {
    border-color: rgba(57,255,136,.42);
}
.survival-card-number-v33 {
    grid-area: num;
    align-self: start;
    color: rgba(8,247,254,.82);
    font-size: 10px;
    font-family: 'Orbitron', monospace;
    letter-spacing: .14em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: .82;
}
.survival-card-avatar-v33 {
    grid-area: avatar;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--squid-green), var(--squid-cyan));
    color: #001018;
    font-weight: 900;
    font-size: 19px;
    box-shadow: 0 0 24px rgba(8,247,254,.22);
}
.survival-subject-card-v33.is-dead .survival-card-avatar-v33 {
    background: linear-gradient(135deg, rgba(255,0,110,.85), rgba(87,96,117,.82));
    color: #fff;
}
.survival-card-main-v33 {
    grid-area: main;
    min-width: 0;
}
.survival-card-main-v33 strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.survival-card-main-v33 small,
.survival-card-vote-v33 small,
.survival-card-meta-v33 small {
    display: block;
    color: rgba(203,213,225,.72);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.survival-card-vote-v33 {
    grid-area: vote;
    align-self: stretch;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(2,6,23,.42);
    padding: 9px 11px;
}
.survival-card-vote-v33 b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e2e8f0;
    font-size: 13px;
}
.survival-card-vote-v33.is-revealed,
.survival-card-vote-v33.is-own {
    border-color: rgba(57,255,136,.4);
    background: rgba(57,255,136,.08);
}
.survival-card-vote-v33.is-revealed b,
.survival-card-vote-v33.is-own b { color: var(--squid-green); }
.survival-card-vote-v33.is-hidden {
    border-color: rgba(8,247,254,.28);
    background: rgba(8,247,254,.07);
}
.survival-card-vote-v33.is-hidden b { color: var(--squid-cyan); }
.survival-card-vote-v33.is-pending {
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .07);
}
.survival-card-vote-v33.is-pending b { color: #facc15; }
.survival-card-meta-v33 {
    grid-area: meta;
    justify-self: end;
    text-align: right;
    min-width: 54px;
}
.survival-card-meta-v33 b {
    display: block;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 20px;
}
.survival-card-killmark-v33 {
    position: absolute;
    inset: auto -35px 16px auto;
    transform: rotate(-18deg);
    border: 1px solid rgba(255,0,110,.55);
    background: rgba(255,0,110,.14);
    color: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    padding: 5px 42px;
    pointer-events: none;
}
.presentation-wall-modal-v33 {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    padding: 24px;
}
.presentation-wall-modal-v33.open { display: block; }
.presentation-wall-backdrop-v33 {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.88);
    backdrop-filter: blur(14px);
}
.presentation-wall-panel-v33 {
    position: relative;
    z-index: 1;
    height: min(940px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(8,247,254,.35);
    border-radius: 28px;
    padding: clamp(18px, 3vw, 34px);
    background:
        linear-gradient(135deg, rgba(255,0,110,.12), transparent 32%),
        radial-gradient(circle at top right, rgba(8,247,254,.18), transparent 40%),
        rgba(6, 10, 25, .96);
    box-shadow: 0 0 80px rgba(8,247,254,.14);
}
.presentation-wall-topbar-v33 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.presentation-wall-kicker-v33 {
    color: var(--squid-cyan);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 900;
    font-size: 11px;
    margin: 0 0 6px;
}
.presentation-wall-topbar-v33 h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 56px);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.presentation-wall-close-v33 {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,0,110,.45);
    background: rgba(255,0,110,.12);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.presentation-wall-summary-v33 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.presentation-wall-summary-v33 article {
    border: 1px solid rgba(8,247,254,.22);
    border-radius: 18px;
    padding: 16px;
    background: rgba(2,6,23,.55);
}
.presentation-wall-summary-v33 span {
    display: block;
    color: rgba(226,232,240,.64);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.presentation-wall-summary-v33 strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: clamp(24px, 3vw, 42px);
}
.presentation-wall-grid-v33 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.presentation-wall-grid-v33 .survival-subject-card-v33 {
    min-height: 136px;
}
.presentation-wall-open-v33 { overflow: hidden; }
@media (max-width: 900px) {
    .survival-wall-head-v33 { flex-direction: column; }
    .survival-wall-actions-v33 { width: 100%; justify-content: stretch; }
    .survival-wall-actions-v33 .btn-action { width: 100%; }
    .survival-wall-kpis-v33,
    .presentation-wall-summary-v33 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .survival-wall-grid-v33,
    .presentation-wall-grid-v33 { grid-template-columns: 1fr; }
    .survival-subject-card-v33 {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas:
            "avatar main meta"
            "vote vote vote";
        min-height: 112px;
    }
    .survival-card-number-v33 { display: none; }
    .survival-card-avatar-v33 { width: 48px; height: 48px; border-radius: 16px; }
    .presentation-wall-modal-v33 { padding: 10px; }
    .presentation-wall-panel-v33 { height: calc(100vh - 20px); border-radius: 20px; }
}

/* V3.3.2 — Hotfix Mis Datos: layout encapsulado y sin descuadres
   Reordena la ficha personal con áreas explícitas para evitar que reglas
   heredadas de grids anteriores compriman o desplacen tarjetas internas. */
#view-perfil.view-content.active {
  display: block !important;
  width: 100% !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding-inline: clamp(0px, 1vw, 8px) !important;
  overflow: visible !important;
}

#view-perfil .profile-dashboard-v31,
#view-perfil .profile-dashboard-v31 * {
  box-sizing: border-box !important;
}

#view-perfil .profile-dashboard-v31 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(18px, 1.4vw, 26px) !important;
  width: 100% !important;
  max-width: 1560px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

#view-perfil .profile-hero-v31 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr) !important;
  gap: clamp(16px, 1.35vw, 24px) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#view-perfil .profile-identity-v31,
#view-perfil .profile-identity-v31 > div,
#view-perfil .profile-hero-metrics-v31,
#view-perfil .profile-layout-v31,
#view-perfil .profile-card-v31,
#view-perfil .profile-card-v31 > *,
#view-perfil .profile-current-vote-v31,
#view-perfil .profile-team-cloud-v31,
#view-perfil .profile-personal-timeline-v31 {
  min-width: 0 !important;
  max-width: 100% !important;
}

#view-perfil .profile-identity-v31 {
  width: 100% !important;
  overflow: hidden !important;
}

#view-perfil .profile-avatar-v31 {
  flex: 0 0 76px !important;
}

#view-perfil .profile-identity-v31 h2,
#view-perfil .profile-kicker-v31,
#view-perfil .profile-badges-v31 {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#view-perfil .profile-hero-metrics-v31 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-self: stretch !important;
}

#view-perfil .profile-hero-metrics-v31 > div,
#view-perfil .profile-stats-grid-v31 > div {
  overflow: hidden !important;
  min-width: 0 !important;
}

#view-perfil .profile-hero-metrics-v31 strong,
#view-perfil .profile-stats-grid-v31 b {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#view-perfil .profile-layout-v31 {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-areas:
    "stats stats stats stats stats stats stats stats stats stats stats stats"
    "vote vote vote vote vote security security security security security security security"
    "used used used used used used available available available available available available"
    "timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline" !important;
  gap: clamp(16px, 1.3vw, 24px) !important;
  align-items: start !important;
  width: 100% !important;
}

#view-perfil .profile-layout-v31 > article:nth-of-type(1) { grid-area: stats !important; }
#view-perfil .profile-layout-v31 > article:nth-of-type(2) { grid-area: vote !important; }
#view-perfil .profile-layout-v31 > article:nth-of-type(3) { grid-area: used !important; }
#view-perfil .profile-layout-v31 > article:nth-of-type(4) { grid-area: available !important; }
#view-perfil .profile-layout-v31 > article:nth-of-type(5) { grid-area: timeline !important; }
#view-perfil .profile-layout-v31 > article:nth-of-type(6) { grid-area: security !important; }

#view-perfil .profile-card-v31,
#view-perfil .profile-card-v31--stats,
#view-perfil .profile-card-v31--teams,
#view-perfil .profile-card-v31--timeline,
#view-perfil .profile-card-v31--security,
#view-perfil .profile-card-v31:not(.profile-card-v31--stats):not(.profile-card-v31--teams):not(.profile-card-v31--timeline):not(.profile-card-v31--security) {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#view-perfil .profile-stats-grid-v31 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 12px !important;
}

#view-perfil .profile-team-cloud-v31 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px !important;
  max-height: 240px !important;
  overflow: auto !important;
}

#view-perfil .profile-team-chip-v31 {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

#view-perfil .profile-card-head-v31 {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}

#view-perfil .profile-card-head-v31 > div {
  min-width: 0 !important;
}

#view-perfil .profile-count-pill-v31 {
  flex: 0 0 auto !important;
}

#view-perfil .input-group,
#view-perfil .input-group input,
#view-perfil #perfil-new-pass {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  #view-perfil .profile-hero-v31 {
    grid-template-columns: 1fr !important;
  }

  #view-perfil .profile-layout-v31 {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "stats"
      "vote"
      "used"
      "available"
      "timeline"
      "security" !important;
  }
}

@media (max-width: 720px) {
  #view-perfil.view-content.active {
    padding-inline: 0 !important;
  }

  #view-perfil .profile-hero-v31,
  #view-perfil .profile-card-v31 {
    border-radius: 20px !important;
  }

  #view-perfil .profile-identity-v31 {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  #view-perfil .profile-avatar-v31 {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
    border-radius: 18px !important;
    font-size: 20px !important;
  }

  #view-perfil .profile-hero-metrics-v31,
  #view-perfil .profile-stats-grid-v31 {
    grid-template-columns: 1fr !important;
  }

  #view-perfil .profile-card-head-v31 {
    flex-wrap: wrap !important;
  }

  #view-perfil .profile-timeline-row-v31 {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
}


/* V3.3.3 — Avatar Guardia + modo presentación desktop + modal sobre presentación */
.survival-card-avatar-v33.is-guard-avatar-v333 {
  overflow: hidden;
  padding: 5px;
  isolation: isolate;
  border: 1px solid rgba(57, 255, 136, .36);
  background:
    radial-gradient(circle at 45% 28%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg, rgba(57,255,136,.98), rgba(8,247,254,.82));
  box-shadow: 0 0 26px rgba(57,255,136,.20), inset 0 0 18px rgba(2,6,23,.18);
}
.survival-card-avatar-v33.is-guard-avatar-v333 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 14px;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.38));
  pointer-events: none;
}
.survival-subject-card-v33.is-dead .survival-card-avatar-v33.is-guard-avatar-v333 {
  border-color: rgba(255, 0, 110, .46);
  background:
    radial-gradient(circle at 42% 25%, rgba(255,255,255,.14), transparent 27%),
    linear-gradient(135deg, rgba(255,0,110,.92), rgba(79,70,90,.82));
  box-shadow: 0 0 24px rgba(255,0,110,.20), inset 0 0 18px rgba(2,6,23,.22);
}
.survival-subject-card-v33.is-dead .survival-card-avatar-v33.is-guard-avatar-v333 img {
  filter: grayscale(.22) saturate(.72) brightness(.82) drop-shadow(0 7px 10px rgba(0,0,0,.45));
}
.player-profile-modal-v31 {
  z-index: 10030 !important;
}
.presentation-wall-modal-v33.open + .about-modal,
.player-profile-modal-v31.open {
  z-index: 10030 !important;
}
.presentation-wall-modal-v33.open .survival-subject-card-v33 {
  position: relative;
  z-index: 1;
}
@media (max-width: 1023px) {
  .survival-presentation-button-v33,
  #btn-modo-presentacion-v33 {
    display: none !important;
  }
}

/* V3.3.4 — Hotfix definitivo Mis Datos: áreas explícitas y sin compresión
   Sustituye la dependencia de nth-of-type/grid-column por áreas con clases propias,
   evitando que reglas heredadas de paneles anteriores dejen tarjetas en columnas mínimas. */
#view-perfil.view-content.active {
  display: block !important;
  width: 100% !important;
  max-width: 1580px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

#view-perfil .profile-dashboard-v31 {
  width: 100% !important;
  max-width: 1580px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(18px, 1.5vw, 28px) !important;
  min-width: 0 !important;
}

#view-perfil .profile-dashboard-v31,
#view-perfil .profile-dashboard-v31 * {
  box-sizing: border-box !important;
}

#view-perfil .profile-hero-v31 {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr) !important;
  gap: clamp(16px, 1.4vw, 24px) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

#view-perfil .profile-layout-v31 {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-areas:
    "stats stats stats stats stats stats stats stats stats stats stats stats"
    "vote vote vote vote security security security security security security security security"
    "used used used used used used available available available available available available"
    "timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline timeline" !important;
  gap: clamp(18px, 1.45vw, 26px) !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

#view-perfil .profile-layout-v31 > article.profile-card-v31 {
  grid-column: unset !important;
  grid-row: unset !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}

#view-perfil .profile-area-stats-v334 { grid-area: stats !important; }
#view-perfil .profile-area-vote-v334 { grid-area: vote !important; }
#view-perfil .profile-area-security-v334 { grid-area: security !important; }
#view-perfil .profile-area-used-v334 { grid-area: used !important; }
#view-perfil .profile-area-available-v334 { grid-area: available !important; }
#view-perfil .profile-area-timeline-v334 { grid-area: timeline !important; }

#view-perfil .profile-identity-v31,
#view-perfil .profile-identity-v31 > div,
#view-perfil .profile-hero-metrics-v31,
#view-perfil .profile-stats-grid-v31,
#view-perfil .profile-current-vote-v31,
#view-perfil .profile-team-cloud-v31,
#view-perfil .profile-personal-timeline-v31,
#view-perfil .input-group,
#view-perfil #perfil-new-pass {
  min-width: 0 !important;
  max-width: 100% !important;
}

#view-perfil .profile-hero-metrics-v31 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#view-perfil .profile-stats-grid-v31 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}

#view-perfil .profile-hero-metrics-v31 > div,
#view-perfil .profile-stats-grid-v31 > div {
  min-width: 0 !important;
  overflow: hidden !important;
}

#view-perfil .profile-hero-metrics-v31 strong,
#view-perfil .profile-stats-grid-v31 b,
#view-perfil .profile-current-vote-v31 strong,
#view-perfil .profile-current-vote-v31 b,
#view-perfil .profile-team-chip-v31,
#view-perfil .profile-timeline-row-v31 {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

#view-perfil .profile-current-vote-v31 {
  flex: 1 1 auto !important;
  width: 100% !important;
}

#view-perfil .profile-vote-detail-v31 {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

#view-perfil .profile-card-head-v31 {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

#view-perfil .profile-card-head-v31 > div {
  min-width: min(100%, 260px) !important;
  flex: 1 1 260px !important;
}

#view-perfil .profile-count-pill-v31 {
  flex: 0 0 auto !important;
}

#view-perfil .profile-team-cloud-v31 {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  align-items: flex-start !important;
  gap: 8px !important;
  max-height: 260px !important;
  overflow: auto !important;
}

#view-perfil .profile-team-chip-v31 {
  max-width: 100% !important;
  min-width: 0 !important;
}

#view-perfil .profile-personal-timeline-v31 {
  width: 100% !important;
  display: grid !important;
  gap: 10px !important;
}

#view-perfil .profile-timeline-row-v31 {
  width: 100% !important;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr) auto !important;
}

#view-perfil .profile-area-security-v334 .input-group,
#view-perfil .profile-area-security-v334 #perfil-new-pass {
  width: 100% !important;
}

@media (max-width: 1180px) {
  #view-perfil .profile-hero-v31 {
    grid-template-columns: 1fr !important;
  }
  #view-perfil .profile-layout-v31 {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "stats"
      "vote"
      "security"
      "used"
      "available"
      "timeline" !important;
  }
}

@media (max-width: 720px) {
  #view-perfil.view-content.active {
    padding: 0 !important;
  }
  #view-perfil .profile-hero-v31,
  #view-perfil .profile-card-v31 {
    border-radius: 20px !important;
  }
  #view-perfil .profile-identity-v31 {
    align-items: flex-start !important;
    gap: 12px !important;
  }
  #view-perfil .profile-avatar-v31 {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 18px !important;
  }
  #view-perfil .profile-hero-metrics-v31,
  #view-perfil .profile-stats-grid-v31 {
    grid-template-columns: 1fr !important;
  }
  #view-perfil .profile-timeline-row-v31 {
    grid-template-columns: 1fr !important;
  }
}


/* Inline backup: V3.3.5 Mis Datos */

        /* V3.3.5 — Mis Datos: blindaje visual post-cache.
           Este bloque vive en index.html para que el layout no dependa de CSS cacheado.
           Evita la compresión vertical de tarjetas y mantiene desktop amplio + móvil apilado. */
        #view-perfil.view-content.active {
            display: block !important;
            width: min(100%, calc(100vw - 64px)) !important;
            max-width: 1580px !important;
            margin: 0 auto !important;
            padding: 0 !important;
            overflow: visible !important;
        }
        #view-perfil .profile-dashboard-v31,
        #view-perfil .profile-dashboard-v31 * {
            box-sizing: border-box !important;
            writing-mode: horizontal-tb !important;
            text-orientation: mixed !important;
        }
        #view-perfil .profile-dashboard-v31 {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 auto !important;
            display: flex !important;
            flex-direction: column !important;
            gap: clamp(20px, 1.5vw, 30px) !important;
            align-items: stretch !important;
        }
        #view-perfil .profile-hero-v31 {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            display: flex !important;
            flex-wrap: wrap !important;
            gap: clamp(16px, 1.35vw, 24px) !important;
            align-items: stretch !important;
            justify-content: space-between !important;
            overflow: hidden !important;
        }
        #view-perfil .profile-identity-v31 {
            flex: 1 1 520px !important;
            min-width: min(100%, 420px) !important;
            max-width: 100% !important;
            display: flex !important;
            align-items: center !important;
            gap: 18px !important;
            overflow: hidden !important;
        }
        #view-perfil .profile-avatar-v31 {
            flex: 0 0 78px !important;
            width: 78px !important;
            height: 78px !important;
        }
        #view-perfil .profile-identity-v31 > div {
            min-width: 0 !important;
            max-width: 100% !important;
        }
        #view-perfil .profile-identity-v31 h2 {
            max-width: 100% !important;
            white-space: normal !important;
            overflow-wrap: anywhere !important;
            line-height: 1.05 !important;
        }
        #view-perfil .profile-hero-metrics-v31 {
            flex: 1 1 560px !important;
            min-width: min(100%, 420px) !important;
            max-width: 100% !important;
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            gap: 12px !important;
            align-self: stretch !important;
        }
        #view-perfil .profile-layout-v31 {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            display: flex !important;
            flex-wrap: wrap !important;
            gap: clamp(18px, 1.45vw, 26px) !important;
            align-items: stretch !important;
            justify-content: stretch !important;
        }
        #view-perfil .profile-layout-v31 > article.profile-card-v31,
        #view-perfil .profile-card-v31,
        #view-perfil .profile-card-v31--stats,
        #view-perfil .profile-card-v31--teams,
        #view-perfil .profile-card-v31--timeline,
        #view-perfil .profile-card-v31--security {
            display: flex !important;
            flex-direction: column !important;
            width: auto !important;
            max-width: 100% !important;
            min-width: min(100%, 420px) !important;
            min-height: 0 !important;
            overflow: hidden !important;
            grid-column: auto !important;
            grid-row: auto !important;
            grid-area: auto !important;
        }
        #view-perfil .profile-area-stats-v334 {
            flex: 1 1 100% !important;
            min-width: 100% !important;
        }
        #view-perfil .profile-area-vote-v334,
        #view-perfil .profile-area-security-v334 {
            flex: 1 1 520px !important;
        }
        #view-perfil .profile-area-used-v334,
        #view-perfil .profile-area-available-v334 {
            flex: 1 1 560px !important;
        }
        #view-perfil .profile-area-timeline-v334 {
            flex: 1 1 100% !important;
            min-width: 100% !important;
        }
        #view-perfil .profile-stats-grid-v31 {
            display: grid !important;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
            gap: 12px !important;
            width: 100% !important;
        }
        #view-perfil .profile-hero-metrics-v31 > div,
        #view-perfil .profile-stats-grid-v31 > div {
            min-width: 0 !important;
            overflow: hidden !important;
        }
        #view-perfil .profile-current-vote-v31,
        #view-perfil .profile-team-cloud-v31,
        #view-perfil .profile-personal-timeline-v31,
        #view-perfil .profile-area-security-v334 .input-group,
        #view-perfil .profile-area-security-v334 #perfil-new-pass {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }
        #view-perfil .profile-current-vote-v31,
        #view-perfil .profile-current-vote-v31 *,
        #view-perfil .profile-card-head-v31,
        #view-perfil .profile-card-head-v31 *,
        #view-perfil .profile-team-chip-v31,
        #view-perfil .profile-timeline-row-v31,
        #view-perfil .profile-timeline-row-v31 * {
            white-space: normal !important;
            overflow-wrap: anywhere !important;
            word-break: normal !important;
        }
        #view-perfil .profile-card-head-v31 {
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
            gap: 14px !important;
            flex-wrap: wrap !important;
            width: 100% !important;
        }
        #view-perfil .profile-card-head-v31 > div {
            flex: 1 1 260px !important;
            min-width: 0 !important;
        }
        #view-perfil .profile-team-cloud-v31 {
            display: flex !important;
            flex-wrap: wrap !important;
            align-content: flex-start !important;
            align-items: flex-start !important;
            gap: 8px !important;
            max-height: 260px !important;
            overflow: auto !important;
        }
        #view-perfil .profile-vote-detail-v31 {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 10px !important;
            width: 100% !important;
        }
        #view-perfil .profile-timeline-row-v31 {
            display: grid !important;
            grid-template-columns: minmax(58px, auto) minmax(0, 1fr) auto !important;
            gap: 12px !important;
            align-items: center !important;
        }
        @media (max-width: 1180px) {
            #view-perfil.view-content.active { width: min(100%, calc(100vw - 36px)) !important; }
            #view-perfil .profile-hero-v31,
            #view-perfil .profile-layout-v31 { flex-direction: column !important; }
            #view-perfil .profile-identity-v31,
            #view-perfil .profile-hero-metrics-v31,
            #view-perfil .profile-layout-v31 > article.profile-card-v31,
            #view-perfil .profile-area-stats-v334,
            #view-perfil .profile-area-vote-v334,
            #view-perfil .profile-area-security-v334,
            #view-perfil .profile-area-used-v334,
            #view-perfil .profile-area-available-v334,
            #view-perfil .profile-area-timeline-v334 {
                flex: 1 1 auto !important;
                min-width: 100% !important;
                width: 100% !important;
            }
        }
        @media (max-width: 720px) {
            #view-perfil.view-content.active { width: min(100%, calc(100vw - 24px)) !important; }
            #view-perfil .profile-identity-v31 { align-items: flex-start !important; }
            #view-perfil .profile-avatar-v31 { width: 58px !important; height: 58px !important; flex-basis: 58px !important; }
            #view-perfil .profile-hero-metrics-v31,
            #view-perfil .profile-stats-grid-v31 { grid-template-columns: 1fr !important; }
            #view-perfil .profile-timeline-row-v31 { grid-template-columns: 1fr !important; align-items: start !important; }
        }
    

/* =========================
   V4.1 · Automatización asistida
   ========================= */
.automation-panel-v41,
.automation-card-v41 {
    border: 1px solid rgba(0, 210, 255, 0.24);
    background: linear-gradient(135deg, rgba(10, 14, 30, 0.94), rgba(16, 24, 44, 0.88));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.automation-hero-v41 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.automation-safe-badge-v41 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(60, 255, 174, 0.45);
    background: rgba(60, 255, 174, 0.11);
    color: var(--squid-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.automation-kpis-v41 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.automation-kpis-v41 article,
.automation-status-stack-v41 article {
    border: 1px solid rgba(0, 210, 255, 0.22);
    background: rgba(3, 8, 20, 0.62);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
}
.automation-kpis-v41 span,
.automation-status-stack-v41 span,
.automation-fields-v41 label,
.automation-form-v41 > div > label {
    display: block;
    color: var(--squid-cyan);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.automation-kpis-v41 strong,
.automation-status-stack-v41 strong {
    display: block;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1.05;
}
.automation-status-stack-v41 small {
    display: block;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}
.automation-grid-v41 {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
    gap: 18px;
    align-items: stretch;
}
.automation-form-v41 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.automation-switch-v41 {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 210, 255, 0.28);
    background: rgba(0, 210, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}
.automation-switch-v41 input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.automation-switch-v41 span {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(15, 23, 42, .95);
    position: relative;
    transition: .2s ease;
}
.automation-switch-v41 span::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    background: #64748b;
    transition: .2s ease;
}
.automation-switch-v41 input:checked + span {
    border-color: rgba(60, 255, 174, .85);
    background: rgba(60, 255, 174, .14);
    box-shadow: 0 0 18px rgba(60, 255, 174, .18);
}
.automation-switch-v41 input:checked + span::after {
    left: 21px;
    background: var(--squid-green);
}
.automation-switch-v41 strong {
    color: #fff;
    font-size: 13px;
    letter-spacing: .02em;
}
.automation-fields-v41 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.automation-fields-v41 input,
.automation-fields-v41 select,
#auto-notes-v41 {
    width: 100%;
    border: 1px solid rgba(0, 210, 255, .36);
    background: rgba(2, 6, 16, .88);
    color: #fff;
    border-radius: 13px;
    padding: 12px 14px;
    outline: none;
}
#auto-notes-v41 {
    resize: vertical;
    min-height: 92px;
}
.automation-actions-v41 {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.automation-status-stack-v41 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.mini-title-v41 {
    margin-top: 22px;
    font-size: 15px !important;
}
.automation-jobs-v41,
.automation-recommendations-v41 {
    display: grid;
    gap: 10px;
}
.automation-jobs-v41 article,
.automation-recommendations-v41 article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(3, 8, 20, .52);
    border-radius: 14px;
    padding: 13px 14px;
}
.automation-jobs-v41 article.is-enabled,
.automation-recommendations-v41 article.level-action {
    border-color: rgba(60, 255, 174, .45);
    background: rgba(60, 255, 174, .08);
}
.automation-recommendations-v41 article.level-warning {
    border-color: rgba(255, 193, 7, .45);
    background: rgba(255, 193, 7, .08);
}
.automation-recommendations-v41 article strong,
.automation-jobs-v41 article strong {
    color: #fff;
}
.automation-recommendations-v41 article span,
.automation-jobs-v41 article span,
.automation-jobs-v41 article small {
    color: var(--text-muted);
    font-size: 12px;
}
@media (max-width: 1120px) {
    .automation-grid-v41,
    .automation-kpis-v41,
    .automation-fields-v41,
    .automation-status-stack-v41 {
        grid-template-columns: 1fr;
    }
    .automation-hero-v41 {
        flex-direction: column;
    }
}
@media (max-width: 720px) {
    .automation-safe-badge-v41,
    .automation-actions-v41 .btn-action {
        width: 100%;
    }
    .automation-jobs-v41 article,
    .automation-recommendations-v41 article {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================
   V4.1.1 · Refinamiento visual del panel de automatización
   ========================= */
#view-admin-automatizacion .automation-status-stack-v41 article {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 148px;
    overflow: hidden;
}

#view-admin-automatizacion .automation-status-stack-v41 span {
    margin-bottom: 10px;
    line-height: 1.2;
}

#view-admin-automatizacion .automation-status-value-v411 {
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

#view-admin-automatizacion .automation-date-value-v411 {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    font-size: clamp(22px, 1.7vw, 28px) !important;
}

#view-admin-automatizacion .automation-date-value-v411 em {
    display: block;
    font-style: normal;
    white-space: nowrap;
}

#view-admin-automatizacion .automation-next-value-v411 {
    font-size: clamp(20px, 1.6vw, 26px) !important;
    line-height: 1.12 !important;
}

#view-admin-automatizacion .automation-status-stack-v41 small {
    margin-top: auto;
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#view-admin-automatizacion .automation-jobs-v41 {
    gap: 12px;
}

#view-admin-automatizacion .automation-job-row-v411 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(130px, .8fr);
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
}

#view-admin-automatizacion .automation-job-main-v411,
#view-admin-automatizacion .automation-job-run-v411 {
    min-width: 0;
}

#view-admin-automatizacion .automation-job-main-v411 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

#view-admin-automatizacion .automation-job-main-v411 > strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: .01em;
}

#view-admin-automatizacion .automation-job-badge-v411 {
    display: inline-flex !important;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(148, 163, 184, .08);
    color: #aab6c9 !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: normal;
}

#view-admin-automatizacion .automation-job-badge-v411.is-active {
    color: var(--squid-green) !important;
    border-color: rgba(60, 255, 174, .42);
    background: rgba(60, 255, 174, .10);
}

#view-admin-automatizacion .automation-job-badge-v411.is-locked {
    color: #ffcc66 !important;
    border-color: rgba(255, 193, 7, .38);
    background: rgba(255, 193, 7, .09);
}

#view-admin-automatizacion .automation-job-run-v411 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

#view-admin-automatizacion .automation-job-run-v411 small {
    color: #74839b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#view-admin-automatizacion .automation-job-run-v411 span {
    color: #d9e1ef;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 1320px) {
    #view-admin-automatizacion .automation-status-value-v411 {
        font-size: 24px !important;
    }
    #view-admin-automatizacion .automation-date-value-v411 {
        font-size: 21px !important;
    }
    #view-admin-automatizacion .automation-next-value-v411 {
        font-size: 21px !important;
    }
}

@media (max-width: 1120px) {
    #view-admin-automatizacion .automation-status-stack-v41 article {
        min-height: 0;
    }
    #view-admin-automatizacion .automation-status-stack-v41 small {
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    #view-admin-automatizacion .automation-job-row-v411 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    #view-admin-automatizacion .automation-job-run-v411 {
        align-items: flex-start;
        text-align: left;
    }
    #view-admin-automatizacion .automation-date-value-v411 em {
        white-space: normal;
    }
}

/* ================================================================
   V4.2 · Motor de resultados y resolución asistida
   ================================================================ */
#view-admin-resolucion {
  --resolution-card-bg-v42: rgba(5, 14, 21, .78);
  --resolution-border-v42: rgba(148, 163, 184, .16);
}

.resolution-hero-v42,
.resolution-results-panel-v42,
.resolution-preview-panel-v42 {
  overflow: hidden;
}

.resolution-hero-head-v42,
.resolution-section-head-v42 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.resolution-hero-head-v42 .panel-subtitle,
.resolution-section-head-v42 .panel-subtitle {
  max-width: 820px;
  margin-top: 6px;
}

.resolution-ready-badge-v42,
.resolution-save-state-v42,
.resolution-preview-time-v42 {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  color: #a9b7c9;
  background: rgba(15, 23, 42, .66);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
}

.resolution-ready-badge-v42.is-ready {
  color: #8dffd0;
  border-color: rgba(26, 255, 156, .42);
  background: rgba(26, 255, 156, .08);
}

.resolution-ready-badge-v42.is-pending {
  color: #ffd18b;
  border-color: rgba(255, 190, 92, .34);
  background: rgba(255, 190, 92, .07);
}

.resolution-kpis-v42 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.resolution-kpis-v42 article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--resolution-border-v42);
  border-radius: 16px;
  background: rgba(2, 8, 13, .48);
}

.resolution-kpis-v42 span {
  display: block;
  margin-bottom: 7px;
  color: #7f91a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.resolution-kpis-v42 strong {
  display: block;
  min-width: 0;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.resolution-results-panel-v42 .resolution-list {
  margin-top: 18px;
}

#view-admin-resolucion .resolution-card {
  position: relative;
  transition: border-color var(--v2-transition), box-shadow var(--v2-transition), opacity var(--v2-transition);
}

#view-admin-resolucion .resolution-card.is-pending {
  border-color: rgba(255, 190, 92, .22) !important;
}

#view-admin-resolucion .resolution-card.has-result {
  border-color: rgba(26, 255, 156, .24) !important;
  box-shadow: inset 3px 0 0 rgba(26, 255, 156, .42);
}

#view-admin-resolucion .resolution-options input:not(:checked) + span {
  color: #b7c3d3;
}

#view-admin-resolucion .resolution-options input:checked + span {
  color: #031016;
}

.resolution-actions-v42,
.resolution-final-actions-v42 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.resolution-blockers-v42 {
  margin-top: 18px;
}

.resolution-blocker-card-v42 {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 190, 92, .28);
  border-radius: 14px;
  background: rgba(255, 190, 92, .06);
}

.resolution-blocker-card-v42 strong {
  color: #ffd18b;
  font-size: 13px;
}

.resolution-blocker-card-v42 span {
  color: #c4ceda;
  font-size: 12px;
  line-height: 1.45;
}

.resolution-blocker-card-v42.is-ready {
  border-color: rgba(26, 255, 156, .28);
  background: rgba(26, 255, 156, .06);
}

.resolution-blocker-card-v42.is-ready strong {
  color: #8dffd0;
}

.resolution-preview-table-v42 {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.resolution-preview-head-v42,
.resolution-player-row-v42 {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 14px;
  align-items: center;
}

.resolution-preview-head-v42 {
  padding: 0 14px 5px;
  color: #6f8299;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.resolution-player-row-v42 {
  padding: 12px 14px;
  border: 1px solid var(--resolution-border-v42);
  border-radius: 14px;
  background: var(--resolution-card-bg-v42);
}

.resolution-player-row-v42 > strong {
  min-width: 0;
  color: #f7fbff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.resolution-player-row-v42 > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.resolution-player-row-v42 span {
  min-width: 0;
  color: #d9e3ef;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resolution-player-row-v42 small {
  color: #74869d;
  font-size: 10px;
  line-height: 1.35;
}

.resolution-player-state-v42 {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px !important;
  letter-spacing: .05em;
}

.resolution-player-row-v42.is-alive .resolution-player-state-v42 {
  color: #8dffd0;
  background: rgba(26, 255, 156, .10);
}

.resolution-player-row-v42.is-eliminated .resolution-player-state-v42 {
  color: #ff8db7;
  background: rgba(255, 19, 97, .10);
}

.resolution-player-row-v42.is-pending .resolution-player-state-v42 {
  color: #ffd18b;
  background: rgba(255, 190, 92, .10);
}

.resolution-final-actions-v42 {
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.resolution-final-note-v42 {
  display: grid;
  gap: 4px;
  max-width: 720px;
}

.resolution-final-note-v42 strong {
  color: #dce7f4;
  font-size: 12px;
}

.resolution-final-note-v42 span {
  color: #788ba1;
  font-size: 11px;
  line-height: 1.4;
}

#resolution-execute-btn-v42:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.45);
}

@media (max-width: 1080px) {
  .resolution-kpis-v42 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .resolution-hero-head-v42,
  .resolution-section-head-v42,
  .resolution-final-actions-v42 {
    align-items: stretch;
    flex-direction: column;
  }

  .resolution-ready-badge-v42,
  .resolution-save-state-v42,
  .resolution-preview-time-v42 {
    width: fit-content;
    max-width: 100%;
  }

  .resolution-kpis-v42 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resolution-preview-head-v42 {
    display: none;
  }

  .resolution-player-row-v42 {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .resolution-actions-v42 {
    align-items: stretch;
    flex-direction: column;
  }

  .resolution-actions-v42 .btn-action,
  .resolution-final-actions-v42 .btn-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .resolution-kpis-v42 {
    grid-template-columns: 1fr 1fr;
  }

  .resolution-kpis-v42 article:first-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   V4.2.1 — Importación asistida y conciliación de resultados
   ========================================================= */
.resolution-import-panel-v421 {
  overflow: hidden;
}

.results-import-layout-v421 {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .7fr);
  gap: 16px;
  margin-top: 18px;
}

.results-import-input-v421,
.results-import-help-v421 {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 16px;
  background: rgba(2, 8, 13, .42);
}

.results-import-input-v421 {
  padding: 14px;
}

.results-import-toolbar-v421 {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.results-import-provider-v421,
.results-import-file-v421 {
  display: grid;
  gap: 6px;
}

.results-import-provider-v421 > span,
.results-import-file-v421 > span {
  color: #7f91a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.results-import-file-v421 input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  color: #b9c7d8;
  background: rgba(15, 23, 42, .58);
  font-size: 11px;
}

.results-import-textarea-v421 {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  color: #dbe8f5;
  background: rgba(0, 0, 0, .3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.results-import-textarea-v421:focus {
  outline: none;
  border-color: rgba(26, 255, 156, .46);
  box-shadow: 0 0 0 3px rgba(26, 255, 156, .06);
}

.results-import-actions-v421 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.results-import-help-v421 {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
}

.results-import-help-v421 strong {
  color: #e7f1fb;
  font-size: 13px;
}

.results-import-help-v421 span {
  position: relative;
  padding-left: 16px;
  color: #8598af;
  font-size: 11px;
  line-height: 1.45;
}

.results-import-help-v421 span::before {
  content: '';
  position: absolute;
  left: 1px;
  top: .52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 255, 156, .72);
  box-shadow: 0 0 8px rgba(26, 255, 156, .24);
}

.results-import-review-v421 {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.results-import-review-v421.is-empty {
  padding-top: 16px;
}

.results-import-summary-v421 {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(90px, .65fr));
  gap: 9px;
}

.results-import-summary-v421 article {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 13px;
  background: rgba(2, 8, 13, .5);
}

.results-import-summary-v421 span {
  display: block;
  margin-bottom: 5px;
  color: #6f8299;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.results-import-summary-v421 strong {
  display: block;
  min-width: 0;
  color: #edf6ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.results-import-review-head-v421,
.results-import-apply-v421 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.results-import-review-head-v421 {
  margin: 16px 0 10px;
}

.results-import-review-head-v421 > div:first-child,
.results-import-apply-v421 > div:first-child {
  display: grid;
  gap: 4px;
}

.results-import-review-head-v421 strong,
.results-import-apply-v421 strong {
  color: #dce7f4;
  font-size: 12px;
}

.results-import-review-head-v421 span,
.results-import-apply-v421 span {
  color: #788ba1;
  font-size: 10px;
  line-height: 1.4;
}

.results-import-select-actions-v421 {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.results-import-table-v421 {
  display: grid;
  gap: 7px;
}

.results-import-row-v421 {
  display: grid;
  grid-template-columns: 34px minmax(240px, 1fr) 128px 56px 92px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 13px;
  background: rgba(5, 14, 21, .72);
}

.results-import-row-v421.is-conflict,
.results-import-row-v421.is-ambiguous {
  border-color: rgba(255, 190, 92, .28);
  background: rgba(255, 190, 92, .035);
}

.results-import-row-v421.is-unmatched {
  border-color: rgba(255, 19, 97, .2);
}

.results-import-accept-v421 {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.results-import-accept-v421 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.results-import-accept-v421 span {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 5px;
  background: rgba(15, 23, 42, .7);
  transition: border-color var(--v2-transition), background var(--v2-transition), box-shadow var(--v2-transition);
}

.results-import-accept-v421 input:checked + span {
  border-color: rgba(26, 255, 156, .8);
  background: rgba(26, 255, 156, .82);
  box-shadow: 0 0 12px rgba(26, 255, 156, .2);
}

.results-import-accept-v421 input:checked + span::after {
  content: '✓';
  display: grid;
  place-items: center;
  color: #02100b;
  font-size: 12px;
  font-weight: 900;
  line-height: 15px;
}

.results-import-accept-v421 input:disabled + span {
  opacity: .32;
  cursor: not-allowed;
}

.results-import-match-v421 {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.results-import-match-v421 strong {
  color: #e8f2fc;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.results-import-match-v421 small {
  color: #7f91a8;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.results-import-issues-v421 {
  display: grid;
  gap: 2px;
}

.results-import-issues-v421 span {
  color: #d2a85f;
  font-size: 9px;
  line-height: 1.35;
}

.results-import-status-v421 {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  color: #b7c5d6;
  background: rgba(148, 163, 184, .09);
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
}

.results-import-status-v421.is-matched {
  color: #8dffd0;
  background: rgba(26, 255, 156, .09);
}

.results-import-status-v421.is-pending,
.results-import-status-v421.is-conflict,
.results-import-status-v421.is-ambiguous {
  color: #ffd18b;
  background: rgba(255, 190, 92, .09);
}

.results-import-status-v421.is-unmatched {
  color: #ff9cbe;
  background: rgba(255, 19, 97, .09);
}

.results-import-confidence-v421 {
  color: #8498af;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  text-align: center;
}

.results-import-result-v421 {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 5px 8px;
  border-radius: 9px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
}

.results-import-unmatched-v421 {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  background: rgba(15, 23, 42, .32);
}

.results-import-unmatched-v421 summary {
  color: #9baabc;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.results-import-unmatched-v421 div {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.results-import-unmatched-v421 span {
  color: #77899f;
  font-size: 10px;
}

.results-import-apply-v421 {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

#results-import-apply-btn-v421:disabled,
#results-import-api-btn-v421:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.45);
}

@media (max-width: 1080px) {
  .results-import-layout-v421 {
    grid-template-columns: 1fr;
  }

  .results-import-help-v421 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-import-help-v421 strong {
    grid-column: 1 / -1;
  }

  .results-import-summary-v421 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-import-summary-v421 article:first-child {
    grid-column: span 2;
  }

  .results-import-row-v421 {
    grid-template-columns: 34px minmax(210px, 1fr) 118px 84px;
  }

  .results-import-confidence-v421 {
    display: none;
  }
}

@media (max-width: 760px) {
  .results-import-toolbar-v421,
  .results-import-summary-v421 {
    grid-template-columns: 1fr 1fr;
  }

  .results-import-summary-v421 article:first-child {
    grid-column: 1 / -1;
  }

  .results-import-actions-v421,
  .results-import-review-head-v421,
  .results-import-apply-v421 {
    align-items: stretch;
    flex-direction: column;
  }

  .results-import-actions-v421 .btn-action,
  .results-import-apply-v421 .btn-action {
    width: 100%;
  }

  .results-import-select-actions-v421 {
    width: 100%;
    flex-wrap: wrap;
  }

  .results-import-row-v421 {
    grid-template-columns: 30px minmax(0, 1fr) 82px;
    grid-template-areas:
      'check match match'
      'check status result';
    gap: 8px;
  }

  .results-import-accept-v421 { grid-area: check; align-self: start; }
  .results-import-match-v421 { grid-area: match; }
  .results-import-status-v421 { grid-area: status; }
  .results-import-result-v421 { grid-area: result; }
}

@media (max-width: 480px) {
  .results-import-toolbar-v421,
  .results-import-help-v421,
  .results-import-summary-v421 {
    grid-template-columns: 1fr;
  }

  .results-import-summary-v421 article:first-child,
  .results-import-help-v421 strong {
    grid-column: auto;
  }

  .results-import-textarea-v421 {
    min-height: 150px;
  }
}

/* =========================================================
   V4.2.2 — perfiles de proveedor, discrepancias e histórico
   ========================================================= */
.results-import-summary-v421 {
  grid-template-columns: 1.4fr repeat(5, minmax(86px, .62fr));
}

.results-import-row-v421.is-discrepancy {
  border-color: rgba(255, 130, 70, .34);
  background: rgba(255, 130, 70, .045);
}

.results-import-row-v421.is-unchanged {
  border-color: rgba(71, 187, 255, .2);
  background: rgba(71, 187, 255, .025);
}

.results-import-status-v421.is-discrepancy {
  color: #ffbe96;
  background: rgba(255, 130, 70, .12);
}

.results-import-status-v421.is-unchanged {
  color: #9edcff;
  background: rgba(71, 187, 255, .1);
}

.results-import-history-v422 {
  margin-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding-top: 14px;
}

.results-import-history-v422 > summary {
  width: fit-content;
  color: #9aadc2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}

.results-import-history-list-v422 {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.results-import-history-list-v422 article {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 11px;
  background: rgba(2, 8, 13, .42);
}

.results-import-history-list-v422 article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.results-import-history-list-v422 article > div:last-child {
  text-align: right;
}

.results-import-history-list-v422 strong {
  color: #dce8f5;
  font-size: 11px;
}

.results-import-history-list-v422 span,
.results-import-history-list-v422 small,
.results-import-history-empty-v422 {
  color: #74889f;
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .results-import-summary-v421 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-import-summary-v421 article:first-child {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .results-import-summary-v421 {
    grid-template-columns: 1fr 1fr;
  }

  .results-import-summary-v421 article:first-child {
    grid-column: 1 / -1;
  }

  .results-import-history-list-v422 article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .results-import-history-list-v422 article > div:last-child {
    text-align: left;
  }
}

/* =========================================================
   V4.2.3 — diagnóstico real de proveedor y cuota API
   ========================================================= */
.results-provider-diagnostics-v423 {
  margin: 16px 0 18px;
  padding: 16px;
  border: 1px solid rgba(69, 243, 255, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 18, 27, .78), rgba(2, 8, 13, .68));
}

.results-provider-diagnostics-v423.is-empty,
.results-provider-diagnostics-v423.is-loading {
  border-style: dashed;
}

.results-provider-diagnostics-v423.is-ready {
  border-color: rgba(72, 211, 147, .28);
}

.results-provider-diagnostics-v423.is-warning {
  border-color: rgba(255, 190, 92, .3);
}

.results-provider-diagnostics-v423.is-error {
  border-color: rgba(255, 76, 112, .34);
}

.results-provider-diagnostics-placeholder-v423 {
  display: grid;
  gap: 6px;
}

.results-provider-diagnostics-placeholder-v423 strong,
.results-provider-diagnostics-head-v423 strong {
  color: #e6f4ff;
  font-size: 12px;
}

.results-provider-diagnostics-placeholder-v423 span,
.results-provider-diagnostics-head-v423 span {
  color: #7f94aa;
  font-size: 10px;
  line-height: 1.5;
}

.results-provider-diagnostics-head-v423 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.results-provider-diagnostics-head-v423 > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.results-provider-diagnostics-state-v423 {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .045em;
  color: #9edcff;
  background: rgba(71, 187, 255, .1);
}

.results-provider-diagnostics-state-v423.is-ready {
  color: #8de3b8;
  background: rgba(72, 211, 147, .1);
}

.results-provider-diagnostics-state-v423.is-warning {
  color: #ffd08a;
  background: rgba(255, 190, 92, .11);
}

.results-provider-diagnostics-state-v423.is-error {
  color: #ff9db2;
  background: rgba(255, 76, 112, .12);
}

.results-provider-diagnostics-metrics-v423 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.results-provider-diagnostics-metrics-v423 article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 10px;
  background: rgba(2, 8, 13, .42);
  display: grid;
  gap: 4px;
}

.results-provider-diagnostics-metrics-v423 span {
  color: #6f8398;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.results-provider-diagnostics-metrics-v423 strong {
  color: #dce8f5;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.results-provider-diagnostics-body-v423 {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr);
  gap: 10px;
}

.results-provider-diagnostics-checks-v423,
.results-provider-diagnostics-enums-v423 {
  display: grid;
  gap: 7px;
}

.results-provider-diagnostics-checks-v423 article,
.results-provider-diagnostics-enums-v423 > div {
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .1);
  border-radius: 9px;
  background: rgba(2, 8, 13, .34);
  display: grid;
  gap: 3px;
}

.results-provider-diagnostics-checks-v423 article.is-ok {
  border-left: 3px solid rgba(72, 211, 147, .55);
}

.results-provider-diagnostics-checks-v423 article.is-warning {
  border-left: 3px solid rgba(255, 190, 92, .62);
}

.results-provider-diagnostics-checks-v423 article.is-error {
  border-left: 3px solid rgba(255, 76, 112, .66);
}

.results-provider-diagnostics-checks-v423 span,
.results-provider-diagnostics-enums-v423 strong {
  color: #b8c8d8;
  font-size: 9px;
  font-weight: 800;
}

.results-provider-diagnostics-checks-v423 strong,
.results-provider-diagnostics-enums-v423 span {
  color: #74889f;
  font-size: 9px;
  line-height: 1.45;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.results-provider-diagnostics-warnings-v423 {
  display: grid;
  gap: 5px;
  margin-top: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(255, 190, 92, .055);
}

.results-provider-diagnostics-warnings-v423 strong {
  color: #ffd08a;
  font-size: 9px;
  text-transform: uppercase;
}

.results-provider-diagnostics-warnings-v423 span {
  color: #9d8c72;
  font-size: 9px;
  line-height: 1.45;
}

.results-import-help-v421 small {
  display: block;
  margin-top: 4px;
  color: #61778e;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .results-provider-diagnostics-metrics-v423 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .results-provider-diagnostics-head-v423 {
    flex-direction: column;
  }

  .results-provider-diagnostics-metrics-v423 {
    grid-template-columns: 1fr 1fr;
  }

  .results-provider-diagnostics-body-v423 {
    grid-template-columns: 1fr;
  }
}

/* V4.2.5 · Planificador configurable de rondas */
.round-planner-panel-v425 {
  position: relative;
  overflow: hidden;
}

.round-planner-head-v425 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.round-planner-head-v425 > div {
  min-width: 0;
}

.round-planner-badge-v425 {
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  white-space: nowrap;
}

.round-planner-badge-v425.is-idle,
.round-planner-badge-v425.is-loading {
  color: #cbd5e1;
  background: rgba(148, 163, 184, .08);
}

.round-planner-badge-v425.is-ready {
  color: var(--squid-green);
  border-color: color-mix(in srgb, var(--squid-green) 38%, transparent);
  background: color-mix(in srgb, var(--squid-green) 9%, transparent);
}

.round-planner-badge-v425.is-error {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .08);
}

.round-planner-summary-v425 {
  margin-bottom: 16px;
}

.round-planner-kpis-v425 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.round-planner-kpis-v425 article {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(15, 23, 42, .36);
  padding: 12px 14px;
  min-width: 0;
}

.round-planner-kpis-v425 span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}

.round-planner-kpis-v425 strong {
  display: block;
  color: #f8fafc;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-planner-toolbar-v425 {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(2, 6, 23, .22);
  margin-bottom: 16px;
}

.round-planner-toolbar-v425 label {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.round-planner-toolbar-v425 label span {
  color: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.round-planner-toolbar-v425 input {
  min-height: 38px;
}

.round-planner-blocks-v425 {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.round-planner-block-v425 {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(80px, .45fr) minmax(125px, .7fr) minmax(165px, .9fr);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(15, 23, 42, .26);
}

.round-planner-block-v425 .block-identity-v425 {
  align-self: center;
  min-width: 0;
}

.round-planner-block-v425 .block-identity-v425 strong,
.round-planner-block-v425 .block-identity-v425 span {
  display: block;
}

.round-planner-block-v425 .block-identity-v425 strong {
  color: #f8fafc;
  font-size: 13px;
  margin-bottom: 3px;
}

.round-planner-block-v425 .block-identity-v425 span {
  color: #94a3b8;
  font-size: 11px;
}

.round-planner-block-v425 label {
  display: grid;
  gap: 4px;
}

.round-planner-block-v425 label > span {
  color: #94a3b8;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.round-planner-block-v425 input,
.round-planner-block-v425 select,
.round-planner-match-v425 select {
  min-height: 34px;
  width: 100%;
}

.round-planner-preview-v425 {
  display: grid;
  gap: 12px;
}

.round-planner-preview-head-v425 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.round-planner-preview-head-v425 strong {
  color: #f8fafc;
  font-size: 13px;
}

.round-planner-preview-head-v425 span {
  color: #94a3b8;
  font-size: 11px;
}

.round-planner-rounds-v425 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 10px;
}

.round-planner-round-v425 {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 11px;
  background: rgba(15, 23, 42, .3);
  overflow: hidden;
}

.round-planner-round-head-v425 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.round-planner-round-head-v425 strong {
  color: var(--squid-cyan);
  font-size: 12px;
}

.round-planner-round-head-v425 span {
  color: #94a3b8;
  font-size: 10px;
}

.round-planner-match-list-v425 {
  display: grid;
  gap: 0;
}

.round-planner-match-v425 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(98px, .52fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}

.round-planner-match-v425:last-child {
  border-bottom: 0;
}

.round-planner-match-v425 .match-name-v425 {
  min-width: 0;
}

.round-planner-match-v425 .match-name-v425 strong,
.round-planner-match-v425 .match-name-v425 span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-planner-match-v425 .match-name-v425 strong {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
}

.round-planner-match-v425 .match-name-v425 span {
  color: #64748b;
  font-size: 9px;
  margin-top: 2px;
}

.round-planner-note-v425 {
  border-left: 3px solid var(--squid-cyan);
  background: rgba(14, 165, 233, .07);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .round-planner-kpis-v425 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .round-planner-block-v425 {
    grid-template-columns: 1fr 1fr;
  }

  .round-planner-block-v425 .block-identity-v425 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .round-planner-head-v425,
  .round-planner-preview-head-v425 {
    align-items: stretch;
    flex-direction: column;
  }

  .round-planner-badge-v425 {
    align-self: flex-start;
  }

  .round-planner-kpis-v425,
  .round-planner-block-v425,
  .round-planner-match-v425 {
    grid-template-columns: 1fr;
  }

  .round-planner-toolbar-v425 {
    align-items: stretch;
    flex-direction: column;
  }

  .round-planner-toolbar-v425 label,
  .round-planner-toolbar-v425 button {
    width: 100%;
  }
}

/* === V4.2.6 · Histórico por jornada y fases futuras del planificador === */
.profile-team-chip-v31.is-history-alive {
    color: var(--squid-green);
    border-color: rgba(57, 255, 20, 0.28);
    background: rgba(57, 255, 20, 0.08);
}

.profile-team-chip-v31.is-history-dead {
    color: #ff8aaa;
    border-color: rgba(255, 0, 76, 0.30);
    background: rgba(255, 0, 76, 0.09);
}

.profile-team-chip-v31.is-history-unknown {
    color: var(--squid-cyan);
    border-color: rgba(8, 247, 254, 0.22);
    background: rgba(8, 247, 254, 0.06);
}

.profile-team-chip-v31.is-history-alive,
.profile-team-chip-v31.is-history-dead,
.profile-team-chip-v31.is-history-unknown {
    gap: 7px;
}

.profile-team-chip-v31.is-history-alive small,
.profile-team-chip-v31.is-history-dead small,
.profile-team-chip-v31.is-history-unknown small {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    color: currentColor;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.history-team-player-chip.is-result-alive {
    border-color: rgba(57, 255, 20, 0.28);
    background: rgba(57, 255, 20, 0.08);
    color: #eafff2;
}

.history-team-player-chip.is-result-dead {
    border-color: rgba(255, 0, 76, 0.30);
    background: rgba(255, 0, 76, 0.09);
    color: #ffdbe6;
}

.history-team-player-chip.is-result-alive small {
    background: var(--squid-green);
}

.history-team-player-chip.is-result-dead small {
    background: var(--squid-pink);
    color: #fff;
}

.round-plan-block-title-v426 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.round-plan-state-v426 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .20);
    background: rgba(148, 163, 184, .08);
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.round-plan-state-v426.is-ready,
.round-planner-block-v425.is-ready .round-plan-state-v426 {
    border-color: rgba(57, 255, 20, .28);
    background: rgba(57, 255, 20, .08);
    color: var(--squid-green);
}

.round-plan-state-v426.is-partial,
.round-planner-block-v425.is-partial .round-plan-state-v426 {
    border-color: rgba(255, 202, 40, .30);
    background: rgba(255, 202, 40, .08);
    color: #ffd96a;
}

.round-plan-state-v426.is-pending,
.round-planner-block-v425.is-pending .round-plan-state-v426 {
    border-color: rgba(8, 247, 254, .26);
    background: rgba(8, 247, 254, .07);
    color: var(--squid-cyan);
}

.round-planner-round-v425.is-pending-crosses-v426 {
    border-style: dashed;
    border-color: rgba(8, 247, 254, .26);
    background: linear-gradient(180deg, rgba(8, 247, 254, .035), rgba(3, 7, 18, .54));
}

.round-planner-match-v425.is-pending-cross-v426 {
    border-style: dashed;
    border-color: rgba(8, 247, 254, .20);
    background: rgba(8, 247, 254, .035);
}

.round-planner-pending-empty-v426 {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed rgba(8, 247, 254, .24);
    border-radius: 14px;
    background: rgba(8, 247, 254, .035);
    color: #dffcff;
}

.round-planner-pending-empty-v426 strong {
    color: var(--squid-cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.round-planner-pending-empty-v426 span {
    color: var(--v2-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .profile-team-chip-v31.is-history-alive,
    .profile-team-chip-v31.is-history-dead,
    .profile-team-chip-v31.is-history-unknown {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 14px;
    }
}

/* V4.2.7 · final especial y ventanas automáticas */
.round-planner-options-v428 {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    background: rgba(3, 7, 18, .32);
}

.round-planner-check-v428 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(8, 247, 254, .14);
    border-radius: 12px;
    background: rgba(8, 247, 254, .025);
    cursor: pointer;
}

.round-planner-check-v428 input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--squid-cyan);
}

.round-planner-check-v428 span {
    display: grid;
    gap: 3px;
}

.round-planner-check-v428 strong {
    color: #f8fafc;
    font-size: 12px;
}

.round-planner-check-v428 small {
    color: var(--v2-muted);
    font-size: 11px;
    line-height: 1.4;
}

.round-planner-window-fields-v428 {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 10px;
}

.round-planner-window-fields-v428 > label {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.round-planner-window-fields-v428 > label > span {
    color: #cbd5e1;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.round-planner-window-fields-v428 > label > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.round-planner-window-fields-v428 input {
    width: 82px;
}

.round-planner-window-fields-v428 small {
    color: var(--v2-muted);
    font-size: 10px;
}

.round-plan-window-v428 {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(57, 255, 20, .16);
    border-radius: 10px;
    background: rgba(57, 255, 20, .025);
    color: #cbd5e1;
    font-size: 10px;
    line-height: 1.4;
}

.round-plan-window-v428.is-invalid {
    border-color: rgba(255, 55, 95, .34);
    background: rgba(255, 55, 95, .06);
    color: #ffd5de;
}

.round-plan-window-v428 strong {
    color: var(--squid-green);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.round-plan-window-v428.is-invalid strong {
    color: var(--squid-pink);
}

.vote-special-final-v428 {
    display: grid;
    gap: 18px;
}

.vote-special-final-section-v428 {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.vote-special-final-section-v428.is-main {
    border-color: rgba(255, 55, 95, .28);
    background: linear-gradient(180deg, rgba(255, 55, 95, .05), rgba(255, 255, 255, .018));
}

.vote-special-final-section-v428.is-tiebreaker {
    border-color: rgba(8, 247, 254, .24);
    background: linear-gradient(180deg, rgba(8, 247, 254, .04), rgba(255, 255, 255, .018));
}

.vote-special-final-title-v428 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vote-special-final-title-v428 strong {
    color: #f8fafc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.vote-special-final-title-v428 span {
    color: var(--v2-muted);
    font-size: 10px;
}

.vote-special-final-note-v428 {
    padding: 10px 12px;
    border-left: 3px solid var(--squid-cyan);
    border-radius: 8px;
    background: rgba(8, 247, 254, .04);
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .round-planner-window-fields-v428 {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 520px) {
    .round-planner-window-fields-v428 {
        grid-template-columns: 1fr;
    }
}


/* =========================
   V4.2.9 · cierre visual, ciclos y operaciones de emergencia
   ========================= */
#view-admin-automatizacion .automation-grid-v41 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
}
#view-admin-automatizacion .automation-card-v41 { min-width: 0; }
@media (min-width: 1280px) {
    #view-admin-automatizacion .automation-grid-v41 { gap: 24px; }
    #view-admin-automatizacion .automation-card-v41 { padding: 28px; }
}

.censo-team-groups-panel-v429 { grid-column: span 12 !important; }
.censo-team-groups-head-v429 {
    display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px;
}
.censo-team-groups-badge-v429 {
    display:inline-flex; align-items:center; justify-content:center; min-width:92px; padding:9px 12px;
    border:1px solid rgba(8,247,254,.35); border-radius:999px; color:var(--squid-cyan);
    background:rgba(8,247,254,.08); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em;
}
.censo-team-groups-grid-v429 { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.censo-team-group-card-v429 {
    border:1px solid rgba(8,247,254,.22); background:linear-gradient(145deg,rgba(8,247,254,.07),rgba(9,14,30,.68));
    border-radius:16px; padding:15px; min-width:0;
}
.censo-team-group-head-v429 { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.censo-team-group-head-v429 strong { color:#fff; text-transform:uppercase; letter-spacing:.035em; overflow-wrap:anywhere; }
.censo-team-group-head-v429 span {
    display:inline-grid; place-items:center; min-width:32px; height:32px; padding:0 8px; border-radius:999px;
    background:var(--squid-cyan); color:#021019; font-weight:900;
}
.censo-team-group-meter-v429 { height:6px; border-radius:999px; overflow:hidden; background:rgba(148,163,184,.15); margin:12px 0 10px; }
.censo-team-group-meter-v429 i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--squid-cyan),var(--squid-green)); }
.censo-team-group-card-v429 small { color:var(--text-muted); line-height:1.45; }
.censo-team-groups-locked-v429,.censo-team-groups-empty-v429 {
    grid-column:1/-1; border:1px dashed rgba(8,247,254,.32); border-radius:16px; padding:24px; text-align:center; color:var(--text-muted);
}
.censo-team-groups-locked-v429 strong { display:block; color:var(--squid-cyan); margin-bottom:6px; }

.emergency-hero-v429 { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.emergency-risk-badge-v429 {
    display:inline-flex; padding:9px 12px; border:1px solid rgba(255,31,107,.48); border-radius:999px;
    background:rgba(255,31,107,.10); color:#ff6f9f; font-size:10px; font-weight:900; letter-spacing:.08em; white-space:nowrap;
}
.emergency-grid-v429 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.emergency-action-card-v429 { display:flex; flex-direction:column; gap:16px; min-width:0; }
.emergency-action-card-v429.is-cycle { border-color:rgba(255,193,7,.45); }
.emergency-action-card-v429.is-reset { border-color:rgba(255,31,107,.45); }
.emergency-action-icon-v429 {
    width:52px; height:52px; display:grid; place-items:center; border-radius:16px; font-size:28px; font-weight:900;
    background:rgba(255,193,7,.10); border:1px solid rgba(255,193,7,.34); color:#ffd45f;
}
.emergency-action-card-v429.is-reset .emergency-action-icon-v429 { background:rgba(255,31,107,.10); border-color:rgba(255,31,107,.34); color:#ff6f9f; }
.emergency-checklist-v429 { margin:0; padding-left:20px; color:var(--text-muted); line-height:1.65; }
.emergency-destructive-note-v429 { border:1px solid rgba(255,31,107,.3); background:rgba(255,31,107,.07); color:#ff9abc; border-radius:12px; padding:13px 14px; line-height:1.45; }
.emergency-action-card-v429 .btn-action { margin-top:auto; align-self:flex-start; }

.history-round-head.history-cycle-start-v429,
.history-result-cell.history-cycle-start-v429 { border-left:2px solid rgba(255,201,71,.95) !important; }
.history-round-head.history-cycle-start-v429 { position:relative; }
.history-cycle-badge-v429 {
    position:absolute; left:-15px; top:5px; z-index:3; min-width:28px; height:20px; display:grid; place-items:center;
    padding:0 5px; border-radius:999px; border:1px solid rgba(255,201,71,.9); background:#17150a; color:#ffd45f;
    font-size:9px; line-height:1; font-weight:900; letter-spacing:.04em; box-shadow:0 0 16px rgba(255,201,71,.22);
}

@media (max-width: 1120px) {
    .emergency-grid-v429 { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
    .censo-team-groups-head-v429,.emergency-hero-v429 { flex-direction:column; }
    .censo-team-groups-badge-v429,.emergency-risk-badge-v429 { width:100%; }
    .censo-team-groups-grid-v429 { grid-template-columns:1fr; }
    .history-mobile-round { position:relative; }
}

.survival-subject-card-v33.is-spectator {
    border-color: rgba(148, 163, 184, .36);
    background: linear-gradient(145deg, rgba(71, 85, 105, .18), rgba(9, 14, 30, .86));
    opacity: .88;
}
.survival-subject-card-v33.is-spectator .survival-card-killmark-v33.is-spectator {
    color: #cbd5e1;
    border-color: rgba(203, 213, 225, .35);
    background: rgba(148, 163, 184, .12);
}
.history-mobile-cycle-v429 {
    display:inline-flex; align-items:center; justify-content:center; width:max-content; min-width:34px; height:22px;
    margin:8px 0 2px; padding:0 8px; border-radius:999px; border:1px solid rgba(255,201,71,.82);
    background:rgba(255,201,71,.10); color:#ffd45f; font-size:10px; font-weight:900; letter-spacing:.05em;
}
#view-admin-automatizacion .automation-grid-v41 {
    grid-column: 1 / -1;
}
#view-admin-emergencia > .emergency-hero-v429,
#view-admin-emergencia > .emergency-grid-v429 {
    grid-column: 1 / -1;
}

/* V4.2.10 · Contingencia y ciclos -------------------------------------- */
.btn-action.cycle-v4210 {
  background: linear-gradient(135deg, #ffd166, #d8a400) !important;
  color: #171107 !important;
  border-color: rgba(255, 209, 102, .68) !important;
  box-shadow: 0 12px 26px rgba(216, 164, 0, .22) !important;
  font-weight: 800;
}

.btn-action.cycle-v4210:hover {
  box-shadow: 0 16px 32px rgba(216, 164, 0, .30) !important;
}

/* =====================================================================
   V4.3.0 · arquitectura de producto, Dashboard, Torneo y Datos
   ===================================================================== */

/* Navegación principal por áreas */
#nav-tabs > button:not(.hamburger-menu),
#nav-tabs > .dropdown-menu {
  flex: 1 1 0;
  min-width: 0;
}

#nav-tabs .nav-menu-trigger {
  width: 100% !important;
}

.nav-dropdown-section-label {
  padding: 12px 14px 7px;
  color: rgba(203, 213, 225, .62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-top: 1px solid rgba(148, 163, 184, .10);
}

.nav-dropdown-section-label:first-child {
  border-top: 0;
}

.management-dropdown-v430 {
  min-width: 270px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 851px) {
  #nav-tabs .dropdown-menu {
    position: relative;
    z-index: 920;
  }

  #nav-tabs .dropdown-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  #nav-tabs .dropdown-menu .dropdown-content {
    display: block !important;
    min-width: 230px;
    width: max-content !important;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-6px) scale(.985);
    transform-origin: top left;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  #nav-tabs .dropdown-menu.open:not(.dropdown-suppressed) .dropdown-content,
  #nav-tabs .dropdown-menu:hover:not(.dropdown-suppressed) .dropdown-content,
  #nav-tabs .dropdown-menu:focus-within:not(.dropdown-suppressed) .dropdown-content {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }

  #nav-tabs .dropdown-menu.dropdown-suppressed .dropdown-content,
  #nav-tabs .dropdown-menu.dropdown-suppressed:hover .dropdown-content,
  #nav-tabs .dropdown-menu:not(.open):not(:hover):not(:focus-within) .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #nav-tabs .dropdown-menu.open > .nav-menu-trigger,
  #nav-tabs .dropdown-menu:hover > .nav-menu-trigger,
  #nav-tabs .dropdown-menu:focus-within > .nav-menu-trigger,
  #nav-tabs .nav-menu-trigger.active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(255, 31, 107, .96), rgba(164, 40, 255, .84)) !important;
    box-shadow: 0 14px 34px rgba(255, 31, 107, .28), 0 0 0 1px rgba(255,255,255,.16) inset !important;
  }
}

/* Dashboard */
#view-dashboard > .dashboard-shell-v430,
#view-ronda > .round-overview-kpis-v430,
#view-calendario > .calendar-kpis-v430 {
  grid-column: 1 / -1;
}

.dashboard-shell-v430 {
  display: grid;
  gap: 20px;
}

.dashboard-hero-v430 {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 38px) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(8,247,254,.18), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(255,31,107,.18), transparent 34%),
    linear-gradient(135deg, rgba(18,25,45,.98), rgba(7,11,23,.96)) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.dashboard-hero-copy-v430 {
  max-width: 720px;
}

.dashboard-kicker-v430,
.dashboard-card-kicker-v430 {
  display: block;
  margin-bottom: 7px;
  color: var(--squid-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dashboard-hero-copy-v430 h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: .035em;
}

.dashboard-hero-copy-v430 p {
  max-width: 640px;
  color: #aebbd0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
}

.dashboard-live-badge-v430 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(8,247,254,.32);
  background: rgba(8,247,254,.08);
  color: #d7fbff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-live-badge-v430 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--squid-cyan);
  box-shadow: 0 0 0 4px rgba(8,247,254,.12), 0 0 16px rgba(8,247,254,.72);
}

.dashboard-live-badge-v430.is-open {
  border-color: rgba(1,255,194,.38);
  background: rgba(1,255,194,.09);
  color: #caffef;
}
.dashboard-live-badge-v430.is-open i { background: var(--squid-green); box-shadow: 0 0 0 4px rgba(1,255,194,.12), 0 0 16px rgba(1,255,194,.72); }
.dashboard-live-badge-v430.is-closed { border-color: rgba(148,163,184,.30); background: rgba(148,163,184,.08); color: #d7dee9; }
.dashboard-live-badge-v430.is-closed i { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,.10); }

.dashboard-kpis-v430,
.round-overview-kpis-v430,
.calendar-kpis-v430 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-kpis-v430 article,
.round-overview-kpis-v430 article,
.calendar-kpis-v430 article {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,13,26,.78);
  box-shadow: 0 16px 32px rgba(0,0,0,.16);
}

.dashboard-kpis-v430 span,
.round-overview-kpis-v430 span,
.calendar-kpis-v430 span {
  display: block;
  margin-bottom: 8px;
  color: #8190a7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dashboard-kpis-v430 strong,
.round-overview-kpis-v430 strong,
.calendar-kpis-v430 strong {
  display: block;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.1;
}

.dashboard-kpis-v430 small {
  display: block;
  margin-top: 7px;
  color: #8998ae;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-grid-v430 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-card-v430 {
  margin: 0 !important;
  min-width: 0;
  min-height: 250px;
}

.dashboard-card-vote-v430,
.dashboard-card-pulse-v430 { grid-column: span 6; }
.dashboard-card-round-v430 { grid-column: span 8; }
.dashboard-card-next-v430 { grid-column: span 4; }

.dashboard-card-head-v430 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-card-head-v430 .panel-title {
  margin-bottom: 0 !important;
}

.dashboard-card-state-v430,
.round-overview-badge-v430,
.calendar-current-badge-v430 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(8,247,254,.30);
  background: rgba(8,247,254,.08);
  color: var(--squid-cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.dashboard-vote-main-v430 {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,31,107,.07);
  border: 1px solid rgba(255,31,107,.18);
}

.dashboard-vote-main-v430 strong {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
}
.dashboard-vote-main-v430 span { color: #9ba9bd; line-height: 1.4; }

.dashboard-vote-reserve-v430,
.dashboard-availability-v430 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(148,163,184,.07);
  border: 1px solid rgba(148,163,184,.12);
}
.dashboard-vote-reserve-v430 span,
.dashboard-availability-v430 span { color: #8b99ad; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-vote-reserve-v430 strong,
.dashboard-availability-v430 strong { color: #fff; }

.dashboard-pulse-grid-v430 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.dashboard-pulse-grid-v430 div {
  min-width: 0;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(148,163,184,.11);
  text-align: center;
}
.dashboard-pulse-grid-v430 strong { display:block; color:#fff; font-family:'Orbitron',sans-serif; font-size:22px; }
.dashboard-pulse-grid-v430 span { display:block; margin-top:5px; color:#8190a7; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.dashboard-progress-v430 { height:7px; margin:20px 0 10px; overflow:hidden; border-radius:999px; background:rgba(148,163,184,.14); }
.dashboard-progress-v430 i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--squid-green),var(--squid-cyan)); transition:width .4s ease; }
.dashboard-card-pulse-v430 > small { color:#8f9db2; line-height:1.45; }

.dashboard-link-v430 {
  border: 0;
  background: transparent;
  color: var(--squid-cyan);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.dashboard-match-list-v430,
.round-overview-list-v430,
.calendar-match-list-v430 {
  display: grid;
  gap: 9px;
}

.dashboard-match-row-v430 {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.11);
  background: rgba(255,255,255,.025);
}
.dashboard-match-row-v430 span:first-child { text-align:right; }
.dashboard-match-row-v430 b { color: var(--squid-pink); font-size: 10px; }
.dashboard-match-row-v430 small { color:#718096; font-size:10px; }

.match-score-v431 {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:58px;
  padding:5px 8px;
  border-radius:9px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(148,163,184,.07);
  color:#fff;
  font-family:'Orbitron',sans-serif;
  font-size:13px;
  line-height:1;
}
.match-score-v431 i { color:#718096; font-style:normal; font-size:9px; }
.match-score-v431.is-en_juego {
  border-color:rgba(1,255,194,.34);
  background:rgba(1,255,194,.08);
  color:var(--squid-green);
}
.match-score-v431.is-finalizado {
  border-color:rgba(8,247,254,.24);
  background:rgba(8,247,254,.06);
  color:#e8fbff;
}
.match-versus-v431 {
  min-width:34px;
  color:var(--squid-pink);
  font-size:9px;
  letter-spacing:.04em;
  text-align:center;
}
.match-versus-v431.is-en_juego { color:var(--squid-green); }
.has-sports-state.is-en_juego {
  border-color:rgba(1,255,194,.22);
  background:rgba(1,255,194,.035);
}
.has-sports-state.is-aplazado,
.has-sports-state.is-suspendido,
.has-sports-state.is-cancelado { opacity:.78; }


.dashboard-next-action-v430 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 124px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,209,102,.22);
  background: rgba(255,209,102,.07);
}
.dashboard-next-icon-v430 {
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(255,209,102,.12);
  color:#ffd166;
  font-size:20px;
  font-weight:900;
}
.dashboard-next-action-v430 strong { display:block; color:#fff; margin-bottom:7px; }
.dashboard-next-action-v430 p { color:#93a2b7; line-height:1.45; font-size:12px; }
.dashboard-empty-v430 { padding:26px; border:1px dashed rgba(148,163,184,.24); border-radius:14px; color:#8998ae; text-align:center; }

/* Ronda actual */
.round-overview-hero-v430,
.calendar-hero-v430 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.round-overview-badge-v430.is-open { color:var(--squid-green); border-color:rgba(1,255,194,.34); background:rgba(1,255,194,.08); }
.round-overview-badge-v430.is-closed { color:#aeb8c8; border-color:rgba(148,163,184,.28); background:rgba(148,163,184,.07); }
.round-overview-panel-v430 { grid-column:1/-1 !important; }
.round-overview-head-v430 { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.round-match-card-v430 {
  display:grid;
  grid-template-columns:52px minmax(0,1fr) minmax(180px,.55fr);
  align-items:center;
  gap:16px;
  padding:16px;
  border-radius:15px;
  border:1px solid rgba(148,163,184,.13);
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.round-match-number-v430 { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:rgba(255,31,107,.10); color:var(--squid-pink); font-weight:900; }
.round-match-teams-v430 { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:12px; }
.round-match-teams-v430 strong:first-child { text-align:right; }
.round-match-teams-v430 span { color:#66758c; font-size:10px; text-transform:uppercase; }
.round-match-time-v430 { text-align:right; }
.round-match-time-v430 span,.round-match-time-v430 small { display:block; }
.round-match-time-v430 span { color:#d8e0eb; }
.round-match-time-v430 small { margin-top:5px; color:#75849a; font-size:10px; }

/* Calendario */
.calendar-panel-v430 { grid-column:1/-1 !important; }
.calendar-toolbar-v430 { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.calendar-filters-v430 { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.calendar-filters-v430 button {
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.03);
  color:#8998ae;
  cursor:pointer;
  font:inherit;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.calendar-filters-v430 button.active { color:#fff; border-color:rgba(255,31,107,.42); background:rgba(255,31,107,.13); }
.calendar-round-list-v430 { display:grid; gap:10px; }
.calendar-round-card-v430 { border:1px solid rgba(148,163,184,.14); border-radius:16px; background:rgba(255,255,255,.018); overflow:hidden; }
.calendar-round-card-v430.is-current { border-color:rgba(8,247,254,.38); box-shadow:0 0 0 1px rgba(8,247,254,.08) inset; }
.calendar-round-card-v430[hidden] { display:none !important; }
.calendar-round-card-v430 summary { list-style:none; display:grid; grid-template-columns:58px minmax(0,1fr) auto 24px; align-items:center; gap:14px; padding:15px 16px; cursor:pointer; }
.calendar-round-card-v430 summary::-webkit-details-marker { display:none; }
.calendar-round-number-v430 { display:grid; place-items:center; width:48px; height:40px; border-radius:12px; background:rgba(255,31,107,.09); color:var(--squid-pink); font-family:'Orbitron',sans-serif; font-size:14px; }
.calendar-round-card-v430.is-current .calendar-round-number-v430 { background:rgba(8,247,254,.10); color:var(--squid-cyan); }
.calendar-round-copy-v430 strong,.calendar-round-copy-v430 small { display:block; }
.calendar-round-copy-v430 strong { color:#fff; margin-bottom:4px; }
.calendar-round-copy-v430 small { color:#76859b; font-size:10px; }
.calendar-round-status-v430 { padding:7px 9px; border-radius:999px; background:rgba(148,163,184,.08); color:#8998ae; font-size:9px; font-weight:900; letter-spacing:.05em; }
.is-current .calendar-round-status-v430 { background:rgba(8,247,254,.09); color:var(--squid-cyan); }
.calendar-round-chevron-v430 { color:#718096; transition:transform .2s ease; }
.calendar-round-card-v430[open] .calendar-round-chevron-v430 { transform:rotate(180deg); }
.calendar-round-detail-v430 { padding:0 16px 16px; border-top:1px solid rgba(148,163,184,.09); }
.calendar-round-dates-v430 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px 0; }
.calendar-round-dates-v430 span { padding:10px 12px; border-radius:11px; background:rgba(148,163,184,.05); }
.calendar-round-dates-v430 small,.calendar-round-dates-v430 strong { display:block; }
.calendar-round-dates-v430 small { color:#6f7e93; font-size:9px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.calendar-round-dates-v430 strong { color:#cbd5e1; font-size:11px; }
.calendar-match-row-v430 { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(120px,.45fr); align-items:center; gap:10px; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,.025); }
.calendar-match-row-v430 span:first-child { text-align:right; }
.calendar-match-row-v430 b { color:var(--squid-pink); font-size:9px; }
.calendar-match-row-v430 small { color:#75849a; text-align:right; }
.calendar-match-row-v430 .match-score-v431,
.dashboard-match-row-v430 .match-score-v431 { color:#fff; font-size:13px; }
.calendar-match-row-v430 .match-score-v431.is-en_juego,
.dashboard-match-row-v430 .match-score-v431.is-en_juego { color:var(--squid-green); }
.calendar-match-row-v430 .match-versus-v431,
.dashboard-match-row-v430 .match-versus-v431 { font-size:9px; }
.calendar-no-crosses-v430 { padding:14px; border-radius:11px; border:1px dashed rgba(148,163,184,.18); color:#7d8ba0; text-align:center; }

@media (max-width: 1080px) {
  .dashboard-card-vote-v430,
  .dashboard-card-pulse-v430,
  .dashboard-card-round-v430,
  .dashboard-card-next-v430 { grid-column: span 12; }
  .dashboard-kpis-v430,
  .round-overview-kpis-v430,
  .calendar-kpis-v430 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 850px) {
  #nav-tabs.open .nav-dropdown-section-label { width:100%; padding:12px 10px 7px; }
  #nav-tabs.open .dropdown-menu:not(.open) .dropdown-content { display:none !important; }
  #nav-tabs.open .dropdown-menu.open .dropdown-content { display:block !important; }
  .management-dropdown-v430 { min-width:0; }
  .dashboard-hero-v430,
  .round-overview-hero-v430,
  .calendar-hero-v430,
  .round-overview-head-v430,
  .calendar-toolbar-v430 { flex-direction:column; }
  .dashboard-live-badge-v430,
  .round-overview-badge-v430,
  .calendar-current-badge-v430 { width:100%; }
  .dashboard-pulse-grid-v430 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .round-match-card-v430 { grid-template-columns:46px minmax(0,1fr); }
  .round-match-time-v430 { grid-column:2; text-align:left; }
  .calendar-filters-v430 { justify-content:flex-start; }
}

@media (max-width: 620px) {
  .dashboard-kpis-v430,
  .round-overview-kpis-v430,
  .calendar-kpis-v430 { grid-template-columns:1fr 1fr; gap:9px; }
  .dashboard-kpis-v430 article,
  .round-overview-kpis-v430 article,
  .calendar-kpis-v430 article { padding:14px; }
  .dashboard-kpis-v430 small { white-space:normal; }
  .dashboard-match-row-v430 { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .dashboard-match-row-v430 small { grid-column:1/-1; text-align:center; }
  .round-match-card-v430 { grid-template-columns:1fr; text-align:center; }
  .round-match-number-v430 { margin:0 auto; }
  .round-match-teams-v430 { grid-template-columns:1fr; }
  .round-match-teams-v430 strong:first-child { text-align:center; }
  .round-match-time-v430 { grid-column:auto; text-align:center; }
  .calendar-round-card-v430 summary { grid-template-columns:46px minmax(0,1fr) 20px; gap:9px; }
  .calendar-round-status-v430 { grid-column:2; width:max-content; }
  .calendar-round-chevron-v430 { grid-column:3; grid-row:1/3; }
  .calendar-round-number-v430 { width:42px; height:38px; }
  .calendar-round-dates-v430 { grid-template-columns:1fr; }
  .calendar-match-row-v430 { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .calendar-match-row-v430 small { grid-column:1/-1; text-align:center; }
}


/* V4.3.3 · Elasticidad visual, historial y disponibilidad por jugador */
.history-round-head.history-cycle-start-v429 {
  position: sticky !important;
  top: 0;
}

.history-team-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 12px 16px !important;
}

.history-team-card-head > strong {
  min-width: 0;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: auto;
}

.history-team-head-meta {
  min-width: 0;
  max-width: min(100%, 360px) !important;
}

.history-player-availability-card-v433 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0 !important;
  border-color: rgba(26,255,156,.2) !important;
}

.history-player-availability-head-v433 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.history-player-availability-head-v433 > div:first-child {
  min-width: 0;
  flex: 1 1 180px;
}

.history-player-availability-head-v433 > div:first-child > small {
  display: block;
  margin-bottom: 4px;
  color: var(--v2-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.history-player-availability-head-v433 > div:first-child > strong {
  display: block;
  color: #fff;
  font-family: 'Changa', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.12;
  overflow-wrap: break-word;
  word-break: normal;
}

.history-player-availability-kpis-v433 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-player-availability-kpis-v433 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(3,7,18,.5);
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.history-player-availability-kpis-v433 b {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

.history-player-availability-list-v433 {
  min-width: 0;
}

.history-team-player-chip.is-used {
  border-color: rgba(8,247,254,.26);
  background: rgba(8,247,254,.07);
  color: #e6fcff;
}

@media (max-width: 760px) {
  .history-team-card-head {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .history-team-head-meta {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .history-team-card-head > strong {
    width: 100%;
    font-size: clamp(19px, 6vw, 24px) !important;
  }

  .history-player-availability-kpis-v433 {
    justify-content: flex-start;
    width: 100%;
  }
}

.history-usage-field[hidden] {
  display: none !important;
}


/* =====================================================================
   V4.3.4 · navegación móvil, desplegables estratégicos y espectadores
   ===================================================================== */

/* Muro de supervivencia: espectadores como estado informativo separado */
.survival-wall-spectators-v434 {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 209, 102, .18);
}
.survival-wall-spectators-v434[hidden] { display: none !important; }
.survival-wall-spectators-head-v434 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.survival-wall-spectators-kicker-v434 {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 209, 102, .76);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.survival-wall-spectators-head-v434 h3 {
  margin: 0;
  color: #ffd166;
  font-family: 'Changa', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.survival-wall-spectators-count-v434 {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, .34);
  background: rgba(255, 209, 102, .08);
  color: #ffd166;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}
.survival-subject-card-v33.is-spectator {
  border-color: rgba(255, 209, 102, .42) !important;
  background: linear-gradient(135deg, rgba(255, 209, 102, .105), rgba(4, 13, 26, .82));
  box-shadow: 0 12px 28px rgba(255, 209, 102, .055);
}
.survival-subject-card-v33.is-spectator:hover,
.survival-subject-card-v33.is-spectator:focus-visible {
  border-color: rgba(255, 209, 102, .72) !important;
  box-shadow: 0 16px 34px rgba(255, 209, 102, .12);
}
.survival-subject-card-v33.is-spectator .survival-card-avatar-v33,
.survival-subject-card-v33.is-spectator .survival-card-avatar-v33.is-guard-avatar-v333 {
  border-color: rgba(255, 209, 102, .68) !important;
  background: linear-gradient(135deg, #ffd166, #f59e0b) !important;
  box-shadow: 0 0 24px rgba(255, 209, 102, .22) !important;
}
.survival-subject-card-v33.is-spectator .survival-card-killmark-v33.is-spectator {
  border-color: rgba(255, 209, 102, .58);
  background: rgba(255, 209, 102, .13);
  color: #ffe6a3;
}
.survival-subject-card-v33.is-spectator .survival-card-number-v33 { color: #ffd166; }
.survival-wall-spectator-grid-v434 .survival-card-vote-v33.is-pending {
  border-color: rgba(255, 209, 102, .24);
  background: rgba(255, 209, 102, .055);
}

/* Dashboard: votantes por partido, sin mezclar conteos con el marcador */
.dashboard-match-disclosure-v434 {
  border: 1px solid rgba(148,163,184,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.dashboard-match-disclosure-v434.has-sports-state.is-en_juego {
  border-color: rgba(1,255,194,.22);
  background: rgba(1,255,194,.035);
}
.dashboard-match-disclosure-v434 > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.dashboard-match-disclosure-v434 > summary::-webkit-details-marker { display: none; }
.dashboard-match-disclosure-v434 > summary:focus-visible {
  box-shadow: 0 0 0 2px rgba(8,247,254,.34) inset;
}
.dashboard-match-disclosure-v434 .dashboard-match-row-v430 {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dashboard-match-impact-v434 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding: 0 12px 9px;
  color: #8190a7;
  font-size: 9px;
  letter-spacing: .02em;
}
.dashboard-match-impact-v434 span { min-width: 0; }
.dashboard-match-impact-v434 b {
  color: var(--squid-cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
}
.dashboard-match-impact-v434 i {
  margin-left: auto;
  color: #718096;
  font-style: normal;
  transition: transform .2s ease;
}
.dashboard-match-disclosure-v434[open] .dashboard-match-impact-v434 i { transform: rotate(180deg); }
.dashboard-match-impact-protected-v434 { color: #718096; }
.dashboard-match-voters-v434 {
  padding: 12px;
  border-top: 1px solid rgba(148,163,184,.1);
  background: rgba(2,6,23,.28);
}
.dashboard-match-voters-grid-v434 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.dashboard-match-voters-grid-v434 section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(8,247,254,.12);
  border-radius: 12px;
  background: rgba(8,247,254,.035);
}
.dashboard-match-voters-grid-v434 section > small {
  display: block;
  margin-bottom: 9px;
  color: #91a1b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.dashboard-match-voters-grid-v434 section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dashboard-voter-chip-v434,
.dashboard-voter-empty-v434 {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(1,255,194,.22);
  background: rgba(1,255,194,.06);
  color: #dffef5;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.dashboard-voter-empty-v434 {
  border-color: rgba(148,163,184,.14);
  background: rgba(148,163,184,.045);
  color: #718096;
}
.dashboard-match-voters-locked-v434 {
  padding: 8px;
  color: #7c8ba0;
  font-size: 10px;
  text-align: center;
}

/* Evolución: cabecera visible y detalle colapsado por defecto */
.timeline-card-collapsible-v434 { padding: 0; }
.timeline-card-collapsible-v434 > summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 16px;
  min-height: 76px;
  outline: none;
}
.timeline-card-collapsible-v434 > summary::-webkit-details-marker { display: none; }
.timeline-card-collapsible-v434 > summary:focus-visible { box-shadow: 0 0 0 2px rgba(8,247,254,.28) inset; }
.timeline-card-collapsible-v434 .timeline-kpis-v31 { align-items: center; }
.timeline-card-collapsible-v434 .timeline-kpis-v31 i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #718096;
  font-style: normal;
  transition: transform .2s ease;
}
.timeline-card-collapsible-v434[open] .timeline-kpis-v31 i { transform: rotate(180deg); }
.timeline-card-detail-v434 {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 14px;
}

/* Mapa de uso: misma tarjeta visual, detalle plegable */
.history-team-collapsible-v434 { padding: 0 !important; overflow: hidden; }
.history-team-collapsible-v434 > summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 18px 20px;
  outline: none;
}
.history-team-collapsible-v434 > summary::-webkit-details-marker { display: none; }
.history-team-collapsible-v434 > summary:focus-visible { box-shadow: 0 0 0 2px rgba(8,247,254,.25) inset; }
.history-team-collapsible-body-v434 {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(148,163,184,.075);
  padding-top: 16px;
}
.history-team-chevron-v434 {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #718096;
  font-style: normal;
  transition: transform .2s ease;
}
.history-team-collapsible-v434[open] .history-team-chevron-v434 { transform: rotate(180deg); }
.history-team-collapsible-v434 .history-player-availability-head-v433 { padding: 18px 20px; }

/* Volver arriba */
.back-to-top-v434 {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 1320;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(8,247,254,.38);
  border-radius: 16px;
  background: rgba(5,11,24,.9);
  color: var(--squid-cyan);
  box-shadow: 0 14px 34px rgba(0,0,0,.34), 0 0 22px rgba(8,247,254,.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.back-to-top-v434 span { font-size: 22px; line-height: 1; }
.back-to-top-v434.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top-v434:hover,
.back-to-top-v434:focus-visible { border-color: rgba(8,247,254,.72); outline: none; }

@media (max-width: 850px) {
  #nav-tabs {
    z-index: 1250 !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    transition: box-shadow .2s ease, background .2s ease;
    backdrop-filter: blur(16px);
  }
  #nav-tabs.is-scrolled-v434 {
    box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(8,247,254,.09) inset !important;
  }
  .dashboard-match-voters-grid-v434 { grid-template-columns: 1fr; }
  .history-team-collapsible-v434 > summary,
  .history-team-collapsible-v434 .history-player-availability-head-v433 { padding: 15px 16px; }
  .history-team-collapsible-body-v434 { padding: 14px 16px 16px; }
}

@media (max-width: 620px) {
  .dashboard-match-impact-v434 {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    padding: 0 10px 10px;
    text-align: center;
    line-height: 1.35;
  }
  .dashboard-match-impact-v434 i { margin: 2px auto 0; }
  .dashboard-match-voters-v434 { padding: 10px; }
  .dashboard-match-voters-grid-v434 section { padding: 10px; }
  .survival-wall-spectators-head-v434 { align-items: flex-start; }
  .timeline-card-collapsible-v434 > summary { padding: 14px; }
  .timeline-card-detail-v434 { padding: 12px 14px 14px; }
  .back-to-top-v434 { width: 46px; height: 46px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-v434,
  .timeline-card-collapsible-v434 .timeline-kpis-v31 i,
  .history-team-chevron-v434,
  .dashboard-match-impact-v434 i { transition: none !important; }
  html:focus-within { scroll-behavior: auto; }
}

/* Ajustes de compactación de tarjetas plegadas V4.3.4 */
.history-team-collapsible-v434 {
  display: block !important;
  min-height: 0 !important;
  gap: 0 !important;
}
.history-team-collapsible-v434 > summary.history-team-card-head {
  margin-bottom: 0 !important;
}
.history-team-collapsible-v434 > summary.history-player-availability-head-v433 {
  margin: 0 !important;
}
.history-team-collapsible-v434:not([open]) .history-team-collapsible-body-v434 {
  display: none !important;
}

/* Alineación independiente: abrir una tarjeta no estira sus vecinas de fila */
.history-team-usage-list,
.history-timeline-list-v31 {
  align-items: start;
}
.history-team-collapsible-v434,
.timeline-card-collapsible-v434 {
  align-self: start;
}
.history-team-card-head .history-team-head-meta > .history-team-usage-percent-v434 {
  color: var(--squid-cyan) !important;
  border: 1px solid rgba(8,247,254,.22) !important;
  background: rgba(8,247,254,.065) !important;
}

/* =========================
   V4.3.5 · votación móvil y piloto visual de equipos
   ========================= */
.censo-team-group-card-v435 {
  overflow: hidden;
}
.censo-team-group-head-v435 {
  min-width: 0;
}
.censo-team-group-identity-v435 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.censo-team-group-identity-v435 strong {
  min-width: 0;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
  line-height: 1.2;
}
.censo-team-asset-v435 {
  width: 52px;
  height: 38px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
}
.censo-team-asset-v435 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.censo-team-asset-v435.is-crest img {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.censo-team-asset-v435.is-fallback {
  color: var(--squid-cyan);
  font-weight: 900;
  letter-spacing: .05em;
  font-size: 12px;
}

/* El selector de reserva comunica claramente las alternativas incompatibles. */
#selector-reserva option:disabled {
  color: #7c8799;
}

@media (max-width: 640px) {
  #lista-partidos-votar .vote-match-card {
    overflow: visible !important;
    contain: none !important;
  }
  #lista-partidos-votar .vote-match-body.vote-match-body--linear {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    overflow: visible !important;
  }
  #lista-partidos-votar .vote-match-body--linear .vote-vs-pill {
    width: max-content !important;
    min-width: 42px !important;
    justify-self: center !important;
    margin: 0 !important;
  }
  #lista-partidos-votar .vote-team-option.vote-team-option--linear {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
  #lista-partidos-votar .vote-team-copy,
  #lista-partidos-votar .vote-team-name {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: auto;
    white-space: normal !important;
  }
  #lista-partidos-votar .vote-team-name {
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1.15 !important;
  }
  #lista-partidos-votar .vote-selected-badge-v32,
  #lista-partidos-votar .vote-team-note {
    justify-self: end;
    max-width: 112px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.15;
  }
  .censo-team-groups-grid-v429 {
    grid-template-columns: 1fr;
  }
  .censo-team-group-head-v435 {
    align-items: center;
  }
  .censo-team-asset-v435 {
    width: 48px;
    height: 34px;
    flex-basis: 48px;
  }
}

/* =========================
   V4.3.6 · identidad visual de equipos refinada
   ========================= */
.censo-team-asset-v435 {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  padding: 7px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.07), transparent 55%),
    rgba(7, 12, 24, .88);
  box-shadow:
    0 8px 22px rgba(0,0,0,.24),
    inset 0 0 0 1px rgba(255,255,255,.025);
}
.censo-team-asset-v435 img,
.censo-team-asset-v435.is-crest img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 8px;
}
.censo-team-asset-v435.is-fallback {
  padding: 0;
}

/* Segunda prueba de integración: Mapa de uso de equipos */
.history-team-summary-with-identity-v436 {
  gap: 14px;
}
.history-team-title-identity-v436 {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
.history-team-title-identity-v436 > strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.18;
}
.history-team-title-identity-v436 .censo-team-asset-v435 {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .censo-team-asset-v435 {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
    padding: 6px;
  }
  .history-team-summary-with-identity-v436 {
    align-items: center;
  }
  .history-team-title-identity-v436 {
    gap: 10px;
  }
}

/* =========================
   V4.3.7 · identidad visual consistente y neutra
   ========================= */
/*
 * Las cabeceras antiguas aplicaban estilo de badge a cualquier <span>.
 * La identidad de equipo se blinda para conservar el mismo marco visual
 * tanto en Agrupación por equipos como en Mapa de uso.
 */
.censo-team-group-head-v435 .censo-team-group-identity-v435 > .censo-team-asset-v435,
.history-team-card-head .history-team-title-identity-v436 > .censo-team-asset-v435 {
  display: grid !important;
  place-items: center !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  padding: 7px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(4,8,18,.96)) !important;
  color: var(--squid-cyan) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.025) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.censo-team-group-head-v435 .censo-team-group-identity-v435 > .censo-team-asset-v435 img,
.history-team-card-head .history-team-title-identity-v436 > .censo-team-asset-v435 img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

/* El contenedor visual es neutro para activos y eliminados; el estado se
   comunica mediante la etiqueta y el borde de la tarjeta, no mediante el fondo. */
.history-team-card-head .history-team-title-identity-v436 > .censo-team-asset-v435.is-fallback,
.censo-team-group-head-v435 .censo-team-group-identity-v435 > .censo-team-asset-v435.is-fallback {
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(4,8,18,.96)) !important;
}

@media (max-width: 640px) {
  .censo-team-group-head-v435 .censo-team-group-identity-v435 > .censo-team-asset-v435,
  .history-team-card-head .history-team-title-identity-v436 > .censo-team-asset-v435 {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }
}

/* =========================
   V4.3.8 · cabeceras elásticas y banderas ligeras
   ========================= */

/* Mapa de uso: la cabecera se adapta al contenido real sin comprimir nombres. */
.history-team-card-head.history-team-summary-with-identity-v436 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px 14px !important;
}

.history-team-card-head.history-team-summary-with-identity-v436 .history-team-title-identity-v436 {
  flex: 1 1 210px !important;
  min-width: 0 !important;
}

.history-team-card-head.history-team-summary-with-identity-v436 .history-team-title-identity-v436 > strong {
  min-width: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.history-team-card-head.history-team-summary-with-identity-v436 .history-team-head-meta {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: auto;
  justify-content: flex-end;
}

/* Los contadores de uso/disponibilidad son datos contextuales, no estados. */
.history-team-card-head .history-team-head-meta > .history-team-context-count-v438 {
  color: #c6d0df !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  background: rgba(148,163,184,.07) !important;
  box-shadow: none !important;
}

/* Disponibles por jugador: misma política de elasticidad y saltos limpios. */
.history-player-availability-head-v433 {
  align-items: center !important;
  flex-wrap: wrap !important;
}

.history-player-availability-head-v433 > div:first-child {
  flex: 1 1 210px !important;
  min-width: 0 !important;
}

.history-player-availability-kpis-v433 {
  flex: 0 1 auto !important;
  max-width: 100%;
  margin-left: auto;
}

/* Dashboard: bandera ligera junto al nombre, sin marco visual adicional. */
.dashboard-team-inline-v438 {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-team-inline-v438.is-local {
  justify-content: flex-end;
  text-align: right;
}

.dashboard-team-inline-v438.is-visitante {
  justify-content: flex-start;
  text-align: left;
}

.dashboard-team-inline-v438 img {
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}

.dashboard-team-inline-v438 em {
  min-width: 0;
  font-style: normal;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 760px) {
  .history-team-card-head.history-team-summary-with-identity-v436 .history-team-head-meta {
    width: 100% !important;
    margin-left: 0;
    justify-content: flex-start !important;
  }

  .history-player-availability-kpis-v433 {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start !important;
  }
}

@media (max-width: 620px) {
  .dashboard-team-inline-v438 {
    gap: 5px;
  }

  .dashboard-team-inline-v438 img {
    width: 19px;
    height: 13px;
    flex-basis: 19px;
  }
}

/* =========================
   V4.3.9 · orden estratégico, banderas extendidas y final configurable
   ========================= */

/* Identidad ligera: Historia, Jornada en curso y Calendario. */
.team-flag-light-v439 {
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}

.team-compact-inline-v439 {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f8fafc !important;
  font-size: 12px !important;
  text-transform: none !important;
}

.team-compact-inline-v439.is-local {
  justify-content: flex-end;
  text-align: right;
}

.team-compact-inline-v439.is-visitante {
  justify-content: flex-start;
  text-align: left;
}

.team-compact-inline-v439 em {
  min-width: 0;
  color: inherit;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.history-result-team-v439 {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.history-result-team-v439 strong {
  min-width: 0;
}

.history-result-card .team-flag-light-v439.is-history {
  width: 21px;
  height: 14px;
  flex-basis: 21px;
}

.history-mobile-team-v439 {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.history-mobile-team-v439 .team-flag-light-v439.is-history-mobile {
  width: 20px;
  height: 14px;
  flex-basis: 20px;
}

/* Planificador: separar reglas deportivas de automatización temporal. */
.round-planner-option-group-v439 {
  display: grid;
  gap: 10px;
}

.round-planner-option-heading-v439 {
  display: grid;
  gap: 3px;
  padding: 0 2px 2px;
}

.round-planner-option-heading-v439 strong {
  color: #f8fafc;
  font-size: 12px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.round-planner-option-heading-v439 small {
  color: var(--v2-muted);
  font-size: 10px;
  line-height: 1.45;
}

.round-planner-options-divider-v439 {
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.24), transparent);
}

/* Ronda conjunta de final + 3.º/4.º: un pronóstico entre dos partidos. */
.vote-single-choice-final-v439 {
  display: grid;
  gap: 14px;
}

.vote-single-choice-note-v439 {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(8,247,254,.22);
  border-radius: 13px;
  background: rgba(8,247,254,.045);
}

.vote-single-choice-note-v439 strong {
  color: var(--squid-cyan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.vote-single-choice-note-v439 span {
  color: #aab6c7;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .team-flag-light-v439 {
    width: 19px;
    height: 13px;
    flex-basis: 19px;
  }

  .team-compact-inline-v439,
  .team-compact-inline-v439.is-local,
  .team-compact-inline-v439.is-visitante {
    justify-content: center;
    text-align: center;
  }

  .round-match-teams-v430 .team-compact-inline-v439 {
    width: 100%;
  }

  .calendar-match-row-v430 .team-compact-inline-v439.is-local {
    justify-content: flex-end;
    text-align: right;
  }

  .calendar-match-row-v430 .team-compact-inline-v439.is-visitante {
    justify-content: flex-start;
    text-align: left;
  }

  .history-mobile-round {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) !important;
  }

  .history-mobile-team-v439 {
    justify-content: flex-start;
    text-align: left !important;
  }
}


/* =========================
   V6.10 · dashboard elástico para jornadas amplias
   ========================= */
.dashboard-grid-v610 {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  gap: 20px;
  align-items: start;
}

.dashboard-column-v610 {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.dashboard-column-v610 .dashboard-card-v430 {
  width: 100%;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
}

.dashboard-column-right-v610 .dashboard-card-round-v430 {
  min-height: 0;
}

.dashboard-availability-v430[hidden] {
  display: none !important;
}

.dashboard-match-row-v610 {
  grid-template-columns: minmax(130px, 1fr) 78px minmax(130px, 1fr) 92px;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
}

.dashboard-match-row-v610 .dashboard-team-inline-v438 {
  width: 100%;
}

.dashboard-match-center-v610 {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-width: 70px;
}

.dashboard-match-center-v610 > small {
  color: #73839a;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.dashboard-match-status-v610 {
  min-width: 0;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
  text-align: right;
}

.dashboard-match-status-v610 strong {
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-match-disclosure-v434.is-en_juego .dashboard-match-status-v610 strong,
.dashboard-match-disclosure-v434.has-sports-state.is-en_juego .dashboard-match-status-v610 strong {
  color: var(--squid-green);
}

.dashboard-match-status-v610 small {
  color: #8291a6;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .dashboard-grid-v610 {
    display: flex;
    flex-direction: column;
  }

  .dashboard-column-v610 {
    display: contents;
  }

  .dashboard-card-pulse-v430 { order: 1; }
  .dashboard-card-round-v430 { order: 2; }
  .dashboard-card-vote-v430 { order: 3; }
  .dashboard-card-next-v430 { order: 4; }
}

@media (max-width: 760px) {
  .dashboard-match-row-v610 {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .dashboard-match-status-v610 {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .dashboard-match-row-v610 {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 6px;
  }

  .dashboard-match-row-v610 .dashboard-team-inline-v438 em {
    font-size: 11px;
  }

  .dashboard-match-center-v610 {
    min-width: 58px;
  }

  .dashboard-match-center-v610 .match-score-v431 {
    min-width: 54px;
    padding-inline: 6px;
    font-size: 12px;
  }
}

/* V6.11 · Plantilla reutilizable, competición/temporada y paquetes visuales */
.tournament-create-grid-v611 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.tournament-create-grid-v611 > label:last-child {
  grid-column: 1 / -1;
}

.tournament-config-panel-v611 {
  overflow: hidden;
}

.tournament-config-head-v611 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tournament-config-grid-v611 {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(220px, 1.2fr) minmax(200px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.tournament-config-grid-v611 label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tournament-config-grid-v611 label > span {
  color: var(--squid-pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tournament-config-grid-v611 input,
.tournament-config-grid-v611 select {
  width: 100%;
  min-width: 0;
}

.tournament-config-action-v611 {
  display: flex;
  align-items: flex-end;
}

.tournament-config-action-v611 .btn-action {
  white-space: nowrap;
}

.round-planner-badge-v425.is-locked {
  border-color: rgba(255, 193, 7, .38);
  background: rgba(255, 193, 7, .09);
  color: #ffd66b;
}

@media (max-width: 980px) {
  .tournament-config-grid-v611 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-config-action-v611 {
    grid-column: 1 / -1;
  }

  .tournament-config-action-v611 .btn-action {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tournament-create-grid-v611,
  .tournament-config-grid-v611 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tournament-create-grid-v611 > label:last-child,
  .tournament-config-action-v611 {
    grid-column: auto;
  }

  .tournament-config-head-v611 {
    align-items: stretch;
    flex-direction: column;
  }

  .tournament-config-head-v611 .round-planner-badge-v425 {
    align-self: flex-start;
  }
}

/* =====================================================================
   V6.12 · Capas flotantes coordinadas y seguridad de cuenta
   ===================================================================== */
:root {
  --z-shell-header-v612: 900;
  --z-shell-nav-v612: 850;
  --z-floating-backdrop-v612: 1260;
  --z-floating-active-v612: 1320;
  --z-modal-v612: 5000;
}

.floating-menu-backdrop-v612 {
  position: fixed;
  inset: 0;
  z-index: var(--z-floating-backdrop-v612);
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(1, 5, 14, .56);
  backdrop-filter: blur(3px);
  cursor: default;
}

.floating-menu-backdrop-v612[hidden] {
  display: none !important;
}

body.user-menu-open-v612 header {
  z-index: var(--z-floating-active-v612) !important;
}

body.user-menu-open-v612 #nav-tabs {
  z-index: calc(var(--z-floating-backdrop-v612) - 1) !important;
  pointer-events: none;
}

body.user-menu-open-v612 #nav-tabs .hamburger-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(.94);
}

body.nav-menu-open-v612 #nav-tabs {
  z-index: var(--z-floating-active-v612) !important;
}

body.nav-menu-open-v612 header {
  z-index: calc(var(--z-floating-backdrop-v612) - 1) !important;
  pointer-events: none;
}

body.user-menu-open-v612 .back-to-top-v434,
body.nav-menu-open-v612 .back-to-top-v434 {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.profile-security-fields-v612 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.profile-security-fields-v612 .input-group {
  margin: 0;
}

.profile-security-note-v612 {
  margin: 14px 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 247, 254, .15);
  border-radius: 12px;
  background: rgba(8, 247, 254, .055);
  color: #a9c4d2;
  font-size: 12px;
  line-height: 1.5;
}

#perfil-password-submit-v612:disabled {
  cursor: wait;
  opacity: .68;
}

@media (max-width: 900px) {
  .profile-security-fields-v612 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  body.user-menu-open-v612,
  body.nav-menu-open-v612 {
    overflow: hidden;
  }

  body.user-menu-open-v612 .user-profile-dropdown {
    z-index: calc(var(--z-floating-active-v612) + 1) !important;
  }
}

/* =====================================================================
   V6.13 · Planificación de fase a ancho completo y rejillas fluidas
   ===================================================================== */
#view-admin-partidos.active > .tournament-config-panel-v611,
#view-admin-partidos.active > .admin-calendar-panel-v613,
#view-admin-partidos.active > .round-planner-panel-v425 {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
}

#view-admin-partidos .round-planner-panel-v425,
#view-admin-partidos .round-planner-summary-v425,
#view-admin-partidos .round-planner-toolbar-v425,
#view-admin-partidos .round-planner-options-v428,
#view-admin-partidos .round-planner-blocks-v425,
#view-admin-partidos .round-planner-preview-v425 {
  min-width: 0;
  max-width: 100%;
}

.admin-calendar-fields-v613 {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) repeat(2, minmax(210px, 1fr)) auto;
  gap: 15px;
  align-items: end;
  margin-bottom: 4px;
}

.admin-calendar-fields-v613 > div {
  min-width: 0 !important;
}

.admin-calendar-fields-v613 input,
.admin-calendar-fields-v613 select {
  width: 100%;
  max-width: 100%;
}

.admin-calendar-fields-v613 .btn-action {
  min-height: 44px;
  margin: 0 !important;
  white-space: nowrap;
}

@media (min-width: 1081px) {
  #view-admin-partidos .round-planner-options-v428 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
  }

  #view-admin-partidos #round-planner-final-options-v439 {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  #view-admin-partidos .round-planner-options-divider-v439 {
    display: none;
  }

  #view-admin-partidos .round-planner-options-v428 > .round-planner-option-group-v439:not(#round-planner-final-options-v439) {
    grid-column: 2;
    grid-row: 1;
  }

  #view-admin-partidos .round-planner-window-fields-v428 {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#view-admin-partidos .round-planner-window-fields-v428 > label,
#view-admin-partidos .round-planner-window-fields-v428 > label > div,
#view-admin-partidos .round-planner-window-fields-v428 input {
  min-width: 0;
}

#view-admin-partidos .round-planner-window-fields-v428 input {
  width: 100%;
  max-width: 110px;
}

@media (max-width: 1080px) {
  .admin-calendar-fields-v613 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-calendar-fields-v613 > div:last-child {
    grid-column: 1 / -1;
  }

  .admin-calendar-fields-v613 .btn-action {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .admin-calendar-fields-v613 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-calendar-fields-v613 > div:last-child {
    grid-column: auto;
  }

  #view-admin-partidos .round-planner-toolbar-v425 {
    display: grid;
    grid-template-columns: 1fr;
  }

  #view-admin-partidos .round-planner-toolbar-v425 label,
  #view-admin-partidos .round-planner-toolbar-v425 button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }
}

/* =====================================================================
   V6.14 FINAL · Cierre funcional: administración organizada y bote inclusivo
   ===================================================================== */
#view-admin-partidos.active > .panel,
#view-admin-partidos.active > .admin-section-divider-v614,
#view-admin-usuarios.active > .panel,
#view-admin-usuarios.active > .admin-section-divider-v614 {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
}

.admin-section-divider-v614 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  padding: 4px 2px;
  color: #fff;
}

.admin-section-divider-v614::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 31, 107, .68), rgba(8, 247, 254, .2), transparent);
}

.admin-section-divider-v614 > span {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-section-divider-v614 > small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.manual-tool-heading-v614,
.participant-control-head-v614 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.manual-tool-badge-v614,
.participant-control-count-v614 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, .32);
  border-radius: 999px;
  background: rgba(255, 209, 102, .07);
  color: #ffd166;
  font: 800 9px 'Orbitron', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.manual-field-label-v614 {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}
.manual-field-label-v614.is-pink { color: var(--squid-pink); }
.manual-field-label-v614.is-green { color: var(--squid-green); }
.manual-field-label-v614.is-cyan { color: var(--squid-cyan); }

.manual-tool-subsection-v614 {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.manual-tool-subheading-v614 {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.manual-tool-subheading-v614 strong {
  color: #fff;
  font-size: 14px;
}

.manual-tool-subheading-v614 span,
.manual-csv-help-v614 {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.manual-match-list-v614 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.manual-match-actions-v614 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-prediction-grid-v614,
.participant-create-grid-v614 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.manual-prediction-grid-v614 > div,
.participant-create-grid-v614 > div {
  min-width: 0;
}

.manual-prediction-grid-v614 label,
.participant-create-grid-v614 label {
  display: block;
  margin-bottom: 5px;
  color: var(--squid-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.manual-prediction-grid-v614 input,
.manual-prediction-grid-v614 select,
.participant-create-grid-v614 input,
.participant-create-grid-v614 select {
  width: 100%;
  min-width: 0;
}

.manual-prediction-reserve-v614 {
  grid-column: span 2;
}

.participant-create-grid-v614 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.participant-control-count-v614 {
  border-color: rgba(8,247,254,.28);
  background: rgba(8,247,254,.06);
  color: var(--squid-cyan);
}

.participant-control-grid-v614 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.participant-control-card-v614 {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.participant-control-card-v614.has-unsaved-changes-v614 {
  border-color: rgba(255,209,102,.35);
  box-shadow: 0 0 0 1px rgba(255,209,102,.06), inset 0 1px 0 rgba(255,255,255,.03);
}

.participant-card-head-v614,
.participant-card-identity-v614,
.participant-team-add-v614,
.participant-control-actions-v614 {
  display: flex;
  align-items: center;
}

.participant-card-head-v614 {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.participant-card-identity-v614 {
  min-width: 0;
  gap: 11px;
}

.participant-avatar-v614 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255,31,107,.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,31,107,.16), rgba(164,40,255,.1));
  color: #fff;
  font: 900 12px 'Orbitron', sans-serif;
}

.participant-card-identity-v614 strong,
.participant-card-identity-v614 small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.participant-card-identity-v614 strong { color: #fff; font-size: 14px; }
.participant-card-identity-v614 small { margin-top: 3px; color: var(--text-muted); font-size: 10px; }

.participant-delete-v614 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid rgba(255,19,97,.28);
  border-radius: 11px;
  background: rgba(255,19,97,.055);
  color: #ff739e;
  cursor: pointer;
  font-size: 16px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.participant-delete-v614:hover,
.participant-delete-v614:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,19,97,.55);
  background: rgba(255,19,97,.13);
  outline: none;
}

.participant-state-field-v614 {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.participant-state-field-v614 > span,
.participant-teams-label-v614 > span {
  color: var(--squid-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.participant-state-field-v614 select {
  width: 100%;
}

.participant-teams-field-v614 {
  display: grid;
  gap: 10px;
}

.participant-teams-label-v614 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.participant-teams-label-v614 small {
  color: #718096;
  font-size: 9px;
  text-align: right;
}

.participant-team-cloud-v614 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 31px;
}

.participant-team-chip-v614 {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  padding: 5px 6px 5px 7px;
  border: 1px solid rgba(8,247,254,.17);
  border-radius: 999px;
  background: rgba(8,247,254,.04);
  color: #dfeff3;
  font-size: 10px;
}

.participant-team-chip-v614 > span:not(.censo-team-asset-v435) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-team-chip-v614 .censo-team-asset-v435 {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 50% !important;
  padding: 2px !important;
}

.participant-team-chip-v614 .censo-team-asset-v435 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.participant-team-remove-v614 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #b9c7cc;
  cursor: pointer;
  line-height: 1;
}

.participant-team-remove-v614:hover,
.participant-team-remove-v614:focus-visible {
  background: rgba(255,19,97,.2);
  color: #fff;
  outline: none;
}

.participant-team-empty-v614 {
  padding: 8px 10px;
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: 9px;
  color: #718096;
  font-size: 10px;
}

.participant-team-empty-v614[hidden] { display: none !important; }

.participant-team-add-v614 {
  gap: 8px;
}

.participant-team-add-v614 input {
  min-width: 0;
  flex: 1 1 auto;
}

.participant-team-add-button-v614 {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(8,247,254,.25);
  border-radius: 9px;
  background: rgba(8,247,254,.055);
  color: var(--squid-cyan);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.participant-control-actions-v614 {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.participant-control-actions-v614 p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.pot-admin-kpis-v32 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pot-exclusion-check-v614 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.pot-exclusion-check-v614 input {
  width: auto !important;
  accent-color: #ffd166;
  transform: scale(1.08);
}

.pot-exclusion-check-v614 span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(255,209,102,.25);
  border-radius: 999px;
  color: #ffd166;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pot-payments-table-v32 tr.is-excluded-v614 {
  background: rgba(148,163,184,.035);
  opacity: .78;
}

.pot-payments-table-v32 tr.is-excluded-v614 .pot-exclusion-check-v614 span {
  border-color: rgba(148,163,184,.28);
  color: #a0aec0;
}

.pot-payments-table-v32 input:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.pot-player-state-v32.spectator {
  color: #a8b5bd;
  border: 1px solid rgba(168,181,189,.28);
}

@media (max-width: 1180px) {
  .pot-admin-kpis-v32 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manual-prediction-grid-v614 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .participant-control-grid-v614 { grid-template-columns: minmax(0, 1fr); }
  .participant-create-grid-v614 { grid-template-columns: minmax(0, 1fr); }
  .manual-prediction-reserve-v614 { grid-column: auto; }
}

@media (max-width: 680px) {
  .admin-section-divider-v614 { grid-template-columns: minmax(0, 1fr); }
  .admin-section-divider-v614::after { grid-column: 1; grid-row: 2; }
  .admin-section-divider-v614 > span { grid-column: 1; }
  .admin-section-divider-v614 > small { grid-row: 3; }
  .manual-tool-heading-v614,
  .participant-control-head-v614 { flex-direction: column; }
  .manual-tool-badge-v614,
  .participant-control-count-v614 { align-self: flex-start; }
  .manual-prediction-grid-v614 { grid-template-columns: minmax(0, 1fr); }
  .manual-match-actions-v614,
  .participant-control-actions-v614 { align-items: stretch; flex-direction: column; }
  .manual-match-actions-v614 .btn-action,
  .participant-control-actions-v614 .btn-action { width: 100%; }
  .participant-team-add-v614 { align-items: stretch; flex-direction: column; }
  .participant-team-add-button-v614 { width: 100%; }
  .pot-admin-kpis-v32 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .pot-admin-kpis-v32 { grid-template-columns: minmax(0, 1fr); }
}
