/* Changelog overlay — same modal shell as settings; the panel has a fixed
   height and only the entry list scrolls. */

.changelog-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.changelog-overlay[hidden] { display: none; }

.changelog-backdrop { position: absolute; inset: 0; background: var(--backdrop); }

.changelog-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(560px, 100%);
  height: min(600px, calc(100vh - 3rem));
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.changelog-close:hover { color: var(--ink); background: var(--line); }

.changelog-title { margin: 0; font-size: 1.05rem; letter-spacing: 0.02em; }

.changelog-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.changelog-status { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }
.changelog-status[hidden] { display: none; }

.changelog-list { list-style: none; margin: 0; padding: 0; }
.changelog-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-version { font-weight: 600; font-variant-numeric: tabular-nums; }
.changelog-date { color: var(--ink-dim); font-size: 0.8rem; align-self: center; }
.changelog-message { grid-column: 1 / -1; margin: 0.25rem 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
