html {
  font-size: 15px;
  min-height: 100%;
}

body {
  background: #f5f6f8;
  color: #1f2933;
  margin-bottom: 60px;
}

.admin-nav {
  margin-bottom: 0;
}

.footer {
  line-height: 60px;
}

.admin-dashboard {
  padding: 28px 0 36px;
}

.admin-header {
  align-items: flex-start;
  border-bottom: 1px solid #d9dee7;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 4px 0;
}

.admin-header p {
  color: #5f6b7a;
  margin: 0;
}

.eyebrow {
  color: #315c78;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill,
.code-pill,
.module-tag {
  border-radius: 6px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.status-pill {
  background: #e6f4ea;
  color: #1f6f43;
  margin-top: 4px;
}

.status-error {
  background: #fdeaea;
  color: #9b1c1c;
}

.code-pill {
  background: #eef2f6;
  color: #314256;
}

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

.metric {
  background: #ffffff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 16px;
}

.metric span {
  color: #5f6b7a;
  display: block;
  font-size: .9rem;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.7rem;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.admin-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.table {
  margin: 0;
}

.table th {
  color: #5f6b7a;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.list-stack {
  display: grid;
  gap: 8px;
}

.list-row {
  align-items: center;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.list-row span {
  color: #5f6b7a;
  display: block;
  margin-top: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-tag {
  background: #e8f0f7;
  color: #254b67;
}

.empty-state {
  color: #5f6b7a;
  padding: 8px 0;
}

@media (max-width: 900px) {
  .metrics-grid,
  .admin-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-header {
    display: block;
  }

  .metrics-grid,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .status-pill {
    margin-top: 14px;
  }
}
