body{font:16px system-ui,sans-serif;background:#f4f5f7;color:#1c1e21;margin:0;display:grid;place-items:center;min-height:100vh}
.card{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 1px 4px #0002;width:min(92vw,24rem)}
h1{font-size:1.3rem;margin-top:0}
label{display:block;margin:.8rem 0}
input{display:block;width:100%;box-sizing:border-box;padding:.5rem;margin-top:.25rem}
button{padding:.5rem 1rem;cursor:pointer}
.error{color:#b00020}
body.ancho{display:block;place-items:normal}
.barra{display:flex;gap:1rem;align-items:center;background:#1c2b3a;color:#fff;padding:.6rem 1rem}
.barra a{color:#cfd8e3;text-decoration:none}.barra a.activo{color:#fff;font-weight:600}
.barra .resto{margin-left:auto}.barra form{margin:0}
.contenido{max-width:68rem;margin:1rem auto;padding:0 1rem}
table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 1px 3px #0002}
th,td{text-align:left;padding:.5rem .7rem;border-bottom:1px solid #e3e5e8;vertical-align:top}
small{color:#666}
.semaforo{display:inline-block;width:.8rem;height:.8rem;border-radius:50%;margin-right:.4rem}
.semaforo.ok{background:#1a9e4b}.semaforo.caido{background:#d32f2f}.semaforo.desc{background:#9aa0a6}
.resumen{font-weight:600}.resumen.bien{color:#1a7f3c}.resumen.mal{color:#b00020}
.aviso{background:#fff4d6;padding:.6rem .8rem;border-radius:4px}
.kpis{display:flex;gap:1rem;flex-wrap:wrap;margin:.5rem 0}
.kpis div{background:#fff;padding:.6rem 1rem;box-shadow:0 1px 3px #0002;min-width:9rem}
.kpis span{display:block;font-size:1.6rem;font-weight:600}
.grafico{background:#fff;padding:.5rem;box-shadow:0 1px 3px #0002}
.svg-grafico{width:100%;height:auto}
.barra-ok{fill:#4a86c5}.barra-mal{fill:#d32f2f}.eje{font-size:10px;fill:#666}
.leyenda{font-size:.85rem;color:#555}.sw{display:inline-block;width:.7rem;height:.7rem;margin:0 .3rem 0 .6rem}
.sw.ok{background:#4a86c5}.sw.mal{background:#d32f2f}
.dos{display:grid;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));gap:1rem}
.fila-mal td{background:#fdecea}.mal{color:#b00020}
.trafico h2 small{font-weight:400;color:#666;font-size:.8rem}
.filtros{display:flex;flex-wrap:wrap;gap:.6rem;align-items:end;margin-bottom:.8rem}
.filtros label{margin:0}.filtros input,.filtros select{width:auto;display:block}
.logs{background:#111;color:#ddd;padding:.6rem;overflow:auto;max-height:70vh;font:12px/1.4 ui-monospace,monospace;white-space:pre-wrap;word-break:break-all}
.logs div{border-bottom:1px solid #222}.nivel-ERROR{color:#ff8a80}.nivel-WARNING{color:#ffd180}
.caja{background:#fff;padding:.4rem 1rem 1rem;margin:1rem 0;box-shadow:0 1px 3px #0002}
.caja label{display:block;margin:.5rem 0}.caja input[type=number],.caja input:not([type]){max-width:30rem}
.en-linea{display:inline-block;margin:0 .4rem 0 0}.ok{color:#1a7f3c;font-weight:600}
