.changelog-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.changelog-trigger:hover {
  border-color: rgba(79, 124, 255, 0.5);
  background: rgba(79, 124, 255, 0.16);
  transform: translateY(-1px);
}

.changelog-trigger span {
  font-size: 15px;
  font-weight: 650;
}

.changelog-trigger small {
  color: #8b93a7;
  font-size: 12px;
}

.changelog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.changelog-modal.open {
  display: flex;
}

.changelog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.changelog-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #171a1f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #e8eaed;
}

.changelog-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  background: linear-gradient(180deg, #171a1f 80%, rgba(23, 26, 31, 0));
}

.changelog-kicker {
  margin: 0 0 4px;
  color: #8b93a7;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.changelog-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.changelog-list {
  padding: 0 24px 24px;
}

.changelog-entry {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}

.changelog-entry time {
  display: block;
  margin-bottom: 10px;
  color: #86efca;
  font-size: 14px;
  font-weight: 700;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 20px;
  color: #c6ccd8;
}

.changelog-entry li + li {
  margin-top: 8px;
}

@media (width <= 640px) {
  .changelog-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .changelog-panel {
    max-height: calc(100vh - 24px);
  }
}
