.sidebar-footer-actions {
  display: grid;
  gap: 6px;
  min-width: 96px;
}

.sidebar-footer-actions > button {
  width: 100%;
}

.whats-new-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: var(--text);
  background: #272a30;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.whats-new-unread {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  color: #15120b;
  background: var(--accent);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}

.whats-new-unread[hidden] {
  display: none;
}

.whats-new-button:hover,
.whats-new-button:focus-visible {
  border-color: var(--accent);
}

.release-notes-modal {
  position: absolute;
  z-index: 17;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.58);
}

.release-notes-modal.hidden {
  display: none;
}

.release-notes-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 31, 35, 0.99);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.release-notes-heading {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.release-notes-heading h2,
.release-notes-heading p {
  margin: 0;
}

.release-notes-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.release-notes-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 18px;
}

.release-notes-status {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #15171b;
  font-size: 13px;
}

.release-notes-status.error {
  border-color: rgba(213, 93, 82, 0.58);
  color: #f2b0aa;
}

.release-note {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #15171b;
}

.release-note[open] {
  border-color: rgba(213, 183, 109, 0.48);
}

.release-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  user-select: none;
}

.release-note summary::marker {
  color: var(--accent);
}

.release-note-version {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-note-date {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.release-note-current {
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #15120b;
  background: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.release-note-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 12px 14px;
}

.release-note-section h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
}

.release-note-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .release-notes-modal {
    padding: 12px;
  }

  .release-notes-card {
    max-height: calc(100vh - 24px);
  }

  .release-note summary,
  .release-note-body {
    align-items: flex-start;
  }

  .release-note-body {
    grid-template-columns: 1fr;
  }

  .release-note-date {
    white-space: normal;
    text-align: right;
  }
}
