:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --blue: #1f6feb;
  --green: #16803c;
  --amber: #a45f00;
  --red: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

h1, h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

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

main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 24px;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: white;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  color: white;
  background: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.actions button {
  min-height: 32px;
  padding: 0 9px;
}

input {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

code {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  background: #f9fafb;
}

.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.panel {
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel h1 {
  margin-bottom: 24px;
}

.panel button {
  width: 100%;
  margin-top: 18px;
}

.bad {
  color: var(--red);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar strong {
  display: block;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

article {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th, td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.pill.good {
  background: var(--green);
}

.pill.warn {
  background: var(--amber);
}

.pill.bad {
  background: var(--red);
}

.empty {
  color: var(--muted);
}

@media (max-width: 720px) {
  header, .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  main {
    padding: 16px;
  }
}
