.changelog-index,
.cl-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 2.6rem;
}

.cl-wrapper {
  background: linear-gradient(160deg, rgba(16, 26, 52, 0.92), rgba(10, 16, 32, 0.94));
  border: 1px solid rgba(108, 77, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(4, 8, 18, 0.35);
}

.changelog-index h1,
.cl-title {
  margin: 0.28rem 0 0.2rem;
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  color: #e6ecff;
}

.cl-lead,
.cl-subtitle {
  margin: 0;
  color: #9aa4c7;
  font-size: 0.98rem;
  line-height: 1.5;
}

.cl-index-list {
  background: rgba(12, 20, 39, 0.9);
  border: 1px solid rgba(42, 53, 87, 0.6);
  border-radius: 14px;
  padding: 0.95rem;
}

.cl-latest-line {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(108, 77, 255, 0.36);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(20, 33, 66, 0.95), rgba(12, 20, 39, 0.95));
}

.cl-latest-label {
  color: #9aa4c7;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.cl-latest-link {
  color: #e6ecff;
  text-decoration: none;
  font-weight: 700;
}

.cl-latest-link:hover {
  color: #b8c8ff;
}

.cl-latest-link.is-muted {
  color: #9aa4c7;
}

.cl-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.cl-index-head h2 {
  margin: 0;
  color: #e6ecff;
  font-size: 1rem;
}

.cl-count {
  color: #9aa4c7;
  font-size: 0.8rem;
}

.versions {
  list-style: none;
  margin: 0.28rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cl-group + .cl-group {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(42, 53, 87, 0.45);
}

.cl-group-title {
  margin: 0;
  font-size: 0.92rem;
  color: #b6c4eb;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.versions li {
  border: 1px solid rgba(42, 53, 87, 0.7);
  border-radius: 10px;
  background: rgba(16, 25, 49, 0.78);
  transition: all 0.2s ease;
}

.versions li:hover {
  border-color: rgba(108, 77, 255, 0.62);
  transform: translateY(-1px);
}

.versions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.9rem;
  text-decoration: none;
  color: #e6ecff;
}

.cl-version-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.cl-version-cta {
  color: #9aa4c7;
  font-size: 0.8rem;
}

.cl-wrapper {
  padding: 1.2rem;
  color: #e6ecff;
}

.cl-title {
  margin-top: 0;
  text-align: center;
}

.cl-meta {
  margin: 0.35rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  color: #9aa4c7;
  font-size: 0.84rem;
}

.cl-version-type {
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl-version-type.major { color: #ff8ea4; background: rgba(255, 77, 109, 0.14); border: 1px solid rgba(255, 77, 109, 0.42); }
.cl-version-type.minor { color: #8aa9ff; background: rgba(108, 77, 255, 0.14); border: 1px solid rgba(108, 77, 255, 0.42); }
.cl-version-type.patch { color: #7fe8b4; background: rgba(61, 220, 132, 0.14); border: 1px solid rgba(61, 220, 132, 0.42); }

.cl-subtitle {
  text-align: center;
  margin: 0.7rem auto 1.15rem;
  max-width: 82ch;
}

.cl-toggle {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
}

.cl-btn {
  border: 1px solid rgba(74, 95, 146, 0.6);
  background: rgba(18, 30, 58, 0.82);
  color: #cfd8f6;
  border-radius: 10px;
  padding: 0.46rem 0.86rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cl-btn:hover { border-color: rgba(108, 77, 255, 0.74); }

.cl-btn.active {
  background: linear-gradient(135deg, #6c4dff, #8a6bff);
  border-color: transparent;
  color: #f6f8ff;
}

.cl-view { display: none; }
.cl-view.active { display: block; }

.cl-section {
  background: rgba(11, 18, 35, 0.88);
  border: 1px solid rgba(42, 53, 87, 0.68);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.72rem;
}

.cl-section-title {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  color: #e6ecff;
}

.cl-section-title .icon { color: #8a6bff; }

.cl-section-list {
  margin: 0;
  padding-left: 1rem;
}

.cl-section-list li {
  margin-bottom: 0.38rem;
  color: #b5c1e4;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .changelog-index,
  .cl-wrapper {
    padding: 1rem 0.8rem 1.4rem;
  }

  .versions a {
    flex-direction: column;
    align-items: flex-start;
  }

  .cl-toggle {
    flex-wrap: wrap;
  }
}
