/* Floating Variation Switcher Dock */
.db-switcher {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: #e4e4e7;
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.db-switcher::-webkit-scrollbar {
  display: none;
}

.db-switcher.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.db-switcher-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-right: 4px;
  white-space: nowrap;
}

.db-switcher-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #d4d4d8;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.db-switcher-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.db-switcher-link.is-active {
  background: #f4f4f5;
  color: #09090b;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.db-switcher-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.db-switcher-link.is-active .db-switcher-kbd {
  background: #18181b;
  color: #fafafa;
}

.db-switcher-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.db-switcher-close:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .db-switcher-label {
    display: none;
  }
  .db-switcher {
    bottom: 12px;
    padding: 5px 6px;
    font-size: 11.5px;
  }
  .db-switcher-link {
    padding: 5px 9px;
  }
}
