*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  background: #1a1a2e;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-decoration: none;
  margin-right: auto;
}

nav a {
  color: #a0aec0;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav a:hover, nav a.active {
  color: #fff;
  border-bottom-color: #4f8ef7;
}

/* ── Page ── */
main {
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: #1a1a2e; }
h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: #2d3748; }

/* ── Stat cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.card .label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #718096;
  margin-bottom: .5rem;
}

.card .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}

/* ── Table panel ── */
.panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 { margin: 0; }

.badge {
  background: #ebf4ff;
  color: #3182ce;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 99px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

th {
  background: #f7fafc;
  text-align: left;
  padding: .75rem 1.5rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #718096;
  border-bottom: 1px solid #edf2f7;
}

td {
  padding: .75rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f7fafc; }

.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: .8rem; }

.pill {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
}
.pill-blue   { background: #ebf8ff; color: #2b6cb0; }
.pill-green  { background: #f0fff4; color: #276749; }
.pill-red    { background: #fff5f5; color: #c53030; }
.pill-yellow { background: #fffff0; color: #744210; }
.pill-gray   { background: #f7fafc; color: #4a5568; }

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #a0aec0;
  font-size: .9rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1rem;
  font-size: .75rem;
  color: #a0aec0;
}
