.quick-links {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--card, #121215);
  color: var(--fg, #fff);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.quick-link svg { display: block; width: 20px; height: 20px; flex: none; }
.quick-link span { display: block; }
.quick-link:hover { background: var(--card-hover, #18181c); border-color: var(--fg, #fff); }
.quick-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#scroll-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s, background .2s ease, border-color .2s ease;
}
#scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@media (max-width: 768px) {
  .quick-links { right: max(12px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .quick-link { width: 48px; height: 48px; padding: 0; gap: 0; }
  .quick-link svg { width: 22px; height: 22px; }
  .quick-link span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-link, #scroll-to-top { transition: none; }
}
