:root {
  color-scheme: dark;
  --bg: #0e1014;
  --panel: #161920;
  --panel-2: #1c2029;
  --border: #2a303d;
  --text: #e7e9ee;
  --muted: #8f98a8;
  --accent: #4c8dff;
  --beta: #f0a73c;
  --donate: #ffc439;
  --donate-text: #1b1d22;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eef0f4;
    --panel: #ffffff;
    --panel-2: #f5f6f9;
    --border: #dde1e8;
    --text: #1a1d24;
    --muted: #667085;
    --accent: #2f6fe8;
    --beta: #b86e00;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Ubuntu, sans-serif;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.donate {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--donate);
  color: var(--donate-text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.15);
}

.donate:hover {
  filter: brightness(1.06);
}

.donate svg {
  width: 18px;
  height: 18px;
  fill: #e0245e;
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app {
  padding: 20px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.app-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-title h2 {
  font-size: 22px;
}

.about {
  color: var(--muted);
  margin-bottom: 4px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-top: 6px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: inherit;
  text-decoration: none;
}

.download:hover {
  border-color: var(--accent);
}

.download.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.download span {
  font-size: 13px;
  opacity: 0.8;
}

.beta {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.beta-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.beta summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
}

.beta summary::-webkit-details-marker {
  display: none;
}

.beta summary::after {
  content: "▸";
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  margin-left: auto;
}

.beta[open] summary::after {
  content: "▾";
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--beta);
  border: 1px solid var(--beta);
  border-radius: 999px;
  padding: 0 8px;
}

.beta .download.primary {
  background: var(--panel-2);
  border-color: var(--beta);
  color: inherit;
}

.help ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help h2 {
  font-size: 16px;
}

@media (max-width: 560px) {
  .page {
    padding-top: 32px;
  }

  .top {
    flex-direction: column;
  }
}
