/* One overflow hint for tables, cards and lists, including teleported content. */
.xyj-overflow-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(480px, calc(100vw - 24px));
  max-height: min(280px, calc(100vh - 24px));
  padding: 8px 12px;
  border: 1px solid var(--xyj-ink-strong, #101828);
  border-radius: var(--xyj-radius, 6px);
  background: var(--xyj-ink-strong, #101828);
  color: var(--xyj-surface, #fff);
  box-shadow: var(--xyj-shadow-menu, 0 4px 16px rgb(16 24 40 / 16%));
  z-index: var(--xyj-layer-popover, 24000);
  overflow: auto;
  overscroll-behavior: contain;
  font: 400 13px / 1.55 var(--xyj-font-family, system-ui, sans-serif);
  text-align: start;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  pointer-events: auto;
}

.xyj-overflow-tooltip[hidden] {
  display: none;
}

.xyj-overflow-tooltip__content {
  white-space: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .xyj-overflow-tooltip {
    animation: xyj-overflow-tooltip-in 100ms ease-out;
  }
}

@keyframes xyj-overflow-tooltip-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
