.whatsNewOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.whatsNewOverlay--visible {
  opacity: 1;
  pointer-events: all;
}

.whatsNewPanel {
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  border-radius: 16px;
  padding: 1.5rem;
  width: min(480px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(16px);
  transition: transform 300ms ease;
}

.whatsNewOverlay--visible .whatsNewPanel {
  transform: translateY(0);
}

.whatsNewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.whatsNewHeader h2 {
  font-size: 1.25rem;
  font-weight: bold;
}

.whatsNewClose {
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.6;
  padding: 4px;
  transition: opacity 150ms;
}

.whatsNewClose:hover {
  opacity: 1;
}

.whatsNewDate {
  font-size: 0.85rem;
  opacity: 0.6;
}

.whatsNewList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.whatsNewItem {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.whatsNewMediaItem {
  list-style: none;
}

.whatsNewMedia {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  background-color: var(--md-sys-color-surface-container-low);
  display: block;
}

.whatsNewBadge {
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.whatsNewBadge--feat {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.whatsNewBadge--fix {
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.whatsNewBadge--refactor {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.whatsNewFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.whatsNewLink {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.whatsNewLink:hover {
  text-decoration: underline;
}

.whatsNewDismiss {
  appearance: none;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: opacity 150ms;
}

.whatsNewDismiss:hover {
  opacity: 0.85;
}
