.history-topbar { white-space: nowrap; }
.history-dialog {
  width: min(740px, calc(100vw - 40px));
  height: min(84vh, 850px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px #17332b30;
}
.history-dialog[open] { display: flex; flex-direction: column; }
.history-dialog::backdrop { background: #17332b80; backdrop-filter: blur(3px); }
body:has(.history-dialog[open]) { overflow: hidden; }
.history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: none; padding: 25px 28px 20px; border-bottom: 1px solid var(--line); }
.history-eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; }
.history-header h2 { margin: 0; font: 700 25px/1.35 var(--sans); }
.history-description { margin: 9px 0 0; color: var(--soft); font-size: 13px; }
.history-header > .button { flex: none; min-height: 44px; }
.history-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px 28px; }
.history-body:focus-visible { outline: 2px solid var(--sage); outline-offset: -3px; }
.history-message { padding: 32px 0; color: var(--soft); font-size: 14px; text-align: center; }
.history-retry { display: block; margin: 0 auto; }
.history-footer { flex: none; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--paper-warm); color: var(--soft); font-size: 12px; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-entry { position: relative; padding: 0 0 30px 24px; border-left: 1px solid var(--line); }
.release-entry::before { content: ""; position: absolute; top: 5px; left: -5px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 1px var(--line); }
.release-entry:first-child::before { background: var(--green); }
.release-entry:last-child { padding-bottom: 0; border-left-color: transparent; }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; color: var(--soft); font-size: 12px; }
.release-meta time { font-variant-numeric: tabular-nums; }
.release-badge { padding: 2px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); font-size: 11px; }
.release-commit { margin-left: auto; color: var(--muted); font: 11px/1.5 ui-monospace, Consolas, monospace; }
.release-title { margin: 0 0 9px; font: 700 16px/1.5 var(--sans); }
.release-changes { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--soft); font-size: 13px; line-height: 1.8; }
@media (max-width: 700px) {
  .topbar-actions .history-topbar { order: 2; min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .topbar-avatar { display: none; }
  .history-dialog { width: calc(100vw - 16px); height: calc(100dvh - 24px); border-radius: 14px; }
  .history-header { padding: max(20px, env(safe-area-inset-top)) 18px 17px; gap: 12px; }
  .history-header h2 { font-size: 23px; }
  .history-description { max-width: 230px; font-size: 12px; line-height: 1.7; }
  .history-body { padding: 23px 18px; }
  .history-footer { padding: 13px 18px max(13px, env(safe-area-inset-bottom)); font-size: 11px; }
  .release-entry { padding-left: 18px; }
  .release-title { font-size: 15px; }
  .release-changes { font-size: 13px; }
  .update-banner { flex-wrap: wrap; }
}
