mdui-dialog.whats-new-dialog::part(panel) {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
}

mdui-dialog.whats-new-dialog::part(body) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.whats-new-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 12px;
}

.whats-new-header h2 {
  margin: 4px 0 0;
  color: rgb(var(--mdui-color-on-surface));
  font-size: 26px;
  line-height: 1.2;
}

.whats-new-eyebrow {
  color: rgb(var(--mdui-color-primary));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.whats-new-body {
  flex-grow: 1;
  min-height: 0;
  padding: 8px 24px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mdui-color-on-surface-variant), 0.34) transparent;
}

.whats-new-body::-webkit-scrollbar {
  width: 10px;
}

.whats-new-body::-webkit-scrollbar-track {
  background: transparent;
}

.whats-new-body::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(var(--mdui-color-on-surface-variant), 0.34);
  background-clip: content-box;
}

.whats-new-body::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--mdui-color-on-surface-variant), 0.52);
  background-clip: content-box;
}

.whats-new-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgb(var(--mdui-color-on-surface-variant));
  text-align: center;
}

.whats-new-state--error mdui-icon {
  color: rgb(var(--mdui-color-error));
  font-size: 40px;
}

.whats-new-markdown {
  color: rgb(var(--mdui-color-on-surface));
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.whats-new-markdown h1,
.whats-new-markdown h2,
.whats-new-markdown h3,
.whats-new-markdown h4,
.whats-new-markdown h5,
.whats-new-markdown h6 {
  margin: 24px 0 10px;
  line-height: 1.35;
}

.whats-new-markdown h1:first-child,
.whats-new-markdown h2:first-child,
.whats-new-markdown h3:first-child {
  margin-top: 0;
}

.whats-new-markdown p,
.whats-new-markdown ul,
.whats-new-markdown ol,
.whats-new-markdown blockquote,
.whats-new-markdown pre {
  margin: 12px 0;
}

.whats-new-markdown ul,
.whats-new-markdown ol {
  padding-left: 24px;
}

.whats-new-markdown a {
  color: rgb(var(--mdui-color-primary));
}

.whats-new-markdown code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgb(var(--mdui-color-surface-container-high));
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.whats-new-markdown pre {
  padding: 14px;
  border-radius: 12px;
  background: rgb(var(--mdui-color-surface-container-high));
  overflow-x: auto;
}

.whats-new-markdown pre code {
  padding: 0;
  background: transparent;
}

.whats-new-markdown blockquote {
  padding-left: 14px;
  border-left: 3px solid rgb(var(--mdui-color-primary));
  color: rgb(var(--mdui-color-on-surface-variant));
}

.whats-new-markdown img {
  display: block;
  max-width: min(420px, 100%);
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whats-new-empty {
  color: rgb(var(--mdui-color-on-surface-variant));
}

@media (max-width: 600px) {
  .whats-new-header {
    padding: 20px 18px 10px;
  }

  .whats-new-body {
    padding: 8px 18px 20px;
  }
}
