:root {
  --bg: #121218;
  --panel: #1b1b24;
  --raised: #232330;
  --text: #ececf2;
  --muted: #a3a3b4;
  --accent: #8b7bff;
  --border: #2c2c3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
nav { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 18px 16px 0; font-size: 0.95rem; }
nav .brand { font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
nav .spacer { flex: 1; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
header img { width: 56px; height: 56px; border-radius: 14px; }
h1 { font-size: 2rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 2em 0 0.5em; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--accent); }
ul { padding-left: 1.2em; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 18px 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.platforms li { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.tool { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.tool:hover { border-color: var(--accent); }
.tool img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.tool h2 { margin: 0 0 4px; }
.tool p { margin: 0; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.downloads .card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.downloads h3 { margin: 0; font-size: 1.05rem; }
.downloads p { margin: 0; font-size: 0.93rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  padding: 9px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button.secondary { background: var(--raised); color: var(--text); border: 1px solid var(--border); }
.version { font-size: 0.9rem; color: var(--muted); }
ol { padding-left: 1.3em; }
ol li { margin: 4px 0; }
pre.changelog {
  white-space: pre-wrap; font: 0.92rem/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; max-height: 420px; overflow: auto; margin: 0;
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: 0; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
}
.beta { background: color-mix(in srgb, #f5b546 14%, var(--panel)); border: 1px solid color-mix(in srgb, #f5b546 45%, var(--border)); border-radius: 12px; padding: 12px 16px; margin: 0 0 22px; font-size: 0.95rem; }
.beta strong { color: #f5b546; }
/* What's new: a card per release */
.releases { display: flex; flex-direction: column; gap: 12px; }
.release { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.release.latest { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release h3 { margin: 0; font-size: 1.05rem; }
.release-new { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 9px; }
.release-headline { margin: 6px 0 0; color: var(--muted); }
.release ul { margin: 10px 0 0; padding-left: 1.2em; }
.release li { margin: 4px 0; }
.release li::marker { color: var(--accent); }
.tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; border: 1px solid var(--border); color: var(--muted); }
.tag-app { color: #b9b0ff; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tag-extension { color: #7fd8c8; border-color: color-mix(in srgb, #3fbfa6 45%, var(--border)); }
details.older { display: flex; flex-direction: column; gap: 12px; }
details.older > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; padding: 4px 0; }
details.older > summary::-webkit-details-marker { display: none; }
details.older[open] > summary { margin-bottom: 12px; }
details.older > .release { margin-bottom: 12px; }
