:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0f;
  color: #e7ecf4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #090b0f;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8ea0b8;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 0.95;
}

.freshness {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #10151f;
  text-align: right;
}

.freshness.stale {
  border-color: #ef4444;
  color: #fecaca;
}

.freshness-label {
  display: block;
  color: #8ea0b8;
  font-size: 12px;
}

.freshness strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-item {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #10151f;
}

.summary-item span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.summary-item small {
  color: #8ea0b8;
  font-size: 12px;
}

.summary-item.alert span { color: #f87171; }
.summary-item.warn span { color: #fbbf24; }
.summary-item.ok span { color: #34d399; }
.summary-item.skip span { color: #94a3b8; }

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #8ea0b8;
  font-size: 12px;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #10151f;
  color: #e7ecf4;
  font: inherit;
  padding: 0 12px;
}

.hostline {
  margin-bottom: 12px;
  color: #b6c2d3;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #10151f;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #202a3a;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.row-alert .dot { background: #ef4444; }
.row-warn .dot { background: #f59e0b; }
.row-ok .dot { background: #10b981; }
.row-skip .dot { background: #94a3b8; }
.row-alert td:first-child { color: #fecaca; }
.row-warn td:first-child { color: #fde68a; }
.row-ok td:first-child { color: #bbf7d0; }
.row-skip td:first-child { color: #cbd5e1; }

.message {
  color: #8ea0b8;
  font-size: 12px;
}

.empty {
  color: #8ea0b8;
  text-align: center;
}

@media (max-width: 700px) {
  .shell {
    padding: 18px 12px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .freshness {
    text-align: left;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    grid-template-columns: 1fr;
  }
}

