/* การอัปเดต (changelog) */

.changelog-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px calc(var(--safe-bottom) + 20px);
}

.changelog-day-label {
  font-size: 12px;
  color: var(--sub);
  margin: 20px 0 10px;
}

.changelog-day-label:first-child {
  margin-top: 0;
}

.changelog-entry {
  position: relative;
  padding: 0 0 18px 20px;
  margin-left: 4px;
  border-left: 2px solid var(--card);
}

.changelog-entry:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.changelog-head {
  margin-bottom: 6px;
}

.changelog-version {
  font-weight: 700;
  font-size: 13px;
  background: var(--card);
  padding: 3px 9px;
  border-radius: 6px;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.cl-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  white-space: nowrap;
}

.cl-tag.added {
  background: rgba(52, 199, 89, 0.15);
  color: var(--green);
}

.cl-tag.changed {
  background: rgba(76, 141, 255, 0.15);
  color: var(--accent);
}

.cl-tag.removed {
  background: rgba(255, 69, 58, 0.15);
  color: var(--red);
}
