:root {
  --download-ink: #191919;
  --download-muted: #777;
  --download-surface: #fff;
  --download-row: #f8f8f8;
  --download-hover: #eeeeef;
  --download-border: #ececec;
  --download-accent: #0f6fe8;
  --download-shadow: 0 16px 50px rgb(0 0 0 / 10%);
}
.haolo-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  vertical-align: middle;
  color: var(--download-ink);
  font-family: inherit;
}
.haolo-download-pill {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #191919;
  color: #fff;
  box-shadow: 0 14px 30px rgb(0 0 0 / 14%);
  transition: background .18s, box-shadow .18s;
}
.haolo-download .haolo-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 10px 28px;
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 999px 0 0 999px;
  white-space: nowrap;
}
.haolo-download-toggle {
  border: 0;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: inherit;
  padding: 0;
  width: 28px;
  min-width: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.haolo-download .haolo-download-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  color: var(--download-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.haolo-download .haolo-download-web:is(:hover, :focus-visible, :active) { font-weight: 600; text-decoration: none; }
.haolo-download-web-icon { width: 1em; height: 1em; flex-shrink: 0; }
.haolo-download-pill:hover, .is-download-open .haolo-download-pill { background: #303030; }
.haolo-download-primary:active, .haolo-download-toggle:active { background: #414141; }
.haolo-download :is(a, button):focus-visible,
.haolo-download-panel :is(a, button):focus-visible { outline: 2px solid var(--download-accent); outline-offset: 4px; }
.haolo-download [aria-busy="true"], .haolo-download-panel [aria-busy="true"] { opacity: .64; cursor: wait; }
.haolo-download--compact { gap: 5px; flex-shrink: 0; margin-left: auto; }
.haolo-download--compact .haolo-download-pill { min-height: 38px; box-shadow: none; }
.haolo-download--compact .haolo-download-primary { padding: 8px 0 8px 16px; font-size: 13px; }
.haolo-download--compact .haolo-download-toggle { width: 16px; min-width: 16px; }
.haolo-download--compact .haolo-download-web { font-size: 11px; }
/* The existing site header stays dark in both themes. */
.site-navigation .haolo-download--compact { --download-ink: #fff; }
.site-navigation .haolo-download-pill { border: 1px solid #606060; }
html .site-monochrome .haolo-download .haolo-download-pill .haolo-download-primary { color: inherit; }
html .site-monochrome .haolo-download .haolo-download-web { color: var(--download-ink); }
.haolo-download-panel {
  position: fixed;
  z-index: 12000;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid var(--download-border);
  border-radius: 18px;
  background: var(--download-surface);
  color: var(--download-ink);
  box-shadow: var(--download-shadow);
  overflow: auto;
  overscroll-behavior: contain;
  font-family: inherit;
  text-align: left;
}
.haolo-download-panel[hidden], .haolo-download-toggle[hidden], .haolo-download-notice[hidden] { display: none; }
.haolo-download-panel h2 { margin: 0 0 8px; color: var(--download-muted); font-size: 13px; line-height: 1.5; font-weight: 600; }
.haolo-download-panel .haolo-download-group + h2 { margin-top: 18px; }
.haolo-download-group { overflow: hidden; border-radius: 14px; }
.haolo-download-panel .haolo-download-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  min-height: 52px;
  box-sizing: border-box;
  background: var(--download-row);
  color: var(--download-ink);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.haolo-download-option + .haolo-download-option { border-top: 1px solid var(--download-surface); }
.haolo-download-panel .haolo-download-option:hover,
.haolo-download-panel .haolo-download-option:focus-visible { background: var(--download-hover); outline-offset: -3px; }
.haolo-download-panel .haolo-download-option:active { box-shadow: inset 0 0 0 1px var(--download-muted); }
.haolo-download-option svg { width: 18px; height: 18px; flex-shrink: 0; }
.haolo-download-platform { flex: 1; }
.haolo-download-availability { display: block; color: var(--download-muted); font-size: 12px; }
.haolo-download-availability[hidden] { display: none; }
.haolo-download-panel .haolo-download-option[aria-disabled="true"] { cursor: not-allowed; color: var(--download-muted); background: var(--download-row); }
.haolo-download-current { color: var(--registration-download-blue, var(--download-accent)); font-size: 12px; max-width: 96px; text-align: right; }
.haolo-download-arrow { color: var(--download-muted); font-size: 24px; }
.haolo-download-notice { margin: 8px 0 20px; font-size: 14px; line-height: 1.6; }
@media (max-width: 768px) {
  html .site-monochrome .site-navigation:has(> .haolo-download) { flex-wrap: wrap; height: auto; padding-block: 10px; }
  html .site-monochrome .site-navigation > .haolo-download--compact { order: 10; flex: 1 0 100%; max-width: 100%; }
}
@media (max-width: 600px) {
  .haolo-download-primary { white-space: normal; }
  .haolo-download .haolo-download-primary { font-size: 17px; padding-left: 22px; white-space: normal; }
  .haolo-download-toggle { width: 22px; min-width: 22px; }
  .haolo-download--compact .haolo-download-primary { font-size: 12px; padding-left: 12px; }
  .haolo-download--compact .haolo-download-toggle { width: 12px; min-width: 12px; }
  .haolo-download--compact { max-width: 180px; }
  .haolo-download-panel { padding: 16px; }
  .haolo-download-panel .haolo-download-option { gap: 10px; padding: 12px; }
  .haolo-download-current { font-size: 12px; max-width: 82px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --download-ink: #f1f1f1;
    --download-muted: #aaa;
    --download-surface: #1c1c1e;
    --download-row: #272729;
    --download-hover: #363639;
    --download-border: #39393c;
    --download-accent: #4b92f3;
    --download-shadow: 0 16px 50px rgb(0 0 0 / 35%);
  }
  .haolo-download-pill { background: #efefef; color: #191919; }
  .haolo-download-pill:hover, .is-download-open .haolo-download-pill { background: #dcdcdc; }
  .haolo-download-primary:active, .haolo-download-toggle:active { background: #c8c8c8; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta.download-cta { opacity: 1; transform: none; animation: none; }
}
