:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #0f1012;
  --panel-2: #15171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-strong: rgba(255, 255, 255, 0.72);
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

[type="button"] {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.auth-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.download-panel {
  width: min(456px, 100%);
  padding: 22px 18px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.auth-copy {
  margin-bottom: 18px;
}

.auth-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-title-logo {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.auth-subtitle {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.release-version {
  display: flex;
  align-items: center;
  margin: 15px 0 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: "Inter", sans-serif;
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: fit-content;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-copy {
  margin-bottom: 14px;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.download-row:hover {
  border-color: var(--line-strong);
}

.download-row:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.download-platform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-os-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

.download-os-icon-macos {
  width: 1.34rem;
  height: 1.34rem;
}

.download-label {
  font-weight: 500;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-link:hover {
  color: var(--text);
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

@media (max-width: 760px) {
  .download-row {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: center;
    flex-direction: row;
  }

  .panel-footer {
    flex-wrap: wrap;
  }
}
