/* AnySOC — glasmorfismo oscuro: una ventana de vidrio esmerilado sobre fondo carbón, con objetos de cromo
   detrás que se ven difuminados a través del vidrio. Paleta monocroma; el color queda para la severidad
   (los mismos rojo, amarillo y verde de los botones de la ventana). */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("fonts/poppins-light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-semibold.woff") format("woff"); }

:root {
  --bg: #111111;
  --glass: rgba(42, 42, 44, .52);
  --glass-in: rgba(255, 255, 255, .035);
  --glass-in-hi: rgba(255, 255, 255, .06);
  --edge: rgba(255, 255, 255, .09);
  --edge-hi: rgba(255, 255, 255, .16);
  --text: #ececec;
  --soft: #c9c9c9;
  --muted: #8f8f92;
  --title: #8a8584;        /* gris cálido del título grande */
  --dim: #5f5f63;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --sev-critical: #ff5f57;
  --sev-high: #febc2e;
  --sev-medium: #d9d9d9;
  --sev-low: #8e8e93;
  --sev-informational: #5f5f63;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(1400px 900px at 50% 40%, #1c1c1d 0%, var(--bg) 60%, #0b0b0b 100%); color: var(--text);
  font: 300 14px/1.55 var(--font); font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 3px; }
strong, b { font-weight: 600; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ escena: objetos de cromo */
.scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.scene svg { position: absolute; display: block; }
.scene .o-sphere-top { width: 15vw; min-width: 150px; left: 63%; top: calc(8vh - 4vw); }
.scene .o-sphere-right { width: 20vw; min-width: 190px; right: -4vw; top: 26vh; }
.scene .o-ring-left { width: 15vw; min-width: 150px; left: -6vw; top: 44vh; }
.scene .o-torus { width: 44vw; min-width: 420px; left: 44%; top: 62vh; }
.front { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.front svg { position: absolute; width: 6.5vw; min-width: 64px; right: calc(4vw - 3.2vw); top: 52vh; }

/* ------------------------------------------------------------------ ventana de vidrio */
.stage { position: relative; z-index: 1; padding: 6vh 4vw 8vh; }
.window { position: relative; max-width: 1640px; margin: 0 auto; border-radius: 44px; background: var(--glass);
  -webkit-backdrop-filter: blur(42px) saturate(115%); backdrop-filter: blur(42px) saturate(115%);
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 120px rgba(0, 0, 0, .55); }
.window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.winbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; padding: 0 30px; border-bottom: 1px solid var(--edge-hi); }
.lights { display: flex; gap: 11px; }
.lights i { width: 21px; height: 21px; border-radius: 50%; box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .55), 0 2px 4px rgba(0, 0, 0, .5); }
.lights .r { background: radial-gradient(circle at 35% 30%, #ff8a84, #e0221a 60%, #9a0f0a); }
.lights .y { background: radial-gradient(circle at 35% 30%, #ffe184, #f2b10f 60%, #a26f00); }
.lights .g { background: radial-gradient(circle at 35% 30%, #8df08f, #19b72e 60%, #0a7419); }
.url { color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.winstat { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; }
.winstat .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); margin-right: 7px; vertical-align: 1px; }
.winstat .live.warn::before { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.winstat .live.down::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.winbody { position: relative; z-index: 1; padding: 54px 7% 64px; }

/* héroe: título grande gris, palabra fina, etiquetas con borde, navegación en mayúsculas finas */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nav nav" "title title" "thin thin" "foot icons"; column-gap: 40px; margin-bottom: 56px; }
.hero h1 { grid-area: title; margin: 0; font-weight: 600; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.12; color: var(--title); letter-spacing: -.005em; }
.hero .thin { grid-area: thin; margin: 34px 0 0; font-weight: 300; font-size: clamp(40px, 4.2vw, 66px); line-height: 1.1; color: #e6e6e6; letter-spacing: -.01em; }
/* menú siempre en UNA sola fila (en pantallas chicas se desliza de lado) */
.topnav { grid-area: nav; display: flex; flex-wrap: nowrap; gap: clamp(20px, 2.1vw, 40px); align-items: center; justify-content: flex-end;
  padding: 10px 0 4px; margin-bottom: 22px; white-space: nowrap; min-width: 0; }
.topnav a { position: relative; flex: 0 0 auto; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; font-size: clamp(12px, 1vw, 14px); color: #d4d4d4; }
.topnav a:hover { color: #fff; }
.topnav a[aria-current=page] { color: var(--dim); }
.topnav a.exit { color: #fff; }
.topnav sup { position: absolute; top: -10px; right: -13px; font: 600 10px var(--font); color: var(--red); }
.hero-foot { grid-area: foot; margin-top: 64px; }
.tags { display: flex; gap: 12px; margin-bottom: 14px; }
.tags span { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border: 2px solid rgba(255, 255, 255, .78); border-radius: 5px;
  font: 400 14px/1 var(--font); letter-spacing: .12em; color: #f0f0f0; }
.tags span.dim { border-color: rgba(255, 255, 255, .45); color: #bdbdbd; }
.caption { margin: 0; font-size: 22px; line-height: 1.32; color: #cfcfcf; font-weight: 300; }
.caption b { color: #f2f2f2; }
.hero-icons { grid-area: icons; align-self: end; display: flex; gap: 22px; align-items: center; color: #f0f0f0; }
.hero-icons a, .hero-icons button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; position: relative; display: inline-flex; }
.hero-icons svg.ic { width: 21px; height: 21px; }
.hero-icons .num { position: absolute; top: -9px; right: -12px; font: 600 10px var(--font); color: var(--red); }
.hsearch { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--edge-hi); padding: 4px 2px; color: var(--muted); }
.hsearch input[type=search] { background: transparent; border: 0; border-radius: 0; width: 160px; padding: 2px 0; color: var(--text); }
.hsearch input:focus { outline: none; }
.hsearch:focus-within { border-color: rgba(255, 255, 255, .6); }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: #d9d9d9; }

/* ------------------------------------------------------------------ paneles de vidrio interiores */
.panel { position: relative; min-width: 0; padding: 22px 24px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.panel h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 400; color: #f0f0f0; letter-spacing: .01em; }
.panel h2 svg { color: var(--soft); }
.panel .sub { color: var(--muted); font-size: 12.5px; margin: 3px 0 0; }
.panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; letter-spacing: .04em;
  border: 1.5px solid rgba(255, 255, 255, .35); color: #d6d6d6; text-transform: uppercase; }
.pill.red { border-color: rgba(255, 95, 87, .7); color: #ff8b85; }
.pill.green { border-color: rgba(40, 200, 64, .6); color: #6fe082; }
.pill.cyan { border-color: rgba(255, 255, 255, .6); color: #f2f2f2; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04);
  border-radius: 10px; padding: 8px 15px; cursor: pointer; white-space: nowrap; font-weight: 400; transition: background .15s, border-color .15s; }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }
.btn.primary { background: rgba(255, 255, 255, .9); border-color: transparent; color: #161616; font-weight: 600; }
.btn.primary:hover { background: #fff; }
.btn.danger { border-color: rgba(255, 95, 87, .6); color: #ff8b85; background: transparent; }
.btn[disabled] { opacity: .4; cursor: default; }
input[type=text], input[type=password], input[type=search], select, textarea { width: 100%; background: rgba(0, 0, 0, .22); border: 1px solid var(--edge-hi);
  border-radius: 10px; padding: 10px 12px; }
select option { background: #222; }
textarea { min-height: 76px; resize: vertical; }
.error { color: #ff8b85; min-height: 1.5em; margin: 8px 0 0; font-size: 13.5px; }
.empty { color: var(--muted); padding: 26px 4px; text-align: center; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { display: flex; gap: 16px; align-items: center; padding: 20px; }
.kpi .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #f0f0f0;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); border: 1px solid var(--edge-hi); }
.kpi .ico svg { width: 20px; height: 20px; }
.kpi.red .ico { color: var(--red); border-color: rgba(255, 95, 87, .45); }
.kpi.green .ico { color: #7fe38f; }
.kpi b { display: block; font-weight: 600; font-size: 30px; line-height: 1.1; color: #f4f4f4; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.g-main { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(290px, 1fr); gap: 18px; margin-bottom: 18px; }
.g-side { display: grid; gap: 18px; align-content: start; }
.g-3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel.mapp { display: flex; flex-direction: column; }
.panel.mapp .map { flex: 1; display: flex; align-items: center; }

/* mapa monocromo: tierra de vidrio, ataques en rojo */
.map { position: relative; border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .18); border: 1px solid var(--edge); }
.map svg { display: block; width: 100%; height: auto; }
.map .land { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .1); stroke-width: .6; }
.map .land.hit { fill: rgba(255, 95, 87, .13); stroke: rgba(255, 95, 87, .32); }
.map .grid { stroke: rgba(255, 255, 255, .045); stroke-width: .6; }
.map .arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.2; stroke-linecap: round; opacity: .8; stroke-dasharray: 4 7; animation: flow 1.8s linear infinite; }
.map .arc.ok { stroke: var(--red); stroke-width: 1.8; opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.map .src { fill: var(--red); filter: url(#glow); }
.map .src-ring { fill: none; stroke: var(--red); stroke-width: 1; opacity: .55; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; }
.map .tgt { fill: #fff; filter: url(#glow); }
.map .tgt-ring { fill: none; stroke: #fff; stroke-width: 1.1; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map .lbl { font: 400 10px var(--font); fill: #d6d6d6; paint-order: stroke; stroke: rgba(20, 20, 20, .85); stroke-width: 3px; letter-spacing: .02em; }
.map .lbl.tgt-l { fill: #fff; font-weight: 600; }
.map .shot { fill: #fff; filter: url(#glow); }
.map .overlay { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); text-align: center; padding: 20px; pointer-events: none; }
.map .overlay div { background: rgba(30, 30, 32, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--edge-hi);
  border-radius: 14px; padding: 12px 18px; max-width: 440px; }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 20px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.rank li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.rank .n { color: var(--dim); font-size: 12px; }
.cc { display: inline-grid; place-items: center; width: 32px; height: 22px; border-radius: 5px; font: 600 10.5px var(--font); letter-spacing: .06em;
  color: #e8e8e8; border: 1.5px solid rgba(255, 255, 255, .35); }
.rank .v { font-weight: 600; color: #f4f4f4; }
.rank .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e0e0e0; }
.rank .bar { height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .08)); margin-top: 5px; }

.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, .07); }
.chart .ax { fill: var(--muted); font: 400 10.5px var(--font); }
.chart .line { fill: none; stroke: #f5f5f5; stroke-width: 2; filter: url(#glowC); }
.chart .area { fill: url(#areaGrad); }
.chart .pt { fill: var(--red); filter: url(#glowC); }
.chart .bar { fill: url(#barGrad); }
.chart .bar:hover { fill: #fff; }
.chart .val { fill: #e8e8e8; font: 600 10.5px var(--font); }
.donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut svg { width: 150px; height: 150px; }
.donut .mid { font: 600 28px var(--font); fill: #f2f2f2; }
.donut .mid2 { font: 300 11px var(--font); fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #dadada; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend b { margin-left: auto; }

.feed { list-style: none; margin: 0; padding: 0; max-height: 350px; overflow: auto; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid rgba(255, 255, 255, .05); cursor: pointer; }
.feed li:first-child { border-top: 0; }
.feed li:hover { background: rgba(255, 255, 255, .03); }
.feed .t { font-size: 11.5px; color: var(--dim); }
.feed .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #dedede; }
.feed .w .ip { font-family: var(--mono); font-size: 12.5px; }
.k { font: 400 11px var(--font); padding: 1px 8px; border-radius: 5px; border: 1px solid; letter-spacing: .03em; white-space: nowrap; }
.k.fail { color: #cfcfcf; border-color: rgba(255, 255, 255, .25); }
.k.ok { color: #ff8b85; border-color: rgba(255, 95, 87, .6); }
.k.other { color: var(--muted); border-color: rgba(255, 255, 255, .15); }
.fresh { animation: arrive 2.6s ease-out 1; }
@keyframes arrive { from { background: rgba(255, 255, 255, .12); } to { background: transparent; } }

.sev-critical { background: var(--sev-critical); box-shadow: 0 0 10px rgba(255, 95, 87, .6); } .c-critical { color: #ff8b85; }
.sev-high { background: var(--sev-high); }         .c-high { color: var(--sev-high); }
.sev-medium { background: var(--sev-medium); }     .c-medium { color: var(--sev-medium); }
.sev-low { background: var(--sev-low); }           .c-low { color: #b0b0b5; }
.sev-informational { background: var(--sev-informational); } .c-informational { color: var(--muted); }
.c-ok { color: #6fe082; }
.sevtag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font: 600 11px var(--font); letter-spacing: .06em;
  text-transform: uppercase; color: #141414; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; color: #cfcfcf; border: 1.5px solid rgba(255, 255, 255, .28); }
.tag.sim { color: #f0f0f0; border-style: dashed; }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 13px 12px;
  background: none; border: 0; text-align: left; cursor: pointer; border-radius: 10px; }
.arow:hover, .arow[aria-current=true] { background: rgba(255, 255, 255, .04); }
.arow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: #ededed; }
.arow .m { color: var(--muted); font-size: 12px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.arow .when { color: var(--dim); font-size: 11.5px; text-align: right; }
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 180px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.detail h2.big { display: block; font-size: 22px; font-weight: 400; margin: 14px 0 2px; line-height: 1.3; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 13.5px; margin: 16px 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: #e4e4e4; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.mitre { display: grid; gap: 8px; margin: 12px 0; }
.mitre > div { border: 1px solid var(--edge-hi); background: rgba(255, 255, 255, .03); border-radius: 12px; padding: 9px 12px; }
.mitre strong { color: #fff; letter-spacing: .03em; }
h3 { font-size: 14px; font-weight: 400; margin: 20px 0 8px; color: #e8e8e8; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 9px 8px;
  border-bottom: 1px solid var(--edge-hi); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: top; color: #e2e2e2; }
td.num, th.num { text-align: right; }
td.mono { white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255, 255, 255, .03); }
.ipbtn { background: none; border: 0; padding: 0; color: #f0f0f0; font-family: var(--mono); font-size: 12.5px; cursor: pointer; text-decoration: underline dotted var(--dim); }
.ipbtn:hover { color: #fff; text-decoration-color: #fff; }
pre.raw { background: rgba(0, 0, 0, .3); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; overflow: auto; max-height: 320px;
  font: 12px/1.45 var(--mono); white-space: pre-wrap; word-break: break-all; color: #c9c9c9; }
.more { margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { width: 36px; height: 20px; appearance: none; border-radius: 10px; background: rgba(255, 255, 255, .12); position: relative; cursor: pointer; margin: 0; border: 1px solid var(--edge-hi); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #9a9a9a; transition: transform .15s; }
.switch input:checked { background: rgba(40, 200, 64, .3); }
.switch input:checked::after { transform: translateX(16px); background: #e9ffe9; }

dialog { background: rgba(40, 40, 42, .78); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); color: var(--text); border: 1px solid var(--edge-hi);
  border-radius: 26px; width: min(780px, 94vw); padding: 26px; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog h2 { margin-top: 0; font-weight: 400; }

#toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast { background: rgba(44, 44, 46, .72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--edge-hi);
  border-radius: 16px; padding: 12px 16px; max-width: 390px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); cursor: pointer; position: relative; }
.toast small { display: block; color: var(--muted); }

/* login dentro de la misma ventana */
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 60px; align-items: end; }
.login-card { padding: 28px; }
.login-card label { display: block; margin-bottom: 16px; }
.login-card label span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.login-card .btn.primary { width: 100%; justify-content: center; padding: 11px; margin-top: 6px; }

/* ------------------------------------------------------------------ adaptable */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .stage { padding: 14px 10px 28px; }
  .window { border-radius: 28px; }
  .winbar { height: 58px; padding: 0 18px; grid-template-columns: auto 1fr; }
  .url { display: none; }
  .lights i { width: 15px; height: 15px; }
  .winbody { padding: 28px 18px 36px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "nav" "title" "thin" "foot" "icons"; margin-bottom: 30px; }
  .topnav { justify-content: flex-start; gap: 22px; margin-bottom: 24px; overflow-x: auto; padding: 12px 18px 8px 0; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { font-size: 12.5px; }
  .hero .thin { margin-top: 16px; }
  .hero-foot { margin-top: 28px; }
  .hero-icons { margin-top: 22px; flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .g-main, .g-3, .split, .login-grid { grid-template-columns: 1fr; }
  .donut { grid-template-columns: 120px 1fr; }
  .donut svg { width: 120px; height: 120px; }
  .front { display: none; }
  .winstat .toggle, .winstat .who { display: none; }
  .kpi { padding: 14px; gap: 12px; }
  .kpi .ico { width: 38px; height: 38px; }
  .kpi b { font-size: 24px; }
  .arow { grid-template-columns: minmax(0, 1fr); }
  .arow .when { display: none; }
}
@media (prefers-reduced-motion: reduce) { .map .arc, .map .src-ring, .map .tgt-ring, .fresh { animation: none; } }

/* incidentes */
.fieldlbl { display: block; margin: 0 0 14px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fieldlbl input, .fieldlbl textarea, .fieldlbl select { margin-top: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.meta dd select { width: auto; min-width: 200px; padding: 6px 10px; }
td select { width: auto; padding: 5px 9px; font-size: 12.5px; }
.notebox { margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 1px; background: var(--edge-hi); }
.timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 8px 0; position: relative; }
.tl-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 40, 42, .95);
  border: 1px solid var(--edge-hi); color: var(--soft); z-index: 1; }
.tl-ico svg.ic { width: 14px; height: 14px; }
.tl-action .tl-ico { color: var(--red); border-color: rgba(255, 95, 87, .5); }
.tl-status .tl-ico, .tl-created .tl-ico { color: #fff; }
.tl-body { color: #e6e6e6; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-meta { color: var(--dim); font-size: 11.5px; margin-top: 2px; }

/* modo demostración (rol viewer) */
.demo-pill { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--edge-hi); color: var(--soft); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; background: var(--glass-in-hi); }

/* teléfono */
@media (max-width: 560px) {
  .stage { padding: 8px 6px 20px; }
  .window { border-radius: 22px; }
  .winbar { height: 50px; padding: 0 14px; }
  .lights i { width: 12px; height: 12px; }
  .winstat { gap: 10px; font-size: 11.5px; }
  .winstat #clock { display: none; }
  .winbody { padding: 20px 12px 28px; }
  .hero h1 { font-size: 34px; }
  .topnav { gap: 18px; margin-bottom: 18px; }
  .topnav a { font-size: 11.5px; letter-spacing: .1em; }
  .hero-foot { margin-top: 20px; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px; gap: 10px; }
  .kpi .ico { width: 32px; height: 32px; }
  .kpi b { font-size: 20px; }
  .kpi span { font-size: 11.5px; }
  .panel { padding: 16px 14px; border-radius: 20px; }
  .panel table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .filters { flex-wrap: wrap; }
  .filters select, .filters input { flex: 1 1 140px; min-width: 0; }
  .scene { opacity: .55; }
  dialog { width: calc(100vw - 20px); max-width: none; padding: 18px; }
  .meta { grid-template-columns: 1fr; }
  .meta dt { margin-top: 8px; }
  #toasts { left: 10px; right: 10px; bottom: 12px; }
  .toast { max-width: none; }
}

/* lista negra */
.g-bl { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .g-bl { grid-template-columns: 1fr; } }
.pill .ic { width: 14px; height: 14px; }
td .pills { flex-wrap: nowrap; }
td .pill { white-space: nowrap; }

/* respuesta en cada ataque: Bloquear / Desbloquear */
.btn.sm { padding: 5px 10px; font-size: 12px; gap: 6px; border-radius: 8px; white-space: nowrap; }
.btn.sm .ic { width: 14px; height: 14px; }
.btn.ico { padding: 5px; width: 28px; height: 28px; justify-content: center; }
.btn.unblock { border-color: rgba(255, 95, 87, .75); background: rgba(255, 95, 87, .14); color: #ff8b85; }
.btn.unblock:hover { background: rgba(255, 95, 87, .24); }
.btn.danger.sm:hover { background: rgba(255, 95, 87, .12); }
.rowacts { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
