:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf6f8;
  color: #172333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(62, 177, 170, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 74, 139, 0.13), transparent 32%),
    #f5fbfc;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f5fbfc;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-panel {
  width: min(440px, 100%);
  border: 1px solid rgba(132, 164, 174, 0.32);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(31, 55, 75, 0.16);
}

.loading-panel h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.loading-panel p {
  margin: 0 0 18px;
  color: #5f7283;
  line-height: 1.45;
}

.loading-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2eef1;
}

.loading-bar span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: #2f6f73;
  animation: loading-pulse 1.15s ease-in-out infinite;
  transition: width 180ms ease;
}

.loading-screen.done .loading-bar span {
  animation: none;
}

@keyframes loading-pulse {
  0% {
    transform: translateX(-80%);
  }

  50% {
    transform: translateX(150%);
  }

  100% {
    transform: translateX(430%);
  }
}

.loading-panel strong {
  display: block;
  margin: 10px 0 8px;
  color: #172333;
}

.loading-panel small {
  display: block;
  color: #65788a;
  line-height: 1.45;
}

.loading-bilingual {
  margin-top: 8px;
}

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

.check-card {
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(132, 164, 174, 0.32);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(31, 55, 75, 0.16);
}

.check-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.02;
}

h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.check-subtitle {
  margin: 7px 0 0;
  color: #5f7283;
  line-height: 1.42;
}

.facts,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.facts div,
.summary-grid div,
.check-row,
.details-box {
  border: 1px solid rgba(132, 164, 174, 0.28);
  border-radius: 12px;
  background: #fbfdfe;
}

.facts div {
  padding: 12px;
}

.facts .wide {
  grid-column: 1 / -1;
}

dt {
  font-size: 12px;
  color: #627384;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.summary-grid div {
  padding: 14px;
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid strong {
  font-size: 24px;
}

.summary-grid span {
  color: #627384;
  font-weight: 800;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.check-actions button,
.check-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #2f6f73;
  border-radius: 10px;
  padding: 0 13px;
  background: #2f6f73;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.check-actions a {
  background: #fff;
  color: #2f6f73;
}

.check-section + .check-section {
  margin-top: 22px;
}

.checks {
  display: grid;
  gap: 8px;
}

.check-group {
  margin-top: 12px;
  padding: 8px 2px 2px;
  color: #536675;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 14px;
}

.check-row span,
.check-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-row small {
  display: block;
  margin-top: 4px;
  color: #65788a;
  line-height: 1.35;
}

.check-row strong {
  white-space: nowrap;
}

.ok strong {
  color: #138a58;
}

.fail strong {
  color: #c0394d;
}

.warn strong {
  color: #9a6a00;
}

.pending strong {
  color: #697887;
}

.details-box {
  min-height: 220px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #243746;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .check-shell {
    padding: 12px;
    align-items: stretch;
  }

  .check-card {
    border-radius: 0;
    min-height: calc(100vh - 24px);
    padding: 22px;
  }

  .check-header {
    align-items: flex-start;
  }

  .facts,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
