/* AutoCrazy · web (panel de administración y página de descarga) · tema 2026 «Parte de galería»
   Misma paleta, letra y reglas que dentro del juego (tema\GUIA.md); en web, algo más de aire.
   Plano y opaco: sin sombras, sin degradados, sin desenfoques, sin animaciones continuas.
   Solo se aplica bajo body.ac-web: no afecta a ninguna otra página del servidor. */

/* ---------- tokens (copia literal de tema\css\00-tokens.css; no se cambian aquí) ---------- */
:root {
  --ac-muro: #18211f; --ac-chapa: #222e2b; --ac-chapa-2: #2c3a36; --ac-fondo-campo: #111816;
  --ac-junta: #40514c; --ac-junta-suave: #2f3d39;
  --ac-hueso: #ebe6d6; --ac-tiza: #a9b8b1;
  --ac-laton: #d2a544; --ac-tinta: #191307; --ac-patio: #7fc49b; --ac-agua: #86b6cc; --ac-alarma: #dd5145; --ac-alarma-suave: #ffb9b1;
  --ac-radio: 3px; --ac-linea: 1px solid var(--ac-junta); --ac-franja: 4px;
  --ac-e1: 4px; --ac-e2: 8px; --ac-e3: 12px; --ac-e4: 16px; --ac-e5: 24px; --ac-e6: 32px;
  --ac-letra: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --ac-t-nota: 12px; --ac-t-texto: 13.5px; --ac-t-fuerte: 15px; --ac-t-titulo: 19px; --ac-t-cifra: 24px;
  --ac-foco: 2px solid var(--ac-laton);
  --ac-alarma-borde: #7a3a35;
}
/* Medidas propias de la web (no son colores ni tamaños de letra nuevos) */
.ac-web {
  --w-lateral: 220px;
  --w-texto: 72ch;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  /* Alias de los nombres antiguos que aún usan algunos estilos en línea del panel */
  --bg: var(--ac-fondo-campo); --bg2: var(--ac-muro); --card: var(--ac-chapa); --card2: var(--ac-chapa-2);
  --line: var(--ac-junta); --line2: var(--ac-junta); --txt: var(--ac-hueso); --mut: var(--ac-tiza); --dim: var(--ac-tiza);
  --acc: var(--ac-patio); --acc2: var(--ac-patio); --sky: var(--ac-agua); --blue: var(--ac-agua); --red: var(--ac-alarma);
  --amb: var(--ac-laton); --vio: var(--ac-tiza); --r: var(--ac-radio);
}

/* ---------- base ---------- */
.ac-web *, .ac-web *::before, .ac-web *::after { box-sizing: border-box; }
html:has(body.ac-web) { -webkit-text-size-adjust: 100%; background: var(--ac-muro); color-scheme: dark; }
body.ac-web {
  margin: 0; min-height: 100vh; background: var(--ac-muro); color: var(--ac-hueso);
  font: 400 var(--ac-t-texto)/1.5 var(--ac-letra); font-variant-numeric: tabular-nums;
}
.ac-web a { color: var(--ac-agua); text-decoration: none; }
.ac-web a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ac-web :is(h1, h2, h3, h4) { font-weight: 600; letter-spacing: 0; text-transform: none; margin: 0; line-height: 1.25; }
.ac-web p { margin: 0 0 var(--ac-e3); }
.ac-web b, .ac-web strong { font-weight: 600; }
.ac-web ::selection { background: var(--ac-chapa-2); color: var(--ac-hueso); }
.ac-web :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: var(--ac-foco); outline-offset: 2px; }
.ac-web [hidden] { display: none !important; }
.ac-web .hide { display: none !important; }
.ac-web ::-webkit-scrollbar { width: 10px; height: 10px; }
.ac-web ::-webkit-scrollbar-thumb { background: var(--ac-junta); border: 3px solid var(--ac-muro); border-radius: 999px; }
.ac-web ::-webkit-scrollbar-track { background: transparent; }
.ac-web * { scrollbar-color: var(--ac-junta) transparent; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ac-web .skip { position: absolute; left: var(--ac-e3); top: -60px; z-index: 100; padding: var(--ac-e2) var(--ac-e3); background: var(--ac-laton); color: var(--ac-tinta); font-weight: 600; border-radius: var(--ac-radio); }
.ac-web .skip:focus { top: var(--ac-e3); }

/* ---------- textos auxiliares ---------- */
.ac-web :is(.muted, .dim) { color: var(--ac-tiza); }
.ac-web .muted { font-size: var(--ac-t-nota); }
.ac-web .nota-txt { color: var(--ac-tiza); max-width: var(--w-texto); }
.ac-web code, .ac-web pre, .ac-web kbd { font-family: var(--mono); }
.ac-web code { font-size: var(--ac-t-nota); background: var(--ac-fondo-campo); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); padding: 1px 5px; color: var(--ac-hueso); white-space: nowrap; }
.ac-web pre { font-size: var(--ac-t-nota); }
.ac-web .ok-txt { color: var(--ac-patio); }
.ac-web .warn-txt { color: var(--ac-laton); }
.ac-web .bad-txt { color: var(--ac-alarma-suave); }
.ac-web .info-txt { color: var(--ac-agua); }

/* ---------- botones ---------- */
.ac-web .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: 1px solid var(--ac-junta); border-radius: var(--ac-radio);
  background: var(--ac-chapa); color: var(--ac-hueso); font: 600 var(--ac-t-texto)/1.1 var(--ac-letra);
  cursor: pointer; white-space: nowrap; text-decoration: none; touch-action: manipulation;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.ac-web .btn:hover { background: var(--ac-chapa-2); text-decoration: none; }
.ac-web .btn.p { background: var(--ac-laton); border-color: var(--ac-laton); color: var(--ac-tinta); }
.ac-web .btn.p:hover { background: #ddb257; border-color: #ddb257; }
.ac-web .btn.d { color: var(--ac-alarma-suave); border-color: var(--ac-alarma-borde); background: var(--ac-chapa); }
.ac-web .btn.d:hover { background: var(--ac-alarma-borde); color: var(--ac-hueso); }
.ac-web .btn.sm { min-height: 32px; padding: 0 10px; font-size: var(--ac-t-nota); }
.ac-web .btn.xs { min-height: 28px; padding: 0 8px; font-size: var(--ac-t-nota); font-weight: 500; }
.ac-web .btn.ghost { background: transparent; }
.ac-web .btn.ghost:hover { background: var(--ac-chapa-2); }
.ac-web .btn:disabled, .ac-web .btn[disabled] { opacity: .5; cursor: not-allowed; }
.ac-web .btn.on { background: var(--ac-chapa-2); box-shadow: inset 0 -2px 0 var(--ac-laton); }

/* ---------- campos ---------- */
.ac-web :is(input[type=text], input[type=search], input[type=number], input[type=password], input[type=datetime-local], input[type=time], input:not([type]), select, textarea) {
  width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--ac-junta); border-radius: var(--ac-radio);
  background: var(--ac-fondo-campo); color: var(--ac-hueso); font: 400 var(--ac-t-texto)/1.4 var(--ac-letra);
  transition: border-color 120ms;
}
.ac-web :is(input, select, textarea)::placeholder { color: var(--ac-tiza); opacity: .8; }
.ac-web :is(input, select, textarea):focus { border-color: var(--ac-laton); outline: none; }
.ac-web :is(input, select, textarea):focus-visible { outline: var(--ac-foco); outline-offset: 0; }
.ac-web textarea { resize: vertical; min-height: 72px; }
.ac-web select { cursor: pointer; }
.ac-web input[type=checkbox], .ac-web input[type=radio] { accent-color: var(--ac-laton); width: 16px; height: 16px; margin: 0; flex: none; }
.ac-web .f { display: block; margin-bottom: 6px; font-size: var(--ac-t-nota); color: var(--ac-tiza); font-weight: 500; }
.ac-web .ayuda { margin-top: 6px; font-size: var(--ac-t-nota); color: var(--ac-tiza); line-height: 1.45; }
.ac-web .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--ac-e4); }
.ac-web .chk { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--ac-radio); cursor: pointer; user-select: none; font-size: var(--ac-t-texto); }
.ac-web .chk:hover { background: var(--ac-chapa-2); }
.ac-web .search {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 260px; max-width: 380px; padding: 0 10px;
  background: var(--ac-fondo-campo); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio);
}
.ac-web .search:focus-within { border-color: var(--ac-laton); }
.ac-web .search .lupa { width: 16px; height: 16px; flex: none; color: var(--ac-tiza); }
.ac-web .search input { border: 0 !important; background: transparent !important; padding: 8px 0 !important; min-height: 34px; outline: none !important; }
.ac-web .search kbd { font-size: var(--ac-t-nota); color: var(--ac-tiza); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); padding: 0 6px; line-height: 18px; }

/* ---------- estructura del panel ---------- */
.ac-web .app { display: grid; grid-template-columns: var(--w-lateral) minmax(0, 1fr); min-height: 100vh; }
.ac-web .side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: var(--ac-fondo-campo); border-right: 1px solid var(--ac-junta-suave); padding: var(--ac-e4) var(--ac-e3);
}
.ac-web .side-cab { display: flex; align-items: center; gap: var(--ac-e2); padding: 0 4px var(--ac-e4); }
.ac-web .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ac-web .brand img { width: 32px; height: 32px; border-radius: var(--ac-radio); flex: none; }
.ac-web .brand span { display: flex; flex-direction: column; font-size: var(--ac-t-fuerte); font-weight: 600; line-height: 1.2; }
.ac-web .brand small { font-size: var(--ac-t-nota); font-weight: 400; color: var(--ac-tiza); }
.ac-web .icono-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0;
  background: transparent; color: var(--ac-tiza); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); cursor: pointer;
}
.ac-web .icono-btn:hover { color: var(--ac-hueso); background: var(--ac-chapa); }
.ac-web .icono-btn svg { width: 18px; height: 18px; }
.ac-web .navgrp { margin: var(--ac-e4) 10px 6px; font-size: var(--ac-t-nota); font-weight: 600; color: var(--ac-tiza); }
.ac-web .navgrp:first-child { margin-top: 0; }
.ac-web .nav a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; margin: 1px 0;
  border-radius: var(--ac-radio); color: var(--ac-tiza); font-size: var(--ac-t-texto); font-weight: 500; text-decoration: none;
  transition: background-color 120ms, color 120ms;
}
.ac-web .nav a:hover { background: var(--ac-chapa); color: var(--ac-hueso); }
.ac-web .nav a.on { background: var(--ac-chapa); color: var(--ac-hueso); box-shadow: inset 3px 0 0 var(--ac-laton); }
.ac-web .nav a .ic { display: none; }
.ac-web .nav a .lbl { flex: 1; min-width: 0; }
.ac-web .nav a .n { min-width: 22px; padding: 0 6px; text-align: center; font-size: var(--ac-t-nota); line-height: 20px; border-radius: 999px; background: var(--ac-chapa-2); color: var(--ac-agua); }
.ac-web .side .foot { margin-top: auto; padding: var(--ac-e4) 6px 0; border-top: 1px solid var(--ac-junta-suave); font-size: var(--ac-t-nota); color: var(--ac-tiza); line-height: 1.7; }
.ac-web .side .foot b { color: var(--ac-hueso); font-weight: 600; }
.ac-web .side .foot .btn { width: 100%; margin-top: var(--ac-e3); }
.ac-web .bottom { display: none !important; }
.ac-web .appbar { display: none; }
.ac-web .velo { display: none; }

.ac-web .main { min-width: 0; padding: 0 var(--ac-e6) 80px; }
.ac-web #content { max-width: 1680px; margin: 0 auto; }
.ac-web #content:focus { outline: none; }
.ac-web .top { display: flex; align-items: flex-end; gap: var(--ac-e3); flex-wrap: wrap; padding: var(--ac-e5) 0 var(--ac-e4); margin-bottom: var(--ac-e4); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-web .top > div:first-child { min-width: 0; flex: 1 1 340px; }
.ac-web .top h1 { font-size: var(--ac-t-cifra); line-height: 1.15; color: var(--ac-hueso); }
.ac-web .top .sub { margin-top: 4px; color: var(--ac-tiza); font-size: var(--ac-t-texto); max-width: var(--w-texto); }
.ac-web .top .sp { display: none; }
.ac-web .top .acciones, .ac-web .tools { display: flex; gap: var(--ac-e2); align-items: center; flex-wrap: wrap; }
.ac-web .tools .sp, .ac-web .row .sp, .ac-web .act .sp { flex: 1; }

/* ---------- piezas comunes ---------- */
.ac-web .grid { display: grid; gap: var(--ac-e4); }
.ac-web .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-web .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-web .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-web .gauto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.ac-web .bloque { margin-bottom: var(--ac-e4); }
.ac-web .card { position: relative; min-width: 0; background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); padding: var(--ac-e4) var(--ac-e5); }
.ac-web .card.span { grid-column: 1 / -1; }
.ac-web .card.pegado { padding: 0; }
.ac-web .card h2, .ac-web .card > summary { display: flex; align-items: baseline; gap: var(--ac-e2); flex-wrap: wrap; margin: 0 0 var(--ac-e3); font-size: var(--ac-t-fuerte); font-weight: 600; color: var(--ac-hueso); }
.ac-web .card h2 .r { margin-left: auto; font-size: var(--ac-t-nota); font-weight: 400; color: var(--ac-tiza); }
.ac-web .card h2 + .nota-txt, .ac-web .card .nota-txt { font-size: var(--ac-t-texto); }
.ac-web .card .h2-sep { margin-top: var(--ac-e5); padding-top: var(--ac-e4); border-top: 1px solid var(--ac-junta-suave); }
.ac-web .card.pegado > h2 { padding: var(--ac-e4) var(--ac-e5) 0; }
.ac-web details.card > summary { margin: 0; cursor: pointer; list-style: none; }
.ac-web details.card[open] > summary { margin-bottom: var(--ac-e3); }
.ac-web details > summary { cursor: pointer; }
.ac-web details > summary::-webkit-details-marker { display: none; }
.ac-web details > summary::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 8px; border: 5px solid transparent; border-left-color: currentColor; transform: translateY(1px); }
.ac-web details[open] > summary::before { transform: rotate(90deg) translateX(1px); }

.ac-web .kpi, .ac-web .al-kpis > .kpi {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  padding: var(--ac-e3) var(--ac-e4) var(--ac-e3) calc(var(--ac-e4) + var(--ac-franja));
  background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio);
}
.ac-web .kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--ac-franja); background: var(--ac-junta); }
.ac-web .kpi.on::before { background: var(--ac-patio); }
.ac-web .kpi.warn::before { background: var(--ac-laton); }
.ac-web .kpi.bad::before { background: var(--ac-alarma); }
.ac-web .kpi .l { font-size: var(--ac-t-nota); color: var(--ac-tiza); font-weight: 500; }
.ac-web .kpi .v { font-size: var(--ac-t-cifra); font-weight: 600; line-height: 1.2; color: var(--ac-hueso); overflow-wrap: anywhere; }
.ac-web .kpi .v.mediano { font-size: var(--ac-t-titulo); }
.ac-web .kpi .v small { font-size: var(--ac-t-fuerte); font-weight: 400; color: var(--ac-tiza); }
.ac-web .kpi .s { font-size: var(--ac-t-nota); color: var(--ac-tiza); line-height: 1.4; }
.ac-web .kpi .bg { display: none; }
.ac-web .kpis, .ac-web .al-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--ac-e3); margin-bottom: var(--ac-e4); }

.ac-web .pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--ac-junta); border-radius: 999px; background: var(--ac-chapa); font-size: var(--ac-t-nota); color: var(--ac-hueso); white-space: nowrap; }
.ac-web .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-patio); flex: none; }
.ac-web .pill .dot.off { background: var(--ac-junta); }
.ac-web .pill.kill { border-color: var(--ac-alarma-borde); color: var(--ac-alarma-suave); }

.ac-web .badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border: 1px solid var(--ac-junta-suave); border-radius: 999px; background: var(--ac-chapa-2); color: var(--ac-hueso); font-size: var(--ac-t-nota); font-weight: 500; line-height: 1; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.ac-web .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ac-web .badge.on { color: var(--ac-patio); }
.ac-web .badge.off { color: var(--ac-alarma-suave); }
.ac-web .badge.warn { color: var(--ac-laton); }
.ac-web .badge.live { color: var(--ac-agua); }
.ac-web .badge.vio { color: var(--ac-hueso); background: transparent; border-color: var(--ac-junta); }
.ac-web .badge.del { min-height: 20px; padding: 0 6px; font-family: var(--mono); color: var(--ac-tiza); background: transparent; }

.ac-web .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-web .chip, .ac-web .seg button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); background: var(--ac-chapa); color: var(--ac-tiza);
  font: 500 var(--ac-t-texto)/1 var(--ac-letra); white-space: nowrap; transition: background-color 120ms, color 120ms;
}
.ac-web .chip:hover, .ac-web .seg button:hover { color: var(--ac-hueso); }
.ac-web .chip.on, .ac-web .seg button.on { background: var(--ac-chapa-2); color: var(--ac-hueso); border-color: var(--ac-junta); box-shadow: inset 0 -2px 0 var(--ac-laton); }
.ac-web .chip .dim { font-size: var(--ac-t-nota); }
.ac-web .seg { display: inline-flex; flex-wrap: wrap; gap: 0; }
.ac-web .seg button { border-radius: 0; margin-left: -1px; }
.ac-web .seg button:first-child { border-radius: var(--ac-radio) 0 0 var(--ac-radio); margin-left: 0; }
.ac-web .seg button:last-child { border-radius: 0 var(--ac-radio) var(--ac-radio) 0; }
.ac-web .bar { display: flex; gap: var(--ac-e3); align-items: center; flex-wrap: wrap; }
.ac-web .bar .chips { flex: 1 1 auto; min-width: 0; }

.ac-web .empty { padding: var(--ac-e5) var(--ac-e4); text-align: center; color: var(--ac-tiza); font-size: var(--ac-t-texto); border: 1px dashed var(--ac-junta); border-radius: var(--ac-radio); }
.ac-web .notes { padding: var(--ac-e2) var(--ac-e3) var(--ac-e2) calc(var(--ac-e3) + var(--ac-franja) - 1px); border: 1px solid var(--ac-junta-suave); border-left: var(--ac-franja) solid var(--ac-laton); border-radius: var(--ac-radio); background: var(--ac-chapa-2); color: var(--ac-hueso); font-size: var(--ac-t-texto); overflow-wrap: anywhere; }
.ac-web .notes.info { border-left-color: var(--ac-agua); }
.ac-web form.i { display: inline; margin: 0; }

/* filas tipo lista */
.ac-web .row { display: flex; align-items: center; gap: var(--ac-e2); flex-wrap: wrap; padding: var(--ac-e2) 0; border-bottom: 1px solid var(--ac-junta-suave); font-size: var(--ac-t-texto); min-width: 0; }
.ac-web .row:last-child { border-bottom: 0; }
.ac-web .row b { font-weight: 600; overflow-wrap: anywhere; }
.ac-web .row .meta { display: flex; gap: 4px var(--ac-e3); flex-wrap: wrap; align-items: center; color: var(--ac-tiza); font-size: var(--ac-t-nota); min-width: 0; }
.ac-web .st { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-junta); flex: none; display: inline-block; }
.ac-web .st.on { background: var(--ac-patio); }
.ac-web .st.bot { background: var(--ac-agua); }
.ac-web .st.off { background: var(--ac-alarma); }
.ac-web .row.plano { padding: 0; border: 0; flex-wrap: nowrap; }
.ac-web .fila-msg { align-items: flex-start; flex-wrap: nowrap; padding: var(--ac-e3) 0; }
.ac-web .fila-msg .cuerpo { flex: 1; min-width: 0; }
.ac-web .fila-msg .txt { white-space: pre-wrap; margin-top: 2px; color: var(--ac-tiza); overflow-wrap: anywhere; }
.ac-web .lista-chk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2px var(--ac-e3); margin: var(--ac-e3) 0; }
.ac-web .lista-chk .row { border: 0; cursor: pointer; padding: 6px 8px; border-radius: var(--ac-radio); flex-wrap: nowrap; }
.ac-web .lista-chk .row:hover { background: var(--ac-chapa-2); }

/* ---------- tablas ---------- */
.ac-web .tbl { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ac-web table { width: 100%; border-collapse: collapse; font-size: var(--ac-t-texto); }
.ac-web th { padding: 8px 12px; text-align: left; vertical-align: bottom; font-size: var(--ac-t-nota); font-weight: 600; color: var(--ac-tiza); letter-spacing: 0; text-transform: none; white-space: nowrap; border-bottom: 1px solid var(--ac-junta); }
.ac-web td { padding: 8px 12px; vertical-align: top; border-bottom: 1px solid var(--ac-junta-suave); min-width: 0; }
.ac-web tbody tr:last-child td { border-bottom: 0; }
.ac-web tbody tr:hover > td { background: rgba(235, 230, 214, .025); }
.ac-web :is(th, td).num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-web :is(th, td).ac { width: 1%; white-space: nowrap; text-align: right; }
.ac-web td.muted { font-size: var(--ac-t-texto); }
.ac-web .card > .tbl > table th:first-child, .ac-web .card > .tbl > table td:first-child { padding-left: 0; }
.ac-web .card > .tbl > table th:last-child, .ac-web .card > .tbl > table td:last-child { padding-right: 0; }
.ac-web .card.pegado > .tbl > table th:first-child, .ac-web .card.pegado > .tbl > table td:first-child { padding-left: var(--ac-e5); }
.ac-web .card.pegado > .tbl > table th:last-child, .ac-web .card.pegado > .tbl > table td:last-child { padding-right: var(--ac-e5); }
.ac-web th[data-sort] { cursor: pointer; user-select: none; }
.ac-web th[data-sort]:hover { color: var(--ac-hueso); }
.ac-web th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: var(--ac-junta); border-bottom-width: 0; }
.ac-web th.asc::after { border-top-width: 0; border-bottom: 5px solid var(--ac-laton); border-top-color: transparent; }
.ac-web th.desc::after { border-top: 5px solid var(--ac-laton); }
.ac-web .chart-celda { height: 6px; background: var(--ac-fondo-campo); border-radius: 999px; overflow: hidden; min-width: 60px; }
.ac-web .chart-celda > div { height: 100%; background: var(--ac-patio); }

/* ---------- gráficas de barras (resumen) ---------- */
.ac-web .chart { position: relative; width: 100%; margin-top: 20px; }
.ac-web .chart .bar { position: absolute; display: block; min-width: 2px; background: var(--ac-patio); opacity: .85; border-radius: 2px 2px 0 0; }
.ac-web .chart .bar:hover { opacity: 1; }
.ac-web .chart .lab { position: absolute; bottom: 0; transform: translateX(-50%); font-size: var(--ac-t-nota); color: var(--ac-tiza); white-space: nowrap; line-height: 16px; }
.ac-web .chart .max { position: absolute; left: 0; top: -20px; font-size: var(--ac-t-nota); color: var(--ac-tiza); line-height: 16px; }
.ac-web .chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--ac-junta-suave); }

/* ---------- licencias ---------- */
.ac-web #lics .only-table, .ac-web #lics .only-split { display: none; }
.ac-web #lics.view-table .only-table { display: block; }
.ac-web #lics.view-table #cards { display: none; }
.ac-web #lics.view-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--ac-e4); align-items: start; }
.ac-web #lics.view-split .only-split { display: block; }
.ac-web #lics.view-split #cards { grid-template-columns: minmax(0, 1fr); }
.ac-web #lics.view-split #cards .lic:not(.sel) { display: none !important; }
.ac-web [data-hay].hide { display: none !important; }

.ac-web table.lt td { vertical-align: top; }
.ac-web #lt > tbody > tr:not(.det) > td:first-child { border-left: var(--ac-franja) solid var(--ac-junta); padding-left: var(--ac-e4) !important; }
.ac-web #lt > tbody > tr[data-state="0"] > td:first-child { border-left-color: var(--ac-patio); }
.ac-web #lt > tbody > tr[data-state="1"] > td:first-child { border-left-color: var(--ac-laton); }
.ac-web #lt > tbody > tr:is([data-state="2"], [data-state="3"]) > td:first-child { border-left-color: var(--ac-alarma); }
.ac-web #lt > thead th:first-child { padding-left: calc(var(--ac-e4) + var(--ac-franja)) !important; }
.ac-web #lt td.persona { min-width: 220px; max-width: 340px; }
.ac-web #lt > tbody > tr:not(.det) > td, .ac-web #lt > thead th { padding-left: 10px; padding-right: 10px; }
.ac-web .persona .nombre { display: block; font-weight: 600; font-size: var(--ac-t-texto); overflow-wrap: anywhere; line-height: 1.35; }
.ac-web .persona .extra { margin-top: 2px; color: var(--ac-tiza); font-size: var(--ac-t-nota); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.ac-web .clave { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; max-width: 100%; white-space: nowrap; }
.ac-web .clave code { font-size: var(--ac-t-nota); letter-spacing: 0; padding: 2px 6px; white-space: nowrap; }
.ac-web .clave .btn { min-height: 24px; padding: 0 8px; }
.ac-web .ocup { font-weight: 600; white-space: nowrap; }
.ac-web .ocup.ok { color: var(--ac-patio); }
.ac-web .ocup.lleno { color: var(--ac-laton); }
.ac-web .ocup.mas { color: var(--ac-alarma-suave); }
.ac-web .sub-num { display: block; margin-top: 2px; color: var(--ac-tiza); font-size: var(--ac-t-nota); font-weight: 400; white-space: nowrap; }
.ac-web .ips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; margin-top: 3px; }
.ac-web .ips code { font-size: var(--ac-t-nota); }
.ac-web .enlinea { min-width: 190px; }
.ac-web .pj { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 2px 0; }
.ac-web .pj + .pj { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--ac-junta-suave); }
.ac-web .pj .l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ac-web .pj .l2 { grid-column: 2; color: var(--ac-tiza); font-size: var(--ac-t-nota); line-height: 1.4; overflow-wrap: anywhere; }
.ac-web .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.ac-web [data-expand]::before { content: ""; width: 0; height: 0; border: 4px solid transparent; border-left: 5px solid currentColor; border-right-width: 0; }
.ac-web [data-expand].on::before { transform: rotate(90deg); }
.ac-web [data-expand].on { background: var(--ac-chapa-2); }
.ac-web table.lt tr.exp > td { border-bottom: 0; background: rgba(235, 230, 214, .025); }
.ac-web table.lt tr.det > td { padding: 0 var(--ac-e4) var(--ac-e4) calc(var(--ac-e4) + var(--ac-franja)) !important; background: rgba(235, 230, 214, .025); border-left: 0; }
.ac-web table.lt tr.det .detx { display: block; padding: var(--ac-e2) var(--ac-e4) var(--ac-e3); background: var(--ac-muro); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .det-acc { display: flex; gap: 6px; flex-wrap: wrap; padding: var(--ac-e2) 0 var(--ac-e2); border-bottom: 1px solid var(--ac-junta-suave); margin-bottom: var(--ac-e1); }

.ac-web .btn.ico { min-width: 30px; padding: 0 7px; gap: 6px; }
.ac-web .btn.ico svg { width: 16px; height: 16px; flex: none; }
.ac-web .btn.ico .t { display: none; }
@media (min-width: 1700px) { .ac-web .btn.ico .t { display: inline; } .ac-web .btn.ico { padding: 0 9px; } }
.ac-web .pj .l2 > * + *::before { content: " · "; color: var(--ac-junta); }
.ac-web .persona .extra { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-web .ips code { display: inline-block; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.ac-web .pj .st { align-self: start; margin-top: 7px; }

.ac-web #lt td.est { white-space: nowrap; }
.ac-web #lt td.est .badge { display: flex; width: max-content; }
.ac-web #lt td.est .badge + .badge { margin-top: 4px; }
.ac-web #lt th[data-sort="tier"] { padding-right: 4px; }
.ac-web #lt th[data-sort="state"] { padding-left: 4px; }
.ac-web .acts .btn { min-height: 28px; }
.ac-web .acts { gap: 4px; }

/* lista + detalle */
.ac-web .lst { position: sticky; top: var(--ac-e4); max-height: calc(100vh - 32px); overflow: auto; padding: var(--ac-e1); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; background: none; border: 0; border-radius: var(--ac-radio); color: var(--ac-hueso); font: inherit; cursor: pointer; }
.ac-web .li:hover { background: var(--ac-chapa-2); }
.ac-web .li.sel { background: var(--ac-chapa-2); box-shadow: inset 3px 0 0 var(--ac-laton); }
.ac-web .li .t { flex: 1; min-width: 0; }
.ac-web .li .t b { display: block; font-size: var(--ac-t-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-web .li .t small { display: block; font-size: var(--ac-t-nota); color: var(--ac-tiza); }
.ac-web .li .fin { font-size: var(--ac-t-nota); color: var(--ac-tiza); white-space: nowrap; }

/* fichas */
.ac-web .lic { display: flex; flex-direction: column; gap: var(--ac-e3); border-left: var(--ac-franja) solid var(--ac-junta); }
.ac-web .lic[data-flags*=" off"] { border-left-color: var(--ac-alarma); }
.ac-web .lic[data-flags*=" soon"] { border-left-color: var(--ac-laton); }
.ac-web .lic:not([data-flags*=" off"]):not([data-flags*=" soon"]) { border-left-color: var(--ac-patio); }
.ac-web .detx.lic { border-left: 1px solid var(--ac-junta-suave); }
.ac-web .lic .hd { display: flex; align-items: flex-start; gap: var(--ac-e3); flex-wrap: wrap; }
.ac-web .lic .hd > div:first-child { min-width: 0; flex: 1 1 220px; }
.ac-web .lic .hd .name { font-size: var(--ac-t-fuerte); font-weight: 600; overflow-wrap: anywhere; }
.ac-web .lic .hd .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-web .lic .mtr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .lic .mtr > div { padding: 8px 10px; min-width: 0; border-right: 1px solid var(--ac-junta-suave); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-web .lic .mtr > div:nth-child(2n) { border-right: 0; }
.ac-web .lic .mtr > div:nth-last-child(-n+2) { border-bottom: 0; }
.ac-web .mtr .l, .ac-web .kv .l { font-size: var(--ac-t-nota); color: var(--ac-tiza); font-weight: 500; text-transform: none; letter-spacing: 0; }
.ac-web .mtr .v, .ac-web .kv .v { margin-top: 2px; font-size: var(--ac-t-fuerte); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-web .lic .tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--ac-junta-suave); }
.ac-web .lic .tabs button { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 12px; background: none; border: 0; color: var(--ac-tiza); font: 500 var(--ac-t-texto)/1 var(--ac-letra); cursor: pointer; }
.ac-web .lic .tabs button:hover { color: var(--ac-hueso); }
.ac-web .lic .tabs button.on { color: var(--ac-hueso); box-shadow: inset 0 -2px 0 var(--ac-laton); }
.ac-web .lic .tabs .dim { font-size: var(--ac-t-nota); }
.ac-web .lic .pane { display: none; }
.ac-web .lic .pane.on { display: block; }
.ac-web .lic .act { display: flex; gap: 6px; flex-wrap: wrap; padding-top: var(--ac-e3); border-top: 1px solid var(--ac-junta-suave); }
.ac-web b.nk { cursor: pointer; color: var(--ac-hueso); text-decoration: underline dotted var(--ac-junta); text-underline-offset: 3px; }
.ac-web b.nk:hover { color: var(--ac-agua); text-decoration-color: var(--ac-agua); }

/* ---------- ediciones ---------- */
.ac-web #tiers .only-matrix { display: none; }
.ac-web #tiers.tv-matrix .only-matrix { display: block; }
.ac-web #tiers.tv-matrix .only-cards { display: none; }
.ac-web #tiers.tv-2 #tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-web #tiers.tv-4 #tcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-web #tiers.tv-4 .tf { grid-template-columns: 1fr !important; }
.ac-web #tiers.tv-4 .chk { font-size: var(--ac-t-nota); padding: 4px 6px; }
.ac-web #tiers.tv-2 .gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ac-web .tier { min-width: 0; padding: var(--ac-e4); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .tier h3 { display: flex; align-items: baseline; gap: var(--ac-e2); flex-wrap: wrap; margin: 0 0 var(--ac-e3); font-size: var(--ac-t-fuerte); }
.ac-web .tier h3 .cnt { margin-left: auto; font-size: var(--ac-t-nota); font-weight: 400; color: var(--ac-tiza); }
.ac-web .feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--ac-e3); }
.ac-web .feat .g { min-width: 0; padding: var(--ac-e2) var(--ac-e2) var(--ac-e2); background: var(--ac-muro); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .feat .g > b { display: flex; align-items: center; gap: var(--ac-e2); padding: 4px 8px 6px; font-size: var(--ac-t-nota); font-weight: 600; color: var(--ac-hueso); text-transform: none; letter-spacing: 0; }
.ac-web .feat .g .all { margin-left: auto; font-weight: 500; color: var(--ac-agua); cursor: pointer; }
.ac-web .feat .g .all:hover { text-decoration: underline; }
.ac-web table.mx th.tc, .ac-web table.mx td.tc { width: 150px; text-align: center; }
.ac-web table.mx th .tn input { text-align: center; font-weight: 600; }
.ac-web table.mx tr.grp td { padding: 10px 12px 6px; background: var(--ac-muro); color: var(--ac-hueso); font-size: var(--ac-t-nota); font-weight: 600; }
.ac-web table.mx tr.sub td { color: var(--ac-tiza); }
.ac-web table.mx td.tc input[type=number] { max-width: 84px; margin: 0 auto; text-align: right; }
.ac-web .mxc { display: inline-flex; padding: 6px; border-radius: var(--ac-radio); cursor: pointer; }
.ac-web .mxc:hover { background: var(--ac-chapa-2); }
.ac-web .mxc input { width: 18px; height: 18px; }
.ac-web .sticky-act { position: sticky; bottom: 0; z-index: 15; display: flex; gap: var(--ac-e2); align-items: center; flex-wrap: wrap; margin-top: var(--ac-e4); padding: var(--ac-e3) var(--ac-e4); background: var(--ac-muro); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); }
.ac-web .sticky-act .muted { margin-left: auto; }

/* ---------- datos del juego / informes ---------- */
.ac-web .md { max-width: 90ch; }
.ac-web .md h2 { font-size: var(--ac-t-fuerte); margin: var(--ac-e4) 0 6px; display: block; }
.ac-web .md h3 { font-size: var(--ac-t-texto); color: var(--ac-agua); margin: var(--ac-e3) 0 6px; }
.ac-web .md h4 { font-size: var(--ac-t-nota); color: var(--ac-tiza); margin: var(--ac-e3) 0 4px; text-transform: none; letter-spacing: 0; }
.ac-web .md ul { margin: 4px 0 4px 18px; padding: 0; }
.ac-web .md li { margin: 2px 0; font-size: var(--ac-t-texto); }
.ac-web .md li li { color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .md p { margin: 6px 0; font-size: var(--ac-t-texto); }
.ac-web .md code { white-space: pre-wrap; }
.ac-web .md table { margin: 8px 0; }
.ac-web table.datos tr.det > td, .ac-web tr[data-infdet] > td { background: var(--ac-muro); padding: var(--ac-e3) var(--ac-e4); }
.ac-web table.datos .que { max-width: 460px; color: var(--ac-tiza); }
.ac-web .nov { margin: 0 0 10px; padding: var(--ac-e3) var(--ac-e4); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .nov .md { margin-top: 8px; }
.ac-web .progreso { height: 6px; margin-top: 10px; background: var(--ac-fondo-campo); border-radius: 999px; overflow: hidden; }
.ac-web .progreso > div { height: 100%; width: 0; background: var(--ac-patio); }
.ac-web .registro { margin-top: 8px; max-height: 140px; overflow: auto; font-family: var(--mono); font-size: var(--ac-t-nota); color: var(--ac-tiza); white-space: pre-wrap; }
.ac-web .card.robot { border-left: var(--ac-franja) solid var(--ac-agua); }

.ac-web .feat .g .all { padding: 2px 6px; background: none; border: 0; border-radius: var(--ac-radio); font: 500 var(--ac-t-nota)/1.2 var(--ac-letra); }
.ac-web .protecciones { list-style: none; margin: 0; padding: 0; }
.ac-web .protecciones li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid var(--ac-junta-suave); font-size: var(--ac-t-texto); color: var(--ac-hueso); }
.ac-web .protecciones li:last-child { border-bottom: 0; }
.ac-web .protecciones li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 9px; height: 5px; border-left: 2px solid var(--ac-patio); border-bottom: 2px solid var(--ac-patio); transform: rotate(-45deg); }
.ac-web .evlist .row { flex-wrap: nowrap; align-items: baseline; }
.ac-web .evlist .ev-t { width: 104px; flex: none; font-size: var(--ac-t-nota); font-variant-numeric: tabular-nums; }
.ac-web .evlist .badge { flex: none; }
.ac-web .evlist .row > b { flex: 0 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-web .evlist .ev-d { flex: 1 1 auto; min-width: 0; color: var(--ac-tiza); overflow-wrap: anywhere; }
.ac-web .evlist code { flex: none; }
@media (max-width: 900px) {
  .ac-web .evlist .row { flex-wrap: wrap; }
  .ac-web .evlist .ev-d { flex-basis: 100%; }
}

/* ---------- avisos, diálogo y cajón ---------- */
.ac-web .toast {
  position: fixed; left: 50%; bottom: var(--ac-e5); z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--ac-e3); max-width: min(640px, calc(100vw - 32px));
  padding: var(--ac-e3) var(--ac-e3) var(--ac-e3) var(--ac-e4); opacity: 0;
  background: var(--ac-chapa-2); color: var(--ac-hueso); border: 1px solid var(--ac-junta); border-left: var(--ac-franja) solid var(--ac-patio); border-radius: var(--ac-radio);
  font-size: var(--ac-t-texto); overflow-wrap: anywhere;
}
.ac-web .toast.show { opacity: 1; }
.ac-web .toast.err { border-left-color: var(--ac-alarma); }
.ac-web .toast button { margin-left: auto; flex: none; width: 28px; height: 28px; background: none; border: 1px solid transparent; border-radius: var(--ac-radio); color: var(--ac-tiza); cursor: pointer; font-size: var(--ac-t-fuerte); }
.ac-web .toast button:hover { color: var(--ac-hueso); border-color: var(--ac-junta); }
.ac-web dialog { max-width: min(440px, calc(100vw - 32px)); padding: var(--ac-e5); background: var(--ac-muro); color: var(--ac-hueso); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); }
.ac-web dialog::backdrop { background: rgba(8, 11, 10, .72); }
.ac-web dialog h3 { margin: 0 0 var(--ac-e2); font-size: var(--ac-t-titulo); }
.ac-web dialog p { margin: 0 0 var(--ac-e5); color: var(--ac-tiza); font-size: var(--ac-t-texto); }
.ac-web dialog .tools { justify-content: flex-end; }
.ac-web #drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: none; flex-direction: column; width: min(440px, 100vw); background: var(--ac-muro); border-left: 1px solid var(--ac-junta); }
.ac-web #drawer.open { display: flex; }
.ac-web #drawer .dh { display: flex; align-items: center; gap: var(--ac-e3); padding: var(--ac-e4) var(--ac-e5); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-web #drawer .dh b { font-size: var(--ac-t-titulo); min-width: 0; overflow-wrap: anywhere; }
.ac-web #drawer .dh .x { margin-left: auto; width: 36px; height: 36px; flex: none; background: none; border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); color: var(--ac-tiza); cursor: pointer; font-size: var(--ac-t-fuerte); }
.ac-web #drawer .dh .x:hover { color: var(--ac-hueso); background: var(--ac-chapa); }
.ac-web #drawer .db { display: flex; flex-direction: column; gap: var(--ac-e4); padding: var(--ac-e4) var(--ac-e5); overflow: auto; }
.ac-web .live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ac-t-nota); color: var(--ac-tiza); white-space: nowrap; }
.ac-web .live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-junta); }
.ac-web .live-pill.on i { background: var(--ac-patio); }
.ac-web .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .kv > div { padding: 8px 10px; min-width: 0; border-bottom: 1px solid var(--ac-junta-suave); border-right: 1px solid var(--ac-junta-suave); }
.ac-web .kv > div:nth-child(2n), .ac-web .kv > div[style*="1/-1"] { border-right: 0; }
.ac-web .stat { display: grid; grid-template-columns: 112px minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: var(--ac-t-texto); }
.ac-web .stat .n { color: var(--ac-tiza); font-size: var(--ac-t-nota); text-transform: none; letter-spacing: 0; }
.ac-web .stat .n::first-letter { text-transform: uppercase; }
.ac-web .stat .bar { height: 8px; background: var(--ac-fondo-campo); border-radius: 999px; overflow: hidden; }
.ac-web .stat .bar i { display: block; height: 100%; background: var(--ac-agua); }
.ac-web .stat.hp .bar i { background: var(--ac-alarma); }
.ac-web .stat.ix .bar i { background: var(--ac-patio); }
.ac-web .stat .v { text-align: right; font-weight: 600; }
.ac-web #fh-tip { position: fixed; z-index: 70; display: none; max-width: 340px; padding: 10px 12px; background: var(--ac-chapa-2); color: var(--ac-hueso); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); font-size: var(--ac-t-nota); line-height: 1.45; pointer-events: none; }
.ac-web #fh-tip b { display: block; margin-bottom: 3px; color: var(--ac-laton); }
.ac-web #fh-tip .w { margin: 4px 0; color: var(--ac-tiza); }
.ac-web #fh-tip .on, .ac-web #fh-tip .off { display: block; margin-top: 3px; }
.ac-web #fh-tip .on { color: var(--ac-patio); }
.ac-web #fh-tip .off { color: var(--ac-tiza); }
.ac-web [data-help] { cursor: help; }

/* ---------- almacén y reparto ---------- */
.ac-web .al-form { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: var(--ac-e4); }
.ac-web .al-who { min-width: 0; padding: var(--ac-e3) var(--ac-e4); background: var(--ac-muro); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .al-who .info { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: var(--ac-t-nota); color: var(--ac-tiza); line-height: 1.6; }
.ac-web .al-who .info b { color: var(--ac-hueso); }
.ac-web .al-arrow { display: grid; place-items: center; color: var(--ac-tiza); font-size: var(--ac-t-titulo); }
.ac-web .al-pick { margin-top: var(--ac-e3); padding-top: var(--ac-e3); border-top: 1px solid var(--ac-junta-suave); }
.ac-web .al-pick .search { max-width: none; margin-bottom: 8px; }
.ac-web .al-items { max-height: 280px; overflow: auto; background: var(--ac-fondo-campo); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .al-it { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--ac-junta-suave); font-size: var(--ac-t-texto); }
.ac-web .al-it:last-child { border-bottom: 0; }
.ac-web .al-it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-web .al-it .nm small { margin-left: 6px; color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .al-it .q { color: var(--ac-tiza); white-space: nowrap; font-size: var(--ac-t-nota); }
.ac-web .al-it .q b { color: var(--ac-hueso); }
.ac-web .al-it.no { opacity: .55; }
.ac-web .al-cesta { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ac-web .al-ce { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); font-size: var(--ac-t-texto); }
.ac-web .al-ce .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-web .al-ce input, .ac-web .al-it input { width: 72px; min-height: 28px; padding: 2px 6px; text-align: right; }
.ac-web .al-ce .x { width: 28px; height: 28px; background: none; border: 1px solid transparent; border-radius: var(--ac-radio); color: var(--ac-tiza); cursor: pointer; }
.ac-web .al-ce .x:hover { color: var(--ac-alarma-suave); border-color: var(--ac-alarma-borde); }
.ac-web .al-foot { grid-column: 1 / -1; display: flex; gap: var(--ac-e3); align-items: center; flex-wrap: wrap; }
.ac-web .al-foot .sum { color: var(--ac-tiza); font-size: var(--ac-t-texto); }
.ac-web .al-foot .sum b { color: var(--ac-hueso); }
.ac-web .al-foot label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ac-t-texto); color: var(--ac-tiza); }
.ac-web .al-foot input[type=number] { width: 130px; }
.ac-web .al-warn { grid-column: 1 / -1; display: none; }
.ac-web .al-warn.on { display: block; }
.ac-web .al-steps { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.ac-web .al-steps i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ac-junta); }
.ac-web .al-steps i.ok { background: var(--ac-patio); }
.ac-web .al-steps i.now { background: var(--ac-agua); }
.ac-web .al-steps em { margin-left: 6px; font-style: normal; font-size: var(--ac-t-nota); white-space: nowrap; }
.ac-web .al-qty { color: var(--ac-tiza); }
.ac-web .al-qty b { color: var(--ac-hueso); }
.ac-web .al-chip { display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0; padding: 2px 4px 2px 8px; border: 1px solid var(--ac-junta-suave); border-radius: 999px; background: var(--ac-muro); font-size: var(--ac-t-nota); white-space: nowrap; }
.ac-web .al-chip b { font-weight: 600; }
.ac-web .al-chip .ad { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; color: var(--ac-agua); font-weight: 600; text-decoration: none; }
.ac-web .al-chip .ad:hover { background: var(--ac-chapa-2); color: var(--ac-hueso); }
.ac-web .al-chip .eq { color: var(--ac-tiza); }
.ac-web details.al-inv summary { padding: 4px 0; font-size: var(--ac-t-texto); color: var(--ac-tiza); }
.ac-web details.al-inv[open] summary { color: var(--ac-hueso); }
.ac-web .al-stale { color: var(--ac-laton); }
.ac-web .al-pers h2 .st { align-self: center; }
.ac-web .al-linea { margin-bottom: 6px; font-size: var(--ac-t-texto); color: var(--ac-tiza); }

/* ---------- botín observado y fisgón ---------- */
.ac-web .bfil { display: flex; gap: var(--ac-e2); flex-wrap: wrap; align-items: center; }
.ac-web .bfil .bsel { flex: 0 1 auto; width: auto; max-width: 260px; min-height: 34px; padding: 0 28px 0 10px; font-weight: 500; text-align: left; background-color: var(--ac-fondo-campo); }
.ac-web .bfil #bn { margin-left: auto; font-size: var(--ac-t-nota); }
.ac-web .bfil details { flex: 1 1 100%; }
.ac-web .bfil details summary { font-size: var(--ac-t-texto); color: var(--ac-tiza); padding: 4px 0; }
.ac-web .bt { width: 100%; border-collapse: collapse; font-size: var(--ac-t-texto); }
.ac-web .bt th { padding: 8px 10px; font-size: var(--ac-t-nota); text-transform: none; letter-spacing: 0; }
.ac-web .bt td { padding: 8px 10px; }
.ac-web .bt tr.h { cursor: pointer; }
.ac-web .bt tr.h > td:first-child { box-shadow: inset 2px 0 0 transparent; }
.ac-web .bt tr.x > td { padding: var(--ac-e3) var(--ac-e4) var(--ac-e4); background: var(--ac-muro); }
.ac-web .bt .num { text-align: right; white-space: nowrap; }
.ac-web .bt .sub { font-size: var(--ac-t-nota); color: var(--ac-tiza); }
.ac-web .bbar { display: inline-block; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 999px; background: var(--ac-patio); }
.ac-web .bi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px var(--ac-e3); }
.ac-web .bi .it { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 8px; background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .bi .it b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: var(--ac-t-texto); }
.ac-web .tag { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 7px; border: 1px solid var(--ac-junta-suave); border-radius: 999px; background: var(--ac-chapa-2); color: var(--ac-tiza); font-size: var(--ac-t-nota); font-weight: 500; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.ac-web .tag.ok { color: var(--ac-patio); }
.ac-web .tag.no { color: var(--ac-alarma-suave); }
.ac-web .tag.r { color: var(--ac-agua); }
.ac-web .tag.w { color: var(--ac-laton); }
.ac-web .bsec { margin: 0 0 6px; font-size: var(--ac-t-nota); font-weight: 600; color: var(--ac-tiza); text-transform: none; letter-spacing: 0; }
.ac-web .bsec + .bi { margin-bottom: var(--ac-e3); }
.ac-web .bobj .who { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-web .bobj .who a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--ac-junta-suave); border-radius: 999px; background: var(--ac-muro); color: var(--ac-hueso); font-size: var(--ac-t-nota); text-decoration: none; }
.ac-web .bobj .who a:hover { border-color: var(--ac-junta); }
.ac-web .bmore { padding: var(--ac-e3); text-align: center; }
.ac-web .bsug { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin-top: 4px; display: none; max-height: 320px; overflow: auto; background: var(--ac-chapa-2); border: 1px solid var(--ac-junta); border-radius: var(--ac-radio); }
.ac-web .bsug.on { display: block; }
.ac-web .bsug div { display: flex; gap: 8px; align-items: center; padding: 8px 12px; cursor: pointer; font-size: var(--ac-t-texto); }
.ac-web .bsug div:hover, .ac-web .bsug div.sel { background: var(--ac-chapa); }
.ac-web .bsug small { margin-left: auto; color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .robot-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ac-e4); flex-wrap: wrap; }
.ac-web .robot-cab > div:first-child { flex: 1 1 320px; min-width: 0; }
.ac-web .robot-cab h2 { margin-bottom: 6px; }
.ac-web .caja { margin-top: var(--ac-e4); padding: var(--ac-e4); background: var(--ac-muro); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .caja h3 { font-size: var(--ac-t-texto); margin-bottom: 4px; }
.ac-web .rejilla-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--ac-e3); align-items: end; }
.ac-web .ac-day-btn { min-width: 48px; }
.ac-web .ac-day-btn.on { background: var(--ac-chapa-2); color: var(--ac-hueso); border-color: var(--ac-laton); box-shadow: inset 0 -2px 0 var(--ac-laton); }
.ac-web .interruptor { display: flex; align-items: center; justify-content: space-between; gap: var(--ac-e4); flex-wrap: wrap; border-left: var(--ac-franja) solid var(--ac-junta); }
.ac-web .interruptor.on { border-left-color: var(--ac-patio); }
.ac-web .interruptor.off { border-left-color: var(--ac-alarma); }
.ac-web .interruptor > div:first-child { flex: 1 1 320px; min-width: 0; }
.ac-web .sw-lbl { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; }
.ac-web .sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--ac-fondo-campo); border: 1px solid var(--ac-junta); }
.ac-web .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ac-tiza); }
.ac-web input:checked + .sw { background: var(--ac-patio); border-color: var(--ac-patio); }
.ac-web input:checked + .sw::after { left: 21px; background: var(--ac-tinta); }
.ac-web input:focus-visible + .sw { outline: var(--ac-foco); outline-offset: 2px; }

/* cabecera de página: acciones a la derecha en una línea */
.ac-web .top .acciones { justify-content: flex-end; flex-wrap: nowrap; }
.ac-web .top .acciones .search { flex: 0 1 340px; }
@media (max-width: 900px) { .ac-web .top .acciones { flex-wrap: wrap; justify-content: flex-start; width: 100%; } .ac-web .top .acciones .search { flex: 1 1 100%; } }

.ac-web .interruptor .sw::after { display: none; }
.ac-web .sw-bola { position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ac-hueso); }
.ac-web .interruptor h2 { align-items: center; }
.ac-web #blista > .empty { margin: var(--ac-e4); }
.ac-web #blista .bt th:first-child, .ac-web #blista .bt td:first-child { padding-left: var(--ac-e5); }
.ac-web #blista .bt th:last-child, .ac-web #blista .bt td:last-child { padding-right: var(--ac-e5); }
.ac-web .bt tr.h:focus-within > td, .ac-web .bt tr.h:hover > td { background: rgba(235, 230, 214, .03); }

/* ajustes tras revisar capturas */
.ac-web .btn.ghost { border-color: transparent; color: var(--ac-agua); }
.ac-web .btn.ghost:hover { border-color: var(--ac-junta-suave); color: var(--ac-hueso); }
.ac-web .row.plano { flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ac-web b.nk { white-space: nowrap; }
.ac-web .pj .l2 > * + *::before { color: var(--ac-tiza); }
.ac-web .pj .l1 .dim { white-space: nowrap; }
@media (max-width: 1599px) { .ac-web #lt .ips { display: none; } }
.ac-web #ac-robot-card .tag { white-space: normal; height: auto; min-height: 22px; padding: 2px 8px; line-height: 1.35; max-width: 100%; }
.ac-web table.lt tr.det > td { padding-right: var(--ac-e4) !important; }

.ac-web summary { list-style: none; }
.ac-web summary::marker { content: ""; }
.ac-web table.mx td { vertical-align: middle; }
.ac-web .feat > .g:only-child { grid-column: 1 / -1; columns: 2 300px; column-gap: var(--ac-e4); }
.ac-web .feat > .g:only-child > b { column-span: all; }
.ac-web .feat > .g:only-child .chk { break-inside: avoid; }
@media (max-width: 900px) { .ac-web .tbl > table { min-width: 640px; } .ac-web .tbl > table.bt { min-width: 760px; } }

@media (max-width: 1699px) {
  .ac-web #lt .acts { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 4px; }
  .ac-web #lt .acts form.i { display: contents; }
}
@media (max-width: 1366px) {
  .ac-web #lt td.persona { min-width: 200px; }
  .ac-web .enlinea { min-width: 170px; }
}

.ac-web .evlist .row { display: grid; grid-template-columns: 112px 160px minmax(0, 200px) minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.ac-web .evlist .row > .badge { justify-self: start; }
.ac-web .evlist .row > b { flex: none; }
@media (max-width: 900px) { .ac-web .evlist .row { display: flex; flex-wrap: wrap; gap: 4px 10px; } .ac-web .evlist .ev-t { width: auto; } .ac-web .evlist .row > b { flex: 1 1 100%; white-space: normal; } .ac-web .evlist .ev-d { flex: 1 1 100%; } .ac-web .evlist .badge { max-width: 100%; white-space: normal; } }
.ac-web .fila-msg > .badge { min-width: 70px; justify-content: center; }

.ac-web .lic.pj-card { border-left: 1px solid var(--ac-junta-suave); gap: var(--ac-e2); }
.ac-web .lic.pj-card > h2 { margin-bottom: 0; }

/* ---------- inicio de sesión ---------- */
.ac-web.ac-login { display: grid; place-items: center; padding: var(--ac-e4); }
.ac-web .login-card { width: min(380px, 100%); padding: var(--ac-e6) var(--ac-e6) var(--ac-e5); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-top: var(--ac-franja) solid var(--ac-laton); border-radius: var(--ac-radio); }
.ac-web .login-card .brand { margin-bottom: var(--ac-e5); }
.ac-web .login-card .brand img { width: 40px; height: 40px; }
.ac-web .login-card label { display: block; margin: var(--ac-e4) 0 6px; font-size: var(--ac-t-nota); color: var(--ac-tiza); font-weight: 500; }
.ac-web .login-card input { min-height: 40px; }
.ac-web .login-card .btn { width: 100%; min-height: 40px; margin-top: var(--ac-e5); font-size: var(--ac-t-fuerte); }
.ac-web .login-card .err { margin-top: var(--ac-e4); padding: var(--ac-e2) var(--ac-e3); border: 1px solid var(--ac-alarma-borde); border-left: var(--ac-franja) solid var(--ac-alarma); border-radius: var(--ac-radio); color: var(--ac-alarma-suave); font-size: var(--ac-t-texto); }

/* ---------- adaptable ---------- */
@media (min-width: 901px) {
  .ac-web .app.mini { grid-template-columns: 0 minmax(0, 1fr); }
  .ac-web .app.mini .side { visibility: hidden; padding: 0; border: 0; overflow: hidden; }
  .ac-web .app.mini .appbar { display: flex; }
}
@media (max-width: 1280px) {
  .ac-web .main { padding: 0 var(--ac-e5) 72px; }
  .ac-web .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-web #tiers.tv-4 #tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ac-web .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-web #lics.view-split { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ac-web .app { grid-template-columns: minmax(0, 1fr); }
  .ac-web .appbar { display: flex; }
  .ac-web .side { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; visibility: hidden; transform: translateX(-100%); }
  .ac-web .app.nav-open .side { visibility: visible; transform: none; }
  .ac-web .app.nav-open .velo { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(8, 11, 10, .65); }
  .ac-web .main { padding: 0 var(--ac-e4) var(--ac-e6); }
  .ac-web .g2, .ac-web .g3, .ac-web .gauto { grid-template-columns: minmax(0, 1fr); }
  .ac-web #lics.view-split { grid-template-columns: minmax(0, 1fr); }
  .ac-web .lst { position: static; max-height: 280px; }
  .ac-web .al-form { grid-template-columns: minmax(0, 1fr); }
  .ac-web .al-arrow { display: none; }
  .ac-web #tiers :is(#tcards) { grid-template-columns: minmax(0, 1fr) !important; }
  .ac-web .top { padding-top: var(--ac-e4); }
  .ac-web .search { max-width: none; flex-basis: 100%; }
}
.ac-web .appbar { position: sticky; top: 0; z-index: 30; align-items: center; gap: var(--ac-e3); margin: 0 calc(-1 * var(--ac-e4)); padding: var(--ac-e2) var(--ac-e4); background: var(--ac-fondo-campo); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-web .appbar .titulo { min-width: 0; font-size: var(--ac-t-fuerte); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-web .appbar img { width: 24px; height: 24px; border-radius: var(--ac-radio); }
@media (min-width: 901px) { .ac-web .appbar { margin: 0 calc(-1 * var(--ac-e6)); padding: var(--ac-e2) var(--ac-e6); } }
@media (min-width: 901px) and (max-width: 1280px) { .ac-web .appbar { margin: 0 calc(-1 * var(--ac-e5)); padding: var(--ac-e2) var(--ac-e5); } }
@media (max-width: 600px) {
  .ac-web .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-web .card { padding: var(--ac-e3) var(--ac-e4); }
  .ac-web .card.pegado > h2 { padding: var(--ac-e3) var(--ac-e4) 0; }
  .ac-web .card.pegado > .tbl > table th:first-child, .ac-web .card.pegado > .tbl > table td:first-child { padding-left: var(--ac-e4); }
  .ac-web .card.pegado > .tbl > table th:last-child, .ac-web .card.pegado > .tbl > table td:last-child { padding-right: var(--ac-e4); }
  .ac-web .kpi .v { font-size: var(--ac-t-titulo); }
  .ac-web .top h1 { font-size: var(--ac-t-titulo); }
  .ac-web .top .acciones { width: 100%; }
  .ac-web .lic .act .btn { flex: 1 1 auto; }
  .ac-web .stat { grid-template-columns: 96px minmax(0, 1fr) 64px; }
  .ac-web .login-card { padding: var(--ac-e5) var(--ac-e4); }
  .ac-web :is(input, select, textarea) { font-size: 16px !important; }
  .ac-web .bfil .bsel { flex: 1 1 140px; max-width: none; }
  .ac-web .sticky-act .muted { margin-left: 0; width: 100%; }
  .ac-web .bar { align-items: stretch; }
  .ac-web .seg { width: 100%; }
  .ac-web .seg button { flex: 1 1 auto; justify-content: center; }
  .ac-web .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; max-width: 100%; }
  .ac-web .toast { bottom: var(--ac-e4); }
}
@media (max-width: 340px) { .ac-web .g4 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ac-web * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- página de descarga ---------- */
.ac-web.ac-descarga { padding: 0 var(--ac-e4) 72px; }
.ac-descarga .box { width: min(820px, 100%); margin: 0 auto; }
.ac-descarga .ac-site-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--ac-e3); padding: var(--ac-e4) 0; border-bottom: 1px solid var(--ac-junta-suave); }
.ac-descarga .ac-site-nav .brand img { width: 28px; height: 28px; }
.ac-descarga .ac-site-nav .brand b { font-size: var(--ac-t-fuerte); }
.ac-descarga .hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--ac-e2) var(--ac-e5); align-items: center; margin: var(--ac-e6) 0 var(--ac-e5); }
.ac-descarga .hero img { grid-row: span 2; width: 88px; height: 88px; border-radius: var(--ac-radio); }
.ac-descarga .hero h1 { font-size: 34px; line-height: 1.1; align-self: end; }
.ac-descarga .hero .sub { margin: 0; color: var(--ac-tiza); font-size: var(--ac-t-fuerte); align-self: start; }
.ac-descarga .dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ac-e5); align-items: center; padding: var(--ac-e5); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-left: var(--ac-franja) solid var(--ac-laton); border-radius: var(--ac-radio); }
.ac-descarga .dl a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; align-items: center; padding: 0 22px; background: var(--ac-laton); color: var(--ac-tinta); border-radius: var(--ac-radio); font-size: var(--ac-t-fuerte); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ac-descarga .dl a:hover { background: #ddb257; text-decoration: none; }
.ac-descarga .dl a small { font-weight: 500; font-size: var(--ac-t-texto); opacity: .8; }
.ac-descarga .dl .m { color: var(--ac-tiza); font-size: var(--ac-t-texto); line-height: 1.55; }
.ac-descarga .dl .m b { color: var(--ac-hueso); }
.ac-descarga h2 { margin: var(--ac-e6) 0 var(--ac-e3); font-size: var(--ac-t-titulo); color: var(--ac-hueso); }
.ac-descarga input[name=b] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-descarga .tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--ac-e4); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-descarga .tabs label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--ac-e4); color: var(--ac-tiza); font-weight: 500; cursor: pointer; }
.ac-descarga .tabs label:hover { color: var(--ac-hueso); }
#b-chrome:checked ~ .tabs label[for=b-chrome], #b-edge:checked ~ .tabs label[for=b-edge], #b-brave:checked ~ .tabs label[for=b-brave] { color: var(--ac-hueso); box-shadow: inset 0 -2px 0 var(--ac-laton); }
#b-chrome:focus-visible ~ .tabs label[for=b-chrome], #b-edge:focus-visible ~ .tabs label[for=b-edge], #b-brave:focus-visible ~ .tabs label[for=b-brave] { outline: var(--ac-foco); outline-offset: -2px; }
.ac-descarga .g { display: none; }
#b-chrome:checked ~ .g.chrome, #b-edge:checked ~ .g.edge, #b-brave:checked ~ .g.brave { display: block; }
.ac-descarga ol { list-style: none; counter-reset: paso; margin: 0; padding: 0; border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); background: var(--ac-chapa); }
.ac-descarga ol li { counter-increment: paso; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--ac-e4); padding: var(--ac-e4) var(--ac-e5); border-bottom: 1px solid var(--ac-junta-suave); }
.ac-descarga ol li:last-child { border-bottom: 0; }
.ac-descarga ol li::before { content: counter(paso); display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ac-junta); border-radius: 50%; font-weight: 600; font-size: var(--ac-t-fuerte); color: var(--ac-laton); }
.ac-descarga ol li.clave-paso::before { border-color: var(--ac-laton); }
.ac-descarga li b.t { display: block; margin: 4px 0 4px; font-size: var(--ac-t-fuerte); }
.ac-descarga li p { margin: 0; color: var(--ac-tiza); font-size: var(--ac-t-texto); line-height: 1.6; max-width: 66ch; }
.ac-descarga li p b { color: var(--ac-hueso); }
.ac-descarga .mock { display: flex; align-items: center; justify-content: space-between; gap: var(--ac-e3); max-width: 420px; margin-top: var(--ac-e3); padding: 8px 12px; background: var(--ac-fondo-campo); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); font-size: var(--ac-t-nota); color: var(--ac-hueso); }
.ac-descarga .mock .sw { background: var(--ac-agua); border-color: var(--ac-agua); }
.ac-descarga .mock .sw::after { left: 21px; background: var(--ac-tinta); }
.ac-descarga .key { font-family: var(--mono); font-size: var(--ac-t-nota); color: var(--ac-hueso); white-space: nowrap; }
.ac-descarga .video { padding: var(--ac-e5); text-align: center; color: var(--ac-tiza); border: 1px dashed var(--ac-junta); border-radius: var(--ac-radio); }
.ac-descarga .faq { border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); background: var(--ac-chapa); }
.ac-descarga .faq details { border-bottom: 1px solid var(--ac-junta-suave); }
.ac-descarga .faq details:last-child { border-bottom: 0; }
.ac-descarga .faq summary { display: flex; align-items: baseline; padding: var(--ac-e3) var(--ac-e5); font-weight: 500; font-size: var(--ac-t-fuerte); list-style: none; }
.ac-descarga .faq summary:hover { background: var(--ac-chapa-2); }
.ac-descarga .faq p { margin: 0; padding: 0 var(--ac-e5) var(--ac-e4) calc(var(--ac-e5) + 18px); color: var(--ac-tiza); font-size: var(--ac-t-texto); line-height: 1.6; max-width: 76ch; }
.ac-descarga .faq p b { color: var(--ac-hueso); }
.ac-descarga .note { margin-top: var(--ac-e5); color: var(--ac-tiza); font-size: var(--ac-t-texto); max-width: 70ch; }
@media (max-width: 600px) {
  .ac-descarga .hero { grid-template-columns: 56px minmax(0, 1fr); gap: 4px var(--ac-e4); margin: var(--ac-e5) 0 var(--ac-e4); }
  .ac-descarga .hero img { width: 56px; height: 56px; }
  .ac-descarga .hero h1 { font-size: var(--ac-t-cifra); }
  .ac-descarga .hero .sub { font-size: var(--ac-t-texto); }
  .ac-descarga .dl { grid-template-columns: minmax(0, 1fr); gap: var(--ac-e4); padding: var(--ac-e4); }
  .ac-descarga .dl a { justify-content: center; }
  .ac-descarga ol li { grid-template-columns: 32px minmax(0, 1fr); gap: var(--ac-e3); padding: var(--ac-e4); }
  .ac-descarga .tabs label { flex: 1 1 auto; justify-content: center; padding: 0 var(--ac-e2); }
  .ac-descarga .faq summary { padding: var(--ac-e3) var(--ac-e4); }
  .ac-descarga .faq p { padding: 0 var(--ac-e4) var(--ac-e4); }
}

/* 2.9.18 · Mis personajes en vivo y Soporte */
.ac-web .pj-vivo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--ac-e3); }
.ac-web .pjv { position: relative; display: flex; flex-direction: column; gap: var(--ac-e2); min-width: 0; padding: var(--ac-e3) var(--ac-e3) var(--ac-e3) calc(var(--ac-e3) + var(--ac-franja)); background: var(--ac-chapa); border: 1px solid var(--ac-junta-suave); border-radius: var(--ac-radio); }
.ac-web .pjv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--ac-franja); background: var(--ac-junta); border-radius: var(--ac-radio) 0 0 var(--ac-radio); }
.ac-web .pjv.on::before { background: var(--ac-patio); }
.ac-web .pjv.warn::before { background: var(--ac-laton); }
.ac-web .pjv.bad::before { background: var(--ac-alarma); }
.ac-web .pjv.off { opacity: .62; }
.ac-web .pjv header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ac-e2); min-width: 0; }
.ac-web .pjv header .nk { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--ac-t-fuerte); cursor: pointer; }
.ac-web .pjv-niv { flex: none; white-space: nowrap; color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .pjv-niv b { color: var(--ac-hueso); font-size: var(--ac-t-titulo); font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-web .pjv-xp { height: 4px; overflow: hidden; background: var(--ac-fondo-campo); border-radius: 999px; }
.ac-web .pjv-xp i { display: block; height: 100%; background: var(--ac-laton); }
.ac-web .pjv-que { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ac-web .pjv-act { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ac-tiza); font-size: var(--ac-t-nota); line-height: 1.4; overflow-wrap: anywhere; }
.ac-web .pjv-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--ac-e2) var(--ac-e3); margin: 0; }
.ac-web .pjv-datos dt { color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .pjv-datos dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-web .pjv footer { color: var(--ac-tiza); font-size: var(--ac-t-nota); }
.ac-web .pj-ses { margin-top: var(--ac-e4); }
.ac-web .pj-ses > summary { cursor: pointer; color: var(--ac-tiza); }
.ac-web .pj-ses[open] > summary { margin-bottom: var(--ac-e2); }
.ac-web .sop-kv { margin-bottom: var(--ac-e3); }
.ac-web .sop-nota { margin: 0 0 var(--ac-e3); padding: var(--ac-e2) var(--ac-e3); border-left: var(--ac-franja) solid var(--ac-agua); background: var(--ac-chapa-2); color: var(--ac-hueso); overflow-wrap: anywhere; }
.ac-web .sop-acc { display: flex; flex-wrap: wrap; gap: var(--ac-e2); margin-bottom: var(--ac-e3); }
.ac-web .sop-sec { border-top: 1px solid var(--ac-junta-suave); padding: var(--ac-e2) 0; }
.ac-web .sop-sec > summary { cursor: pointer; font-weight: 600; }
.ac-web .sop-sec pre { max-height: 420px; overflow: auto; margin: var(--ac-e2) 0 0; padding: var(--ac-e3); background: var(--ac-fondo-campo); border-radius: var(--ac-radio); font-size: var(--ac-t-nota); white-space: pre-wrap; overflow-wrap: anywhere; }
.ac-web td.sop-txt { max-width: 340px; overflow-wrap: anywhere; color: var(--ac-tiza); }
