.portal-tooltip {
    position: fixed;
    inset: auto;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: max-content;
    max-width: min(24rem, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    overflow: auto;
    margin: 0;
    padding: .75rem .875rem;
    border: 1px solid var(--tone-d5e0e4, #d5e0e4);
    border-radius: .5rem;
    background: var(--surface, #fff);
    color: var(--tone-182b34, #182b34);
    box-shadow: 0 4px 16px #0003;
    font: 400 .875rem/1.45 "ABC Monument Grotesk", system-ui, sans-serif;
    text-align: start;
    pointer-events: auto;
}
.portal-tooltip__text { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.portal-tooltip__icon { flex: none; width: 32px; height: 32px; object-fit: contain; }
.portal-tooltip__icon > * { display: block; width: 100%; height: 100%; }
@media (any-pointer: coarse) {
    :is(button, a[href], [role="button"]):is([data-tooltip-key], [data-tooltip-text], [title]):has(img, svg, [data-theme-icon]),
    [data-tooltip-touch] {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}
@media print {
    .portal-tooltip { display: none; }
}
