.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-downloads { position: relative; z-index: 5; flex: 0 0 auto; }
body.desktop-app .app-downloads { display: none; }

.app-download-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(221, 255, 143, 0.25);
  border-radius: 999px;
  background: rgba(221, 255, 143, 0.07);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.app-download-trigger::-webkit-details-marker { display: none; }
.app-download-trigger svg { width: 16px; height: 16px; flex: 0 0 auto; }
.app-download-trigger:hover, .app-downloads[open] .app-download-trigger {
  background: rgba(221, 255, 143, 0.13);
  border-color: rgba(221, 255, 143, 0.45);
}
.app-download-chevron { transition: transform 0.18s; }
.app-downloads[open] .app-download-chevron { transform: rotate(180deg); }

.app-download-links {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #161813;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  list-style: none;
}
.app-download-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 9px;
  color: var(--paper);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.18s;
}
.app-download-links a:hover, .app-download-links a:focus-visible { background: rgba(221, 255, 143, 0.08); }
.app-platform-icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--mist); }
.app-download-arrow { width: 16px; height: 16px; flex: 0 0 auto; margin-left: auto; color: var(--green); }

@media (max-width: 600px) {
  .topbar-actions { gap: 0; }
  .app-download-trigger { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-download-trigger, .app-download-chevron, .app-download-links a { transition: none; }
}
