:root {
  --ink: #1f2933;
  --muted: #65758b;
  --line: #d9e0e8;
  --surface: #f7f9fb;
  --brand: #235f87;
  --brand-dark: #174766;
}

body {
  background: var(--surface);
  color: var(--ink);
}

a {
  color: var(--brand);
}

.container-fluid {
  max-width: 1240px;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.login-panel,
.panel,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel {
  max-width: 420px;
  padding: 32px;
  width: 100%;
}

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

.page-heading h1,
.login-panel h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

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

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 6px;
}

.panel {
  padding: 20px;
}

.narrow-panel {
  max-width: 760px;
}

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

.panel-header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
}

.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.record-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.record-list span,
.metadata dt {
  color: var(--muted);
}

.metadata {
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
  margin: 0;
}

.note {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.note p {
  margin: 6px 0 0;
}

.form-error {
  color: #b42318;
  font-size: 0.875rem;
  margin-top: 4px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

@media (max-width: 800px) {
  .page-heading,
  .record-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
