:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18202a;
  background: #f3f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(100%, 560px);
  background: #ffffff;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 35px rgba(24, 32, 42, 0.08);
}

.heading p {
  margin: 0 0 8px;
  color: #527086;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #c9d5dd;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

button,
.download,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button,
.download {
  color: #fff;
  background: #146c94;
}

.secondary {
  margin-left: 8px;
  color: #146c94;
  background: #e8f3f7;
}

.logout {
  margin-top: 16px;
}

.logout button {
  color: #526170;
  background: #edf2f5;
}

.alert {
  margin-bottom: 16px;
  border-radius: 6px;
  padding: 12px;
  color: #842029;
  background: #f8d7da;
}

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

.stats div {
  border: 1px solid #dce4ea;
  border-radius: 6px;
  padding: 14px;
}

dt {
  color: #527086;
  font-size: 13px;
}

dd {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.failures {
  margin-top: 24px;
  border-top: 1px solid #dce4ea;
  padding-top: 16px;
}

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

.failures li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f5;
  overflow-wrap: anywhere;
}

.failures small {
  color: #6d7d8b;
}

@media (max-width: 560px) {
  .panel {
    padding: 22px;
  }

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

  .secondary {
    margin: 10px 0 0;
    width: 100%;
  }

  .download {
    width: 100%;
  }
}
