:root {
  color-scheme: dark;
  --surface: #101015;
  --rail: #0d0d12;
  --line: #292831;
  --accent: #cabbf2;
  --selection: #201a2c;
  --text: #f2eff8;
  --muted: #a39fad;
  --scroll-thumb: #625b73;
  --scroll-hover: #a39fad;
  --scroll-active: #cabbf2;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  scrollbar-color: var(--scroll-thumb) var(--rail);
  scrollbar-width: auto;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
::selection { color: var(--text); background: var(--selection); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--rail); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--rail); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent); }
a:active { opacity: .8; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.page { width: min(100% - 96px, 1040px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; transform: translateY(-180%); padding: 12px; background: var(--selection); z-index: 1; }
.skip-link:focus { transform: none; }
.header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; width: 156px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; gap: 30px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; min-height: 440px; padding-block: 68px; }
h1 { margin: 0; font-size: clamp(48px, 6.4vw, 76px); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; }
.platform { color: var(--muted); font-size: 20px; margin: 16px 0 36px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 22px; min-height: 56px; background: var(--accent); color: var(--rail); border-radius: 7px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.download-button svg { flex-shrink: 0; }
.download-button:hover { color: var(--rail); background: var(--text); }
.download-button:active { background: var(--accent); opacity: .85; }
.file-meta { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 32px; }
.file-meta a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 4px; }
.hero-mark { display: block; width: min(100%, 320px); height: auto; justify-self: end; }
.modules { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 64px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
h2 { font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.section-description { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.manifest-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--muted); }
.module-install { margin-bottom: 24px; padding-inline-start: 16px; border-inline-start: 2px solid var(--line); }
.module-install h3 { margin: 0; font-size: 16px; }
.module-install ol { padding-inline-start: 20px; margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.module-install li + li { margin-top: 4px; }
.module-install code { color: var(--text); overflow-wrap: anywhere; }
.module-install strong { color: var(--text); font-weight: 600; }
.module-state { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; min-height: 128px; padding: 24px; background: var(--rail); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.module-state p { margin: 0; line-height: 1.6; }
#module-retry { min-height: 44px; padding: 8px 14px; background: var(--selection); color: var(--text); border: 1px solid var(--line); border-radius: 5px; }
#module-retry:hover { border-color: var(--accent); }
#module-retry:active { opacity: .8; }
#module-retry:disabled { opacity: .6; cursor: wait; }
.module-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.module-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px; background: var(--rail); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.module-list li > div { flex: 1 1 460px; }
.module-list h3 { margin: 0; font-size: 18px; }
.module-list p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.module-list a { padding: 12px 16px; min-height: 44px; color: var(--accent); border: 1px solid var(--line); border-radius: 5px; }
.module-list a:hover { background: var(--selection); border-color: var(--accent); }
noscript p { color: var(--muted); }
noscript a { text-decoration: underline; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; color: var(--muted); font-size: 12px; }
footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
@media (max-width: 680px) {
  .page { width: calc(100% - 40px); }
  .header { min-height: 88px; gap: 12px; }
  .brand { width: 132px; }
  nav { gap: 18px; font-size: 13px; }
  .download { min-height: auto; padding-block: 56px 48px; grid-template-columns: 1fr; gap: 0; }
  .hero-mark { display: none; }
  .download-button { max-width: 100%; padding-inline: 18px; gap: 10px; }
  .modules { padding-bottom: 48px; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 32px); }
  .brand { width: 112px; }
  nav { gap: 12px; }
  .download-button { font-size: 13px; padding-inline: 12px; }
}
@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  .download-button { border: 1px solid ButtonText; }
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; row-gap: 0; }
