/* Shared hover labels: replace native title tooltips everywhere. */

.ui-tooltip {
  position: fixed;
  z-index: 240;
  inset: unset;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  height: fit-content;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong, rgba(148, 163, 184, 0.28));
  border-radius: 7px;
  color: var(--text, #eef2f8);
  background: var(--surface-raised, #1d2431);
  box-shadow: var(--shadow-soft, 0 12px 40px rgba(0, 0, 0, 0.28));
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
  color-scheme: dark;
}

.ui-tooltip[hidden],
.ui-tooltip[popover]:not(:popover-open) {
  display: none;
}
