.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 22px 72px;
}
.hero {
  margin-bottom: 12px;
  padding: 18px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 6px;
  font-size: 13px;
}
h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
}

.module {
  padding: 18px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.status-meta {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.meta-row .label {
  color: var(--text-muted);
}

.input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
}

button.primary {
  background: linear-gradient(90deg, #4f8bff, #7dd0ff);
  color: #0b1222;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button.primary:disabled,
button.secondary:disabled,
button.copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.steps {
  margin-top: 16px;
}

.onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.section-stepper {
  margin: 16px 0 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.stepper-item {
  min-width: 0;
}

.stepper-card {
  width: 100%;
  text-align: left;
  padding: 12px 12px 12px 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  display: flex;
  gap: 8px;
  position: relative;
}

.stepper-card::after {
  display: none;
}

.stepper-dot {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  z-index: 1;
}

.stepper-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.stepper-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  width: 100%;
}

.stepper-meta .pill {
  padding: 4px 6px;
  font-size: 11px;
  white-space: nowrap;
}

.pill-compact {
  padding: 4px 6px;
  font-size: 11px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-card.active {
  border-color: rgba(125, 208, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(79, 139, 255, 0.3);
}

.stepper-card.active .stepper-dot {
  background: rgba(125, 208, 255, 0.8);
  border-color: rgba(125, 208, 255, 0.85);
}

.stepper-card.done {
  border-color: rgba(92, 214, 167, 0.35);
  background: rgba(92, 214, 167, 0.08);
}

.stepper-card.done .stepper-dot {
  background: rgba(92, 214, 167, 0.9);
  border-color: rgba(92, 214, 167, 0.95);
}

.stepper-card.locked {
  opacity: 0.6;
}

@media (max-width: 1200px) {
  .section-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .section-stepper {
    grid-template-columns: 1fr;
  }
}

.credential-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.credential-head {
  margin-bottom: 10px;
}

.credential-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.credential-field .label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.credential-field .input[readonly] {
  opacity: 0.8;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-row .input {
  flex: 1;
}

.section-shell {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.step-grid {
  display: grid;
  gap: 12px;
}

.step-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
}

.step-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 197, 0.35);
  background: rgba(0, 229, 197, 0.08);
  color: var(--text-strong);
  font-weight: 600;
}

.step-card.blocked {
  opacity: 0.55;
  pointer-events: none;
}

.step-card.done {
  border-color: rgba(92, 214, 167, 0.35);
  background: rgba(92, 214, 167, 0.05);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auto-pill {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

.step-title {
  font-weight: 650;
  color: var(--text-strong);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-label input {
  width: 18px;
  height: 18px;
}

.step-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.step-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.step-links a {
  color: rgba(92, 214, 167, 0.95);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(92, 214, 167, 0.35);
  background: rgba(92, 214, 167, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-links a:hover {
  text-decoration: none;
  background: rgba(92, 214, 167, 0.2);
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
}

.recovery-verify {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.recovery-verify .input {
  flex: 1;
}

.ready-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(92, 214, 167, 0.3);
  background: rgba(92, 214, 167, 0.08);
}

.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-name {
  min-width: 180px;
}

.task-detail {
  color: var(--text-muted);
}

.error-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(255, 70, 70, 0.1);
}

.tooltip-wrap {
  display: inline-flex;
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 56px;
  }

  .status-form {
    flex-direction: column;
  }

  .onboarding-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .step-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auto-pill {
    margin-left: 0;
  }

  .section-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
  }

  .step-actions {
    justify-content: flex-start;
  }

  .password-row {
    flex-direction: column;
    align-items: stretch;
  }
}
