/* Keep a long development version separate from Settings' close control. */
#settingsDialog[open] #settingsForm > header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}
#settingsDialog[open] #settingsForm > header h2 { grid-area: 1 / 1; }
#settingsDialog[open] #settingsForm > header > [data-close] { grid-area: 1 / 2; }
#settingsDialog[open] #settingsForm > header > #releaseHistoryButton {
  grid-area: 2 / 1 / 3 / -1;
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  max-height: none !important;
  padding: 8px 12px !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.4 !important;
}
#releaseHistoryDialog {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  margin: auto;
  width: min(720px, calc(100vw / var(--release-zoom, 1) - 24px));
  max-width: calc(100vw / var(--release-zoom, 1) - 24px) !important;
  max-height: calc(100dvh / var(--release-zoom, 1) - 24px) !important;
  padding: 0;
  color: #f7f8f6;
  background: #303842;
  border: 1px solid #65717a;
  border-radius: 12px;
  overflow: hidden;
}
.release-history-panel { display: flex; flex-direction: column; max-height: calc(100dvh / var(--release-zoom, 1) - 28px); min-width: 0; }
.release-history-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; flex: 0 0 auto; border-bottom: 1px solid #65717a; }
.release-history-panel h2 { font-size: 22px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.release-history-panel > header button { flex: 0 0 auto; min-height: 44px; }
#releaseHistoryContent { overflow: auto; padding: 16px; min-height: 0; overflow-wrap: anywhere; }
.release-installed { margin: 0 0 16px; }
.release-entry { border: 1px solid #65717a; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.release-entry-current { border-color: #ffd206; }
.release-entry summary { display: grid; grid-template-columns: minmax(0, auto) auto 1fr auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; cursor: pointer; list-style: none; }
.release-entry summary::-webkit-details-marker { display: none; }
.release-entry summary:hover { background: #39434d; }
.release-entry summary:focus-visible { outline: 2px solid #59d2e6; outline-offset: -3px; }
.release-version { min-width: 0; font-size: 17px; font-weight: 700; }
.release-entry summary time { justify-self: end; color: #c6cdd2; font-size: 12px; white-space: nowrap; }
.release-chevron { width: 9px; height: 9px; border-right: 2px solid #c6cdd2; border-bottom: 2px solid #c6cdd2; transform: rotate(45deg); transition: transform 160ms ease; margin: -4px 3px 0 5px; }
.release-entry[open] .release-chevron { transform: rotate(225deg); margin-top: 4px; }
.release-current-mark { background: #ffd206; color: #182029; border-radius: 5px; padding: 3px 6px; font-size: 12px; }
.release-details { padding: 2px 12px 12px; border-top: 1px solid #56616a; }
.release-meta { color: #c6cdd2; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.release-entry ul { padding-left: 20px; margin: 8px 0 0; }
.release-entry li { margin-top: 8px; white-space: pre-wrap; line-height: 1.5; }
@media (max-width: 480px) {
  .release-history-panel > header { flex-wrap: wrap; }
  .release-history-panel > header button { margin-left: auto; }
  .release-entry summary { grid-template-columns: minmax(0, 1fr) auto auto; }
  .release-current-mark { grid-row: 2; grid-column: 1; justify-self: start; }
  .release-entry summary time { grid-column: 2; grid-row: 1; }
  .release-chevron { grid-column: 3; grid-row: 1; }
}
