:root {
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --border: #e2e8f0; /* slate-200 */
  --accent: #0ea5e9; /* sky-500 */
  --accent-600: #0284c7;
  --warn: #ca8a04; /* yellow-600 */
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

header {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 0;
}
.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
}
.brand h1 {
  font-size: 1.125rem;
  margin: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1rem;
}
nav a:hover { color: var(--accent-600); }

main h2 { margin-top: 1.25rem; }
p.lead { color: var(--muted); max-width: 70ch; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
thead th {
  text-align: left;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: .75rem .75rem;
  white-space: nowrap;
}
tbody td {
  padding: .75rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:hover { background: #f8fafc; }
.num { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); font-size: .875rem; }
.badge {
  display: inline-block;
  padding: .125rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  color: var(--muted);
  background: #f8fafc;
}
.note { border-left: 3px solid var(--warn); padding: .5rem .75rem; background: #fffbeb; }

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .875rem;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-600); }

/* Mobile tweaks */
@media (max-width: 640px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tbody tr { border-bottom: 1px solid var(--border); }
  tbody td { display: flex; justify-content: space-between; gap: 1rem; }
  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
  }
  .num { text-align: left; }
}
