:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #172026;
  --muted: #66737c;
  --line: #d8e0e5;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Segoe UI, Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

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

.topbar p {
  margin-top: 5px;
  color: var(--muted);
}

.logout {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

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

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

.summary div,
.panel,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary div {
  padding: 16px;
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.summary strong {
  font-size: 18px;
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

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

pre {
  overflow: auto;
  max-height: 420px;
  padding: 14px;
  background: #111827;
  color: #d1fae5;
  border-radius: 6px;
}

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

.login-panel {
  width: min(360px, calc(100% - 32px));
  padding: 24px;
}

.login-panel h1 {
  margin-bottom: 20px;
}

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

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

button {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }
}
