.discovery-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(47, 124, 255, .18),
      transparent 35%
    ),
    rgba(2, 7, 15, .92);
  backdrop-filter: blur(12px);
  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.discovery-loading-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.discovery-is-running {
  overflow: hidden;
}

.discovery-loading-card {
  width: min(720px, 100%);
  padding: 34px;
  text-align: center;
  border: 1px solid #1f3854;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(53, 214, 255, .11),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(13, 27, 46, .99),
      rgba(5, 15, 28, .99)
    );
  box-shadow:
    0 35px 100px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 255, 255, .025);
}

.discovery-loading-card h2 {
  max-width: 590px;
  margin: 4px auto 12px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.discovery-loading-card > p {
  margin: 0 auto;
  color: #aebed1;
  line-height: 1.65;
}

.miai-loader {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
}

.loader-ring-one {
  inset: 4px;
  border: 3px solid rgba(47, 124, 255, .16);
  border-top-color: #2f7cff;
  border-right-color: #35d6ff;
  animation: miai-spin 1.7s linear infinite;
}

.loader-ring-two {
  inset: 18px;
  border: 3px solid rgba(53, 214, 255, .13);
  border-bottom-color: #35d6ff;
  border-left-color: #9b6cff;
  animation: miai-spin-reverse 1.15s linear infinite;
}

.loader-core {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 214, 255, .36);
  border-radius: 50%;
  color: #eafdff;
  background:
    radial-gradient(
      circle,
      rgba(53, 214, 255, .24),
      rgba(47, 124, 255, .08)
    );
  box-shadow:
    0 0 28px rgba(53, 214, 255, .25);
  font-size: 20px;
  font-weight: 900;
}

.discovery-progress-track {
  width: min(500px, 100%);
  height: 7px;
  margin: 26px auto 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #081421;
  border: 1px solid #203650;
}

.discovery-progress-bar {
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #2f7cff,
      #35d6ff,
      #9b6cff
    );
  box-shadow:
    0 0 18px rgba(53, 214, 255, .45);
  animation: miai-progress 2.2s ease-in-out infinite;
}

.discovery-timer {
  color: #8fa3bb;
  font-size: 14px;
}

.discovery-timer strong {
  margin-left: 5px;
  color: #f7fbff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.discovery-request-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  text-align: left;
}

.discovery-request-summary > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #1c314b;
  border-radius: 9px;
  background: rgba(8, 22, 38, .72);
}

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

.discovery-request-summary span {
  margin-bottom: 5px;
  color: #71859d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.discovery-request-summary strong {
  overflow: hidden;
  color: #e8f1fb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-wait-note {
  margin-top: 22px !important;
  color: #71859d !important;
  font-size: 12px;
}

#discovery-loading-message {
  min-height: 27px;
  transition:
    opacity .18s ease,
    transform .18s ease;
}

#discovery-loading-message.message-changing {
  opacity: 0;
  transform: translateY(4px);
}

#start-discovery-button:disabled {
  cursor: wait;
  opacity: .72;
}

@keyframes miai-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes miai-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes miai-progress {
  0% {
    transform: translateX(-115%);
  }

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

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

@media (max-width: 620px) {
  .discovery-loading-card {
    padding: 26px 18px;
  }

  .discovery-request-summary {
    grid-template-columns: 1fr;
  }

  .miai-loader {
    width: 92px;
    height: 92px;
  }
}
