/* Alsion CZ setup checker */

.alsion-cz {
  max-width: 52rem;
  margin: 0 0 2rem;
}

.alsion-cz__title {
  margin: 0 0 0.75rem;
  color: #1a2744;
}

.alsion-cz__lead {
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: rgba(26, 39, 68, 0.82);
}

.alsion-cz__steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.alsion-cz__step {
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.1rem;
}

.alsion-cz__step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
}

.alsion-cz__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f3f6fb;
  color: #2f5f9a;
  font-weight: 700;
}

.alsion-cz__step-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #1a2744;
}

.alsion-cz__step-text {
  margin: 0;
  color: rgba(26, 39, 68, 0.72);
  line-height: 1.55;
}

.alsion-cz__status {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eef1f6;
  color: #5a6478;
}

.alsion-cz__status[data-status="running"] {
  background: #fff4df;
  color: #8a5a00;
}

.alsion-cz__status[data-status="ok"] {
  background: #e7f4ea;
  color: #1f6b33;
}

.alsion-cz__status[data-status="fail"] {
  background: #fdecec;
  color: #9b1c1c;
}

.alsion-cz__step-detail {
  margin: 0.75rem 0 0 2.85rem;
  color: rgba(26, 39, 68, 0.78);
  line-height: 1.5;
}

.alsion-cz__step-downloads {
  margin: 0.65rem 0 0 2.85rem;
  padding: 0.75rem 0.9rem;
  background: #f3f6fb;
  border: 1px solid rgba(47, 95, 154, 0.18);
  border-radius: 0.55rem;
}

.alsion-cz__step-downloads-title {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2744;
}

.alsion-cz__step-downloads-list {
  margin: 0;
  padding-left: 1.15rem;
}

.alsion-cz__step-downloads-list li {
  margin: 0.25rem 0;
}

.alsion-cz__step-downloads-list a {
  color: #2f5f9a;
  text-decoration: none;
  font-size: 0.92rem;
}

.alsion-cz__step-downloads-list a:hover {
  text-decoration: underline;
}

.alsion-cz__actions {
  display: grid;
  gap: 0.75rem;
}

.alsion-cz__check-btn {
  justify-self: start;
  border: none;
  cursor: pointer;
  background: #2f5f9a;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
}

.alsion-cz__check-btn:hover {
  background: #244a78;
}

.alsion-cz__check-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.alsion-cz__summary {
  margin: 0;
  font-weight: 600;
  color: #1a2744;
}

.alsion-cz__downloads {
  margin-top: 2rem;
}

.alsion-cz-downloads-wrap {
  overflow-x: auto;
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: 0.75rem;
  background: #fff;
}

.alsion-cz-downloads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.alsion-cz-downloads-table th,
.alsion-cz-downloads-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  text-align: left;
  vertical-align: top;
}

.alsion-cz-downloads-table th {
  background: #f3f6fb;
  color: #1a2744;
  font-weight: 600;
}

.alsion-cz-downloads-table tr:last-child td {
  border-bottom: none;
}

.alsion-cz-downloads__name {
  font-weight: 600;
  min-width: 14rem;
}

.alsion-cz-downloads__req {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a5a00;
  background: #fff4df;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.alsion-cz-downloads__desc {
  color: rgba(26, 39, 68, 0.72);
}

.alsion-cz-downloads__file a {
  color: #2f5f9a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  text-decoration: none;
}

.alsion-cz-downloads__file a:hover {
  text-decoration: underline;
}

.alsion-cz-downloads__missing {
  color: rgba(26, 39, 68, 0.55);
  font-size: 0.85rem;
}

.alsion-cz__hint {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(26, 39, 68, 0.6);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .alsion-cz__step-head {
    grid-template-columns: auto 1fr;
  }

  .alsion-cz__status {
    grid-column: 2;
    justify-self: start;
  }

  .alsion-cz__step-detail {
    margin-left: 0;
  }

  .alsion-cz__step-downloads {
    margin-left: 0;
  }
}
