.site-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: bold;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 5px 16px var(--shadow);
  cursor: pointer;
  transition: color 160ms, border-color 160ms, transform 160ms, background-color 180ms;
}

.site-control:hover,
.site-control:focus-visible {
  color: #ff6b6b;
  border-color: #ff6b6b;
  transform: translateY(-1px);
}

.site-control:focus-visible {
  outline: 3px solid rgb(255 107 107 / 35%);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-controls {
    position: relative;
    top: auto;
    right: auto;
    z-index: 2;
    padding: 0.75rem 1rem 0;
  }

  .site-control {
    font-size: 0.75rem;
  }
}

.site-control.is-highlighted {
  color: #fff;
  background: #ff6b6b;
  border-color: #ff6b6b;
  animation: controlPulse 1s ease-in-out infinite;
}

@keyframes controlPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(255 107 107 / 70%);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgb(255 107 107 / 0%);
  }
}
