/* Administración → Torneos históricos (05/11): lista de tarjetas y editor. Móvil primero (390 px), 16 px de margen, sin desbordes. */
.hist-raiz { display: grid; gap: 12px; padding: 4px 0 24px; min-width: 0; }
.hist-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.hist-titulo { margin: 0 0 4px; font: 800 22px/1.1 var(--f-display, inherit); letter-spacing: .02em; }
.hist-sub { margin: 0; max-width: 62ch; color: var(--suave, #b9b6dd); font-size: 14px; line-height: 1.4; }
.hist-suave { color: var(--suave, #b9b6dd); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; margin: 0; }
.hist-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-acc .mc-btn { min-height: var(--toque, 44px); }
.hist-aviso { min-height: 0; }
.hist-aviso-ok, .hist-aviso-error { padding: 8px 12px; border-radius: var(--r-m, 10px); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.hist-aviso-ok { background: rgba(32, 232, 155, .12); color: var(--ok, #20e89b); }
.hist-aviso-error { background: rgba(255, 107, 107, .12); color: var(--error, #ff6b6b); }
.hist-error { margin: 0; color: var(--error, #ff6b6b); font-size: 14px; font-weight: 600; min-height: 0; }
.hist-lista { display: grid; gap: 12px; }
.hist-vacio { margin: 8px 0; padding: 16px; text-align: center; color: var(--suave, #b9b6dd); border: 1px dashed var(--linea, #2f2b70); border-radius: var(--r-l, 16px); }
.hist-ver { font-size: 14px; color: var(--suave, #b9b6dd); display: flex; align-items: center; gap: 6px; min-height: var(--toque, 44px); }
.hist-card { border: 1px solid var(--linea, #2f2b70); border-radius: var(--r-l, 16px); background: var(--sup-1, #14123a); padding: 12px; display: grid; gap: 8px; min-width: 0; }
.hist-card-retirado { opacity: .6; }
.hist-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.hist-nombre { margin: 0; font: 800 18px/1.15 var(--f-display, inherit); overflow-wrap: anywhere; min-width: 0; }
.hist-est { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 800 12px/1.6 var(--f-datos, inherit); text-transform: uppercase; letter-spacing: .04em; background: rgba(151, 146, 200, .18); color: var(--violeta-texto, #b49dff); white-space: nowrap; }
.hist-meta { margin: 0; font-size: 14px; color: var(--suave, #b9b6dd); overflow-wrap: anywhere; }
.hist-puestos { display: grid; gap: 6px; }
.hist-puesto { margin: 0; padding: 8px 10px; border-radius: var(--r-m, 10px); background: var(--sup-2, #1d1a4f); font-size: 15px; overflow-wrap: anywhere; }
.hist-oro { box-shadow: inset 3px 0 0 var(--gold, #f5c542); }
.hist-plata { box-shadow: inset 3px 0 0 #aab4c2; }
.hist-final, .hist-notas { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.hist-banner { display: block; width: 100%; max-height: 280px; object-fit: contain; border-radius: var(--r-m, 10px); background: rgba(0, 0, 0, .3); }
.hist-retiro { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-m, 10px); border: 1px solid var(--error, #ff6b6b); }
.hist-retiro .search-input { width: 100%; min-height: var(--toque, 44px); box-sizing: border-box; font: inherit; }

/* editor */
.hist-ed-fondo { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .74); display: flex; align-items: center; justify-content: center; padding: 0; }
.hist-ed-caja { position: relative; width: 100%; height: 100%; max-height: 100dvh; overflow: auto; padding: 16px 16px 24px; background: var(--noche, #0b0a24); color: var(--texto, #f4f3ff); box-sizing: border-box; }
.hist-ed-cerrar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer; }
.hist-ed-titulo { margin: 0 44px 4px 0; font: 800 20px/1.15 var(--f-display, inherit); }
.hist-ed-cuerpo { display: grid; gap: 14px; margin-top: 12px; }
.hist-campo { display: grid; gap: 6px; min-width: 0; }
.hist-campo .search-input, .hist-ed-cuerpo .search-input { width: 100%; min-height: var(--toque, 44px); box-sizing: border-box; font: inherit; }
.hist-campo textarea.search-input { min-height: 72px; }
.hist-etq { font: 700 13px/1.2 var(--f-datos, inherit); color: var(--violeta-texto, #b49dff); text-transform: uppercase; letter-spacing: .05em; }
.hist-dos { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hist-res { display: grid; gap: 6px; }
.hist-opcion { display: grid; gap: 2px; text-align: left; min-height: var(--toque, 44px); padding: 8px 12px; border-radius: var(--r-m, 10px); border: 1px solid var(--linea, #2f2b70); background: var(--sup-1, #14123a); color: inherit; font: inherit; cursor: pointer; }
.hist-opcion:hover, .hist-opcion:focus-visible { border-color: var(--violeta, #8b5cf6); }
.hist-opcion-nuevo { border-style: dashed; }
.hist-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 999px; border: 1px solid var(--linea-fuerte, #463f9a); background: var(--sup-2, #1d1a4f); font: 700 14px var(--f-datos, inherit); overflow-wrap: anywhere; }
.hist-chip-nuevo { border-style: dashed; }
.hist-chip-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.hist-ed-pie { position: sticky; bottom: 0; padding: 10px 0 0; background: linear-gradient(to top, var(--noche, #0b0a24) 70%, transparent); }

@media (min-width: 720px) {
  .hist-puestos { grid-template-columns: 1fr 1fr; }
  .hist-dos { grid-template-columns: 1fr 1fr; }
  .hist-ed-fondo { padding: 24px; }
  .hist-ed-caja { max-width: 680px; height: auto; max-height: 92vh; border-radius: var(--r-l, 16px); border: 1px solid var(--linea, #2f2b70); }
}
