  /* ================================================================
     Themed hover tooltips — replaces the browser's unstyled native
     title="" bubble everywhere in the app. frontend/js/tooltip.js
     swaps `title` for `data-tooltip-text` on hover/focus and renders
     this single shared bubble instead, so every hint in the app
     (icon buttons, truncated labels, badges, ...) gets one consistent
     look without touching each call site.
     ================================================================ */
  .holo-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    max-width: 280px;
    padding: 6px 10px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }
  .holo-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .holo-tooltip::after {
    content: "";
    position: absolute;
    left: var(--tooltip-arrow-x, 50%);
    width: 8px;
    height: 8px;
    background: var(--panel-2);
    transform: translateX(-50%) rotate(45deg);
  }
  /* Tooltip sits above the target: arrow on its bottom edge, pointing down. */
  .holo-tooltip:not(.below)::after {
    bottom: -5px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  /* Tooltip sits below the target: arrow on its top edge, pointing up. */
  .holo-tooltip.below::after {
    top: -5px;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  @media (max-width: 720px) {
    .holo-tooltip { display: none; }
  }
