.progress-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(53, 214, 255, .14),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(13, 27, 46, .99),
      rgba(5, 15, 28, .99)
    );
  box-shadow: var(--shadow);
}

.progress-hero h2 {
  max-width: 760px;
  margin: 4px auto 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
}

.progress-hero > p {
  max-width: 760px;
  min-height: 26px;
  margin: 0 auto;
  color: #aebed1;
}

.progress-loader {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

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

.ring-one {
  inset: 2px;
  border: 3px solid rgba(47, 124, 255, .14);
  border-top-color: var(--blue);
  border-right-color: var(--cyan);
  animation: miai-spin 1.6s linear infinite;
}

.ring-two {
  inset: 17px;
  border: 3px solid rgba(53, 214, 255, .12);
  border-left-color: var(--purple);
  border-bottom-color: var(--cyan);
  animation: miai-spin-reverse 1.05s linear infinite;
}

.progress-loader-core {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 214, 255, .38);
  border-radius: 50%;
  background: rgba(53, 214, 255, .10);
  box-shadow: 0 0 26px rgba(53, 214, 255, .24);
  font-weight: 900;
}

.overall-progress-track {
  width: min(850px, 100%);
  height: 12px;
  margin: 24px auto 9px;
  overflow: hidden;
  border: 1px solid #203650;
  border-radius: 999px;
  background: #07131f;
}

.overall-progress-bar {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--cyan),
      var(--purple)
    );
  box-shadow:
    0 0 20px rgba(53, 214, 255, .42);
  transition: width .45s ease;
}

.overall-progress-labels {
  width: min(850px, 100%);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  color: var(--muted);
}

.overall-progress-labels strong {
  color: white;
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 18px;
  margin-top: 18px;
}

.stage-list {
  display: grid;
  gap: 11px;
}

.stage-row {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 21, 36, .62);
  transition: .25s ease;
}

.stage-row.is-active {
  border-color: rgba(53, 214, 255, .42);
  background: rgba(26, 67, 111, .20);
  box-shadow: inset 0 0 22px rgba(53, 214, 255, .035);
}

.stage-row.is-complete {
  border-color: rgba(39, 217, 135, .25);
}

.stage-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a9c7eb;
  background: rgba(47, 124, 255, .14);
  font-weight: 800;
}

.stage-row.is-complete .stage-number {
  color: #a4f4c5;
  background: rgba(39, 217, 135, .16);
}

.stage-copy {
  min-width: 0;
}

.stage-copy strong,
.stage-copy span {
  display: block;
}

.stage-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stage-track {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #07131f;
}

.stage-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--cyan)
    );
  transition: width .4s ease;
}

.stage-percent {
  color: #b5c7da;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.live-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-count-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 21, 36, .68);
}

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

.live-count-grid span {
  color: var(--muted);
  font-size: 11px;
}

.live-count-grid strong {
  margin-top: 5px;
  font-size: 25px;
}

.job-summary {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.job-summary > div {
  padding: 11px 12px;
  border-left: 3px solid rgba(47, 124, 255, .55);
  background: rgba(8, 21, 36, .48);
}

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

.job-summary span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.job-summary strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-feed {
  display: grid;
  gap: 5px;
  max-height: 310px;
  overflow-y: auto;
}

.event-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.event-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 214, 255, .40);
}

.event-row div {
  display: grid;
  gap: 3px;
}

.event-row small {
  color: var(--muted);
}

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

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

@media (max-width: 1000px) {
  .progress-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .progress-hero {
    padding: 24px 16px;
  }

  .stage-row {
    grid-template-columns: 36px 1fr;
  }

  .stage-percent {
    grid-column: 2;
    text-align: left;
  }
}
