:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #1f2933;
}

body {
  margin: 0;
}

.topbar {
  align-items: center;
  background: #18202b;
  color: white;
  display: flex;
  gap: 24px;
  min-height: 56px;
  padding: 0 24px;
}

.brand {
  font-weight: 700;
}

.topbar a {
  color: #dbe7ff;
  text-decoration: none;
}

.session {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.session form {
  margin: 0;
}

.session button,
.auth-form button {
  background: #2f6fed;
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

.session button {
  background: #324052;
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 24px;
}

.section h1 {
  font-size: 28px;
  margin: 0 0 24px;
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-card {
  background: white;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  padding: 18px;
}

.module-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.module-card p {
  color: #556575;
  margin: 0;
}

.subhead {
  font-size: 18px;
  margin: 28px 0 10px;
}

.data-table {
  background: white;
  border-collapse: collapse;
  border: 1px solid #d9e1ea;
  font-size: 14px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e6edf3;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef3f7;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.auth-panel {
  background: white;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  margin: 48px auto;
  max-width: 380px;
  padding: 24px;
}

.auth-panel h1 {
  font-size: 24px;
  margin: 0 0 18px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  color: #394957;
  display: grid;
  font-size: 14px;
  gap: 6px;
}

.auth-form input {
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
}

.form-error,
.empty-state {
  background: #fff5f2;
  border: 1px solid #f4c7bd;
  border-radius: 6px;
  color: #8c2f1f;
  margin: 0 0 16px;
  padding: 10px 12px;
}
