:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #637083;
  --line: #d8dee7;
  --ok: #147d4f;
  --warning: #9a6400;
  --critical: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.page-header p,
.refresh,
.empty {
  color: var(--muted);
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td:last-child {
  white-space: normal;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.badge.ok {
  background: #e7f6ef;
  color: var(--ok);
}

.badge.warning {
  background: #fff4d8;
  color: var(--warning);
}

.badge.critical {
  background: #fde8e5;
  color: var(--critical);
}

@media (max-width: 720px) {
  .page-header {
    display: block;
  }

  .refresh {
    display: block;
    margin-top: 8px;
  }
}

