/**
 * Family Office kit — Comet / Tahoe tooltips (Pockit seed).
 * Replaces slow native title bubbles. Use data-comet-tip (\\n = second line)
 * or plain title= (auto-migrated by fo-comet-tooltip.js).
 */

#comet-tooltip-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Above Father rails / floor bar / handles (≈2.147e9) — was 12000 and hid under chrome */
  z-index: 2147483646;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, visibility 0.14s ease;
  /* Own stacking context so nothing inside a rail can paint over the bubble */
  isolation: isolate;
}

#comet-tooltip-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.comet-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--fo-border, var(--border, rgba(255, 255, 255, 0.12))) 88%, transparent);
  background: color-mix(in srgb, var(--fo-panel, var(--bg-1, #1a1a1e)) 94%, #000);
  color: var(--fo-fg, var(--fg-0, #f5f5f7));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.comet-tooltip__line {
  display: block;
}

.comet-tooltip__line + .comet-tooltip__line {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--fo-fg-2, var(--fg-2, #a1a1aa));
}

@media (prefers-reduced-motion: reduce) {
  #comet-tooltip-layer {
    transition: none;
  }
}
