:root{
  --bg:#0b0e14;
  --panel:#111626;
  --text:#e8ebf3;
  --muted:#a9b0c3;
  --line:rgba(255,255,255,.12);
  --accent:rgba(255,255,255,.08);
  --radius:14px;
  --row-h:44px;
  --head-h:52px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(120,140,255,.18), transparent 60%),
              radial-gradient(1000px 500px at 90% 10%, rgba(0,200,255,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

.container{
  max-width:1300px;
  margin:0 auto;
  padding:20px 20px 40px 20px;
}

.header{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
  max-width:1300px;
  margin:0 auto;
  padding:22px 20px 8px 20px;
  margin-bottom:18px;
}
h1{margin:0;font-size:28px;letter-spacing:.2px}
.sub{margin-top:6px;color:var(--muted);font-size:13px}

.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:180px;
  color:var(--muted);
  font-size:12px;
}
.field select,
.field input{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}
.btn{
  align-self:flex-end;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.12)}
.btn:active{transform:translateY(1px)}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-bottom:18px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:14px;
}
.card .k{font-size:12px;color:var(--muted)}
.card .v{font-size:26px;font-weight:700;margin:6px 0}
.card .s{font-size:12px;color:var(--muted)}

.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
h2{margin:0;font-size:16px}
.hint{margin:6px 0 14px 0;color:var(--muted);font-size:12px}

.table-wrap{
  margin-top:12px;
  width:100%;
  overflow-x:auto;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:10px;
  max-height:420px;
}
.table-wrap--sm{max-height:calc(var(--head-h) + var(--row-h) * 10);}
.table-wrap--lg{max-height:calc(var(--head-h) + var(--row-h) * 30);}

table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  font-size:13px;
}
thead th{
  position:sticky;top:0;
  background:rgba(15,20,34,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
  text-align:left;
  padding:10px 12px;
  color:var(--muted);
  font-weight:600;
  white-space:nowrap;
}
tbody td{
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  white-space:nowrap;
  height:var(--row-h);
}
tbody tr{height:var(--row-h);}
tbody tr:hover{background:rgba(255,255,255,.03)}

/* spacing between panels */
.panel + .panel{margin-top:18px;}

.footer{
  max-width:1300px;
  margin:24px auto;
  padding:0 20px 40px 20px;
  color:var(--muted);
  font-size:12px;
}
.muted{color:var(--muted)}

.badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:2px 8px;border-radius:999px;font-size:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.badge.ok{border-color:rgba(0,255,170,.25);background:rgba(0,255,170,.08)}
.badge.ko,.badge.no{border-color:rgba(255,90,90,.25);background:rgba(255,90,90,.08)}

/* alerts */
.alerts{
  display:none;
  max-width:1300px;
  margin:0 auto 14px auto;
  padding:0 20px;
}
.alert{
  padding:12px 14px;
  border:1px solid var(--accent);
  border-left:4px solid #5cc1ff;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.alert + .alert{margin-top:8px;}

@media (max-width: 700px){
  .field{min-width:140px}
  table{min-width:620px;}
}

@media (max-width: 600px){
  .container{padding:16px 12px 28px 12px;}
  .header{padding:18px 12px 6px 12px;flex-direction:column;align-items:flex-start;}
  h1{font-size:22px;}
  .filters{flex-direction:column;width:100%;}
  .field{width:100%;}
  .btn{width:100%;}
  .cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;}
  .card .v{font-size:22px;}
  .panel{padding:14px;}
  :root{--row-h:40px;--head-h:48px;}
  .table-wrap{max-height:300px;}
  .table-wrap--sm{max-height:calc(var(--head-h) + var(--row-h) * 10);}
  .table-wrap--lg{max-height:calc(var(--head-h) + var(--row-h) * 30);}
  table{min-width:520px;font-size:12px;}
  thead th, tbody td{padding:8px 10px;}
}

@media (max-width: 480px){
  :root{--row-h:38px;--head-h:44px;}
  table{min-width:420px;}
  .table-wrap{max-height:240px;}
  .table-wrap--sm{max-height:calc(var(--head-h) + var(--row-h) * 10);}
  .table-wrap--lg{max-height:calc(var(--head-h) + var(--row-h) * 30);}
}
