.site-page-tools {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html body .site-page-tools .site-page-tool {
  position: static;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  color: #edf0f3;
  background: #252529ed;
  box-shadow: 0 5px 20px #0003;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.site-page-tools .site-page-tool:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 3px; }
html body .site-page-tools .site-page-tool[aria-expanded="true"] { border-color: var(--site-blue); background: var(--site-blue); color: var(--site-blue-on-primary); }
@media (hover: hover) and (pointer: fine) {
  html body .site-page-tools .site-page-tool:hover { border-color: var(--site-blue); background: var(--site-blue); color: var(--site-blue-on-primary); }
}
.site-page-tool svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

.site-tool-download { position: relative; }
.site-download-panel {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 0;
  display: grid;
  width: 320px;
  justify-items: center;
  padding: 32px 22px 28px;
  border: 1px solid #ffffff0a;
  border-radius: 20px;
  background: #303232;
  box-shadow: 0 16px 44px #0005;
  text-align: center;
}

.site-download-panel[hidden] { display: none; }
.site-download-panel::after { content: ""; position: absolute; left: 100%; bottom: 0; width: 16px; height: 100%; }
.site-download-panel .brand-logo { width: 135px; height: auto; margin-bottom: 24px; }
.site-download-panel .brand-logo--app img { width: 34px; height: 34px; flex-basis: 34px; }
.site-download-panel p { margin: 22px 0 0; color: #a5a7a7; font-size: 14px; line-height: 1.9; }

.site-download-qr { --app-download-qr-size: 180px; }

@media (max-width: 760px) {
  .site-page-tools { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  html body .site-page-tools .site-page-tool { width: 38px; height: 38px; border-radius: 12px; }
  .site-page-tool svg { width: 22px; height: 22px; }
  .site-download-panel { display: none; }
}
