.install-page {
  height: 100vh;
  overflow: hidden;
}

.install-page .container {
  height: 100vh;
  padding: 16px;
}

.install-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 32px);
  overflow: hidden;
}

.wizard-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 12px;
}

.wizard-card-container {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wizard-step-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wizard-step-card .ant-card-head {
  flex: 0 0 auto;
}

.wizard-step-card .ant-card-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  display: flex;
  overflow: hidden;
}

.wizard-step-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.wizard-step-content {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.wizard-step-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
}

.env-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.env-check-item {
  border: 1px solid #e7edf7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.env-check-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.env-check-label {
  font-size: 14px;
  font-weight: 600;
  color: #253041;
}

.env-check-status {
  font-size: 13px;
}

.env-check-detail {
  margin-top: 5px;
  font-size: 12px;
  color: #55657a;
  line-height: 1.5;
}

.env-check-item.pass {
  border-color: #b7eb8f;
  background: #f6ffed;
}

.env-check-item.pass .env-check-status {
  color: #389e0d;
}

.env-check-item.fail {
  border-color: #ffccc7;
  background: #fff2f0;
}

.env-check-item.fail .env-check-status {
  color: #cf1322;
}

.env-check-item.pending {
  border-color: #d9e2ec;
  background: #f8fbff;
}

.env-check-item.pending .env-check-status {
  color: #8c8c8c;
}

.intro {
  margin: 0;
  color: #4a5568;
}

.step-bar {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.step-bar li {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  text-align: center;
  background: #f8fbff;
  color: #3d4b5a;
}

.step-bar li.active {
  border-color: #2f7aed;
  background: #2f7aed;
  color: #fff;
}

.step-panel {
  display: none;
  border: 1px solid #ecf1f8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.step-panel.active {
  display: block;
}

.step-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.input {
  width: 100%;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  height: 38px;
  padding: 0 10px;
  background: #fff;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 1px solid #2f7aed;
  border-radius: 6px;
  background: #2f7aed;
  color: #fff;
  height: 36px;
  line-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-box {
  margin: 10px 0 0;
  border-radius: 8px;
  background: #0d1b2a;
  color: #d6e3f3;
  padding: 10px;
  min-height: 76px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

.password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tiny-btn {
  border: 1px solid #c3d2e6;
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  cursor: pointer;
}

.strength-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.strength-track {
  height: 10px;
  border-radius: 999px;
  background: #ecf1f8;
  overflow: hidden;
}

.strength-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #f4a11a;
  transition: width 0.2s ease;
}

.progress-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.progress-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(#2f7aed 0deg, #e8eef6 0deg);
  display: grid;
  place-items: center;
  position: relative;
}

.progress-ring::before {
  content: "";
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
}

.progress-ring span {
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  color: #2f7aed;
}

@media (max-width: 900px) {
  .install-page .container {
    padding: 12px;
  }

  .install-shell {
    height: calc(100vh - 24px);
  }

  .wizard-step-card .ant-card-body {
    padding: 10px 12px;
  }

  .step-bar {
    grid-template-columns: 1fr;
  }

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

  .progress-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .wizard-step-footer {
    gap: 6px;
  }
}
