.ai-qa-launcher {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 920;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 116px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(42, 98, 61, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #1f5e3a;
  box-shadow: 0 12px 30px rgba(24, 56, 36, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ai-qa-launcher svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ai-qa-launcher:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(24, 56, 36, 0.22), inset 0 1px 0 #ffffff;
}

.ai-qa-launcher.is-dragging,
.ai-qa-launcher.is-dragging:hover {
  cursor: grabbing;
  transform: none;
  transition: none;
}

.ai-qa-launcher:focus-visible {
  outline: 3px solid rgba(47, 128, 81, 0.34);
  outline-offset: 3px;
}

body.dark-theme .ai-qa-launcher,
body[data-theme="dark"] .ai-qa-launcher {
  border-color: rgba(174, 223, 190, 0.28);
  background: rgba(27, 48, 35, 0.88);
  color: #d5f3df;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .ai-qa-launcher {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: 108px;
    height: 42px;
    padding: 0 14px;
  }
}
