:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #0f6fff;
  --accent-strong: #0b5ad6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

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

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--muted);
}

.subhead {
  margin: 0;
  color: var(--muted);
}

.controls button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 111, 255, 0.15);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.controls button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 111, 255, 0.22);
}

main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.status.error {
  background: #fee2e2;
  color: #b91c1c;
}

.hidden {
  display: none;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

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

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

th {
  background: #f6f7fb;
  font-size: 14px;
  color: #111827;
}

tbody tr:hover {
  background: #f9fafb;
}

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

a:hover {
  text-decoration: underline;
}

.summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

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

@media (max-width: 720px) {
  body {
    padding: 18px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 26px;
  }

  th, td {
    padding: 10px 8px;
  }
}
