:root {
  color-scheme: light dark;
  --canvas: #f5f5f7;
  --surface: #fff;
  --surface-subtle: #fafafa;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --quiet: #86868b;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .16);
  --accent: #06c;
  --green: #55ad68;
  --red: #d94242;
  --amber: #b66a00;
  --radius: 14px;
  --radius-small: 10px;
  --page-gutter: clamp(20px, 3.5vw, 64px);
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 30px rgba(0, 0, 0, .035);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000;
    --surface: #1c1c1e;
    --surface-subtle: #111113;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --quiet: #8e8e93;
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .2);
    --accent: #2997ff;
    --green: #92ffa8;
    --red: #ff6961;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
.site-header, .page-shell, .site-footer { width: calc(100% - (var(--page-gutter) * 2)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: .94rem; font-weight: 680; letter-spacing: -.018em; }
.site-header > span { color: var(--muted); font-size: .84rem; }
.page-shell { min-height: calc(100vh - 126px); padding: 34px 0 36px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.dashboard-heading h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 700; line-height: .98; letter-spacing: -.052em; }
.dashboard-state { display: grid; justify-items: end; gap: 4px; color: var(--quiet); font-size: .73rem; }
.dashboard-state strong { color: var(--muted); font-weight: 600; }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-height: 180px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 7px; font-size: 1.08rem; font-weight: 650; letter-spacing: -.025em; }
.platform { color: var(--muted); font-size: .76rem; margin-bottom: 4px; }
.size { color: var(--quiet); font-size: .72rem; margin: 0 0 20px; }
.primary-button { display: inline-block; min-height: 44px; padding: 10px 16px; border: 0; border-radius: var(--radius-small); background: var(--ink); color: var(--canvas); font-weight: 680; text-align: center; margin-top: auto; }
.primary-button:hover { opacity: .88; }
.update-note { margin: 18px 0; color: var(--muted); font-size: .82rem; }
details { color: var(--muted); font-size: .76rem; line-height: 1.6; max-width: 760px; }
summary { cursor: pointer; color: var(--ink); width: fit-content; }
details p { margin: 14px 0; }
details a { color: var(--accent); }
code { font: .67rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .7rem; }
@media (max-width: 600px) {
  :root { --page-gutter: 16px; }
  .site-header { min-height: 60px; }
  .page-shell { padding-top: 28px; }
  .downloads { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .dashboard-heading { gap: 14px; }
  .dashboard-state { font-size: .68rem; }
}
