#app-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  padding: 10px 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#app-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#app-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #0f172a;
  transform: translateX(-50%) rotate(45deg);
}

#app-tooltip[data-placement="top"]::after {
  bottom: -4px;
}

#app-tooltip[data-placement="bottom"]::after {
  top: -4px;
}

/* The (i) trigger itself */
.info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  border-radius: 50%;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  vertical-align: middle;
}

.info-trigger:hover,
.info-trigger:focus-visible {
  background: #0f172a;
  color: #ffffff;
  outline: none;
  transform: scale(1.08);
}

.info-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  #app-tooltip,
  .info-trigger {
    transition: none !important;
    transform: none !important;
  }
}
