.alpha-runtime {
  padding: 34px 0 10px;
}

.alpha-console {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line2);
  border-radius: 24px;
  background:
    radial-gradient(640px 240px at 96% -15%, rgba(90,150,255,.18), transparent 64%),
    linear-gradient(145deg, rgba(18,27,52,.94), rgba(8,11,18,.97));
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.alpha-console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106,162,255,.75), transparent);
}

.alpha-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
}

.alpha-console-head h2 {
  margin: 7px 0 3px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.alpha-console-head p,
#alphaStage {
  color: var(--muted);
  font-size: 14px;
}

.alpha-state {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #dce5f4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.alpha-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7f8798;
}

.alpha-state.is-online i {
  background: #37d6a2;
  box-shadow: 0 0 10px #37d6a2;
}

.alpha-state.is-offline i,
.alpha-state.is-error i {
  background: #ff6b6b;
  box-shadow: 0 0 10px rgba(255,107,107,.85);
}

.alpha-state.is-working i,
.alpha-state.is-update i {
  background: #6aa2ff;
  box-shadow: 0 0 10px rgba(106,162,255,.9);
  animation: pulse 1.6s ease-in-out infinite;
}

.alpha-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 25px;
}

.alpha-facts > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.alpha-facts small {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
}

.alpha-facts strong {
  display: block;
  overflow: hidden;
  color: #eef4ff;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alpha-operation {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.14);
}

.alpha-operation-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.alpha-operation-row strong {
  font-size: 14px;
}

#alphaPercent {
  color: #9cc0ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.alpha-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.alpha-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f68f0, #6aa2ff);
  box-shadow: 0 0 18px rgba(90,150,255,.45);
  transition: width .35s ease;
}

#alphaStage {
  margin-top: 10px;
}

.alpha-events {
  max-height: 148px;
  margin-top: 13px;
  overflow: auto;
  list-style: none;
}

.alpha-events li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: #cfd6e4;
  font-size: 12px;
}

.alpha-events li:last-child {
  border-bottom: 0;
}

.alpha-events time {
  display: inline-block;
  min-width: 74px;
  margin-right: 8px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.alpha-error {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255,107,107,.35);
  border-radius: 13px;
  background: rgba(255,107,107,.08);
  color: #ffb4b4;
  font-size: 13px;
}

.alpha-result {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(58,210,159,.34);
  border-radius: 13px;
  background: rgba(58,210,159,.08);
  color: #baf5df;
  font-size: 13px;
}

.alpha-result.is-error {
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.08);
  color: #ffb4b4;
}

.alpha-result.is-neutral {
  border-color: rgba(106,162,255,.32);
  background: rgba(47,104,240,.08);
  color: #cfe0ff;
}

.alpha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.alpha-actions button[disabled] {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.alpha-note {
  margin-top: 13px;
  color: var(--faint);
  font-size: 11px;
}

@media (max-width: 760px) {
  .alpha-runtime {
    padding-top: 20px;
  }
  .alpha-console {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .alpha-console-head {
    display: block;
  }
  .alpha-state {
    margin-top: 14px;
  }
  .alpha-facts {
    grid-template-columns: 1fr 1fr;
  }
  .alpha-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 0;
  }
  .alpha-operation {
    padding: 15px 13px;
  }
  .alpha-events {
    max-height: 190px;
  }
  .alpha-events time {
    display: block;
    min-width: 0;
    margin: 0 0 3px;
  }
}

@media (max-width: 430px) {
  .alpha-facts {
    grid-template-columns: 1fr;
  }
}

.alpha-machine-chooser {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(106,162,255,.32);
  border-radius: 15px;
  background: rgba(47,104,240,.08);
}
.alpha-machine-chooser label {
  display: block;
  margin-bottom: 8px;
  color: #9cc0ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.alpha-machine-chooser select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line2);
  border-radius: 11px;
  background: #0d1424;
  color: #eef4ff;
  font: inherit;
  font-size: 14px;
}
