.wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.trigger {
  /* No default border or cursor — Tooltip wraps non-text elements too */
}

.triggerUnderlined {
  border-bottom: 1px dotted var(--color-text-secondary, rgba(203, 213, 225, 0.9));
  cursor: help;
}

/* Bubble is portaled to document.body; top/left set inline from the trigger's
   viewport rect. Transform positions the bubble's bottom-center at (top, left)
   minus a 6px gap, so the bubble sits above-and-centered on the trigger. */
.bubble {
  position: fixed;
  transform: translate(-50%, calc(-100% - 6px));
  min-width: 180px;
  max-width: 320px;
  padding: 8px 12px;
  background: var(--color-surface, #1e293b);
  color: var(--color-text-primary, #f8fafc);
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.25));
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  white-space: normal;
  pointer-events: none;
  z-index: 1000;
  animation: fadeIn 120ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-border, rgba(148, 163, 184, 0.25));
}
