:root {
  --ink: #172033;
  --muted: #657085;
  --line: #e4e8ef;
  --surface: #ffffff;
  --page: #f4f6f9;
  --primary: #2457d6;
}

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

.navbar-brand {
  color: var(--ink);
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 650;
}

.page-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.page-head h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

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

.panel,
.metric,
.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 1rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.metric {
  padding: 1rem;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: .9rem;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.15;
  margin-top: .35rem;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
}

.login-panel {
  max-width: 430px;
  padding: 2rem;
  width: 100%;
}

.empty {
  color: var(--muted);
  padding: 1rem 0;
  text-align: center;
}

.score {
  background: #eaf2ff;
  border-radius: 999px;
  color: #1346bc;
  display: inline-block;
  font-weight: 700;
  min-width: 3.6rem;
  padding: .25rem .6rem;
  text-align: center;
}

.summary-cell {
  max-width: 260px;
  white-space: normal;
}

.json-preview {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .78rem;
  margin: 0;
  max-height: 140px;
  max-width: 320px;
  overflow: auto;
  padding: .5rem;
}

.detail-json {
  max-height: 420px;
  max-width: none;
}

.text-preview {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 560px;
  overflow: auto;
  padding: .85rem;
  white-space: pre-wrap;
}

.status-select {
  min-width: 120px;
}

.task-pending {
  background: #eef1f6;
  color: #3c4658;
}

.task-running {
  background: #fff4d7;
  color: #8a5a00;
}

.task-succeeded {
  background: #e4f7ec;
  color: #106b3d;
}

.task-failed {
  background: #fde8e8;
  color: #a82020;
}

.task-paused {
  background: #ece7ff;
  color: #4c31a6;
}

@media (max-width: 768px) {
  .page-head {
    align-items: start;
    flex-direction: column;
    gap: .5rem;
  }

  .panel {
    padding: .85rem;
  }
}
