:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080808;
  color: #e6e6e6;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 240px; }
main { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
[hidden] { display: none !important; }
.access-stage {
  position: relative;
  width: min(460px, 100%);
  height: 58px;
  display: grid;
  place-items: center;
}
.key-pill {
  --halo: 190, 190, 210;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 4px 5px 4px 22px;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #151515;
  box-shadow: 0 0 70px 12px rgba(var(--halo), .05), 0 0 160px 22px rgba(var(--halo), .022);
  transition: border-color 220ms, box-shadow 300ms;
}
.key-pill:focus-within { border-color: #555; }
.key-pill[data-state="accepted"] {
  --halo: 91, 204, 129;
  border-color: #3c5f47;
  box-shadow: 0 0 72px 14px rgba(var(--halo), .11), 0 0 170px 26px rgba(var(--halo), .045);
}
.key-pill[data-state="error"] {
  --halo: 236, 92, 92;
  border-color: #704040;
  box-shadow: 0 0 72px 14px rgba(var(--halo), .11), 0 0 170px 26px rgba(var(--halo), .045);
}
.key-status {
  position: absolute;
  top: calc(100% + 19px);
  left: 0;
  width: 100%;
  margin: 0;
  color: #f28b8b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 20px;
  text-align: center;
}
.access-stage[data-state="accepted"] .key-status { color: #85d99c; }
.key-pill.is-shaking { animation: pill-shake 380ms ease-in-out; }
@keyframes pill-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
  88% { transform: translateX(-1px); }
}
input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: #e6e6e6;
  font: inherit;
  font-size: 16px;
  text-overflow: ellipsis;
  caret-color: #e6e6e6;
}
input::placeholder { color: #818181; opacity: 1; }
input::-ms-reveal { display: none; }
button {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b4b4b4;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}
button:hover { background: #242424; color: #eee; }
button:focus-visible { outline: 1px solid #777; outline-offset: -2px; }
button:disabled { cursor: wait; opacity: .45; }
svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; transition: transform 180ms ease; }
#submit-key:hover svg { transform: rotate(-12deg); }
#submit-key:active svg { transform: rotate(-20deg); }
.key-pill.is-turning svg { animation: key-turn 320ms ease; }
@keyframes key-turn {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(-20deg); }
  75% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .key-pill, button, svg { transition: none; }
  .key-pill.is-shaking, .key-pill.is-turning svg { animation: none; }
  #submit-key:hover svg, #submit-key:active svg { transform: none; }
}

/* The entry and exit keep the same height and share the same center. */
.access-stage.is-entering .key-pill {
  overflow: hidden;
  animation: pill-expand 620ms cubic-bezier(.65, 0, .35, 1) both;
}
.access-stage.is-entering .key-pill > input,
.access-stage.is-entering .key-pill > button { animation: fade-in 300ms 160ms ease both; }
@keyframes pill-expand {
  from { width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
  to { width: 100%; padding-left: 22px; padding-right: 5px; opacity: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Exit changes width and opacity only: the pill keeps its full height. */
.access-stage.is-leaving .key-pill {
  overflow: hidden;
  pointer-events: none;
  animation: pill-collapse 620ms cubic-bezier(.65, 0, .35, 1) forwards;
}
.access-stage.is-leaving .key-pill > input,
.access-stage.is-leaving .key-pill > button { animation: fade-away 180ms ease forwards; }
.access-stage.is-leaving .key-status { animation: fade-away 380ms ease forwards; }
@keyframes pill-collapse {
  from { width: 100%; padding-left: 22px; padding-right: 5px; opacity: 1; }
  to { width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
}
@keyframes fade-away { to { opacity: 0; } }
.platforms { display: flex; flex-direction: column; align-items: center; width: min(100%, 672px); outline: none; }
.brand-row { display: flex; justify-content: center; width: 100%; margin-bottom: 24px; }
.brand-mark { display: block; width: 88px; height: 88px; object-fit: contain; }
.platform-title {
  margin: 0 0 28px;
  color: #c7c7c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 500;
  line-height: 24px;
  letter-spacing: .24em;
  text-align: center;
}
.project-name { color: #7acb98; font-weight: 600; }
.platform-buttons { display: flex; justify-content: center; gap: 16px; }
.changelog-label {
  margin: 28px 0 0;
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .19em;
  text-align: center;
}
.platform-pill {
  --platform-rgb: 216, 220, 225;
  flex: 0 0 auto;
  width: 180px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid rgba(var(--platform-rgb), .23);
  border-radius: 999px;
  background: #151515;
  color: #b4b4b4;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 0 64px 10px rgba(var(--platform-rgb), .055), 0 0 150px 24px rgba(var(--platform-rgb), .025);
  transition: transform 160ms ease, border-color 180ms, background-color 180ms, color 180ms, box-shadow 220ms;
}
.platform-pill:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(var(--platform-rgb), .42);
  background: #1d1d1d;
  color: #eee;
  box-shadow: 0 0 84px 12px rgba(var(--platform-rgb), .10), 0 0 180px 30px rgba(var(--platform-rgb), .04);
}
.platform-pill:active:not(:disabled) { transform: translateY(0) scale(.97); }
.platform-pill[data-platform="windows-x64"] { --platform-rgb: 0, 164, 239; }
.platform-pill[data-platform="macos-arm64"] { --platform-rgb: 216, 220, 225; }
.platform-pill[data-platform="linux-x64"] { --platform-rgb: 252, 198, 36; }
.platform-pill:disabled {
  --platform-rgb: 112, 112, 112;
  background: #111;
  border-color: #292929;
  color: #707070;
  box-shadow: none;
  cursor: not-allowed;
}
.platform-pill:disabled .platform-icon { color: #707070; }
.platform-icon { width: 22px; height: 22px; color: rgb(var(--platform-rgb)); fill: currentColor; stroke: none; }
.platforms.is-entering .brand-row,
.platforms.is-entering .platform-title,
.platforms.is-entering .changelog-label { animation: platform-appear 400ms ease both; }
.platforms.is-entering .platform-pill { animation: platform-appear 400ms ease both; }
.platforms.is-entering .platform-pill:nth-child(2) { animation-delay: 50ms; }
.platforms.is-entering .platform-pill:nth-child(3) { animation-delay: 100ms; }
@keyframes platform-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  .platforms { width: min(320px, 100%); }
  .changelog-label { font-size: 11px; }
  .platform-buttons { width: 100%; flex-direction: column; gap: 16px; }
  .platform-pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .access-stage.is-entering .key-pill,
  .access-stage.is-entering .key-pill > input,
  .access-stage.is-entering .key-pill > button,
  .access-stage.is-leaving .key-pill,
  .access-stage.is-leaving .key-pill > input,
  .access-stage.is-leaving .key-pill > button,
  .access-stage.is-leaving .key-status,
  .platforms.is-entering .platform-pill,
  .platforms.is-entering .brand-row,
  .platforms.is-entering .platform-title,
  .platforms.is-entering .changelog-label { animation: none; }
  .platform-pill { transition: none; }
  .platform-pill:hover, .platform-pill:active:not(:disabled) { transform: none; }
}

/* Real-page navigation retains ordinary links, deep URLs and browser history. */
a { color: inherit; text-decoration: none; }
a.changelog-label, .back-link { transition: color 160ms; }
a.changelog-label:hover, .back-link:hover { color: #dedede; }
a.changelog-label:focus-visible, .back-link:focus-visible { outline: 1px solid #666; outline-offset: 7px; border-radius: 2px; }
.page-surface { animation: page-in 360ms ease both; }
.page-surface.is-route-leaving { animation: page-out 280ms ease forwards; pointer-events: none; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
main.changelog-page { display: block; padding: 64px 24px 80px; }
.changelog-content { width: min(620px, 100%); margin: 0 auto; }
.changelog-header { margin-bottom: 44px; text-align: center; }
.back-link { display: inline-block; margin-bottom: 30px; color: #888; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: .15em; }
.changelog-header .platform-title { margin-bottom: 14px; }
.changelog-heading { margin: 0; color: #aaa; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.release-notes { border-top: 1px solid #252525; }
.release-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 18px; padding: 22px 0; list-style: none; cursor: pointer; }
.release-summary::-webkit-details-marker { display: none; }
.release-summary-copy { min-width: 0; }
.release-summary-title { display: block; color: #ccc; font-size: 17px; font-weight: 500; line-height: 25px; transition: color 160ms; }
.release-summary:hover .release-summary-title { color: #eee; }
.release-summary:focus-visible { outline: 1px solid #666; outline-offset: 5px; border-radius: 2px; }
.release-summary code { color: #7acb98; font-size: 11px; letter-spacing: .08em; }
.release-toggle { width: 16px; height: 16px; color: #888; fill: none; stroke: currentColor; transition: transform 180ms ease; }
.release-notes[data-expanded="true"] > .release-summary .release-toggle { transform: rotate(180deg); }
.release-body { display: flow-root; padding: 0 0 30px; }
.release-notes[open] > .release-body { animation: notes-reveal 180ms ease; }
.release-body h3:first-child { margin-top: 4px; }
@keyframes notes-reveal { from { opacity: 0; } to { opacity: 1; } }
.release-date { display: block; margin-top: 6px; color: #777; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
.release-notes h3 { margin: 28px 0 10px; color: #aaa; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.release-notes ul { margin: 0; padding-left: 18px; color: #b7b7b7; font-size: 14px; line-height: 1.85; }
.release-notes li + li { margin-top: 6px; }
.release-notes li::marker { color: #505050; }
.changelog-status { color: #888; font-size: 13px; text-align: center; }
@media (max-width: 640px) { main.changelog-page { padding-top: 40px; } .changelog-header { margin-bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .page-surface, .page-surface.is-route-leaving { animation: none; } a.changelog-label, .back-link { transition: none; } }

@media (prefers-reduced-motion: reduce) { .release-notes[open] > .release-body { animation: none; } .release-toggle, .release-summary-title { transition: none; } }

.release-body strong { color: #ddd; font-weight: 600; }
.release-body em { color: #a4afa7; }
.release-body code { white-space: nowrap; padding: 1px 5px; border: 1px solid #303530; border-radius: 3px; background: rgba(255, 255, 255, .025); color: #c6d2c9; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .88em; }

.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 16px; margin-top: 6px; }
.release-meta .release-date { margin: 0; }
.your-version { display: inline-block; padding: 1px 6px; border: 1px solid #294633; border-radius: 999px; background: rgba(122, 203, 152, .025); color: #7acb98; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 8px; font-weight: 600; line-height: 12px; letter-spacing: .08em; white-space: nowrap; }

.platform-pill:disabled { cursor: default; opacity: .55; }
