/* PRIVATE PREVIEW: focus only; no hover/active palette or geometry change. */
.bbb_viewed_slider [data-fergra-history-access="preview-v1"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* V2 CSS-only pilot: ceil(sticky header112.59375)+12px. */
.bbb_viewed_slider [data-fergra-history-access="preview-v1"] {
    scroll-margin-top: 125px;
}

/* V3 native Popper boundary only: no flow, typography or timeline dimensions. */
.fergra-history-popover-boundary {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    visibility: hidden;
    pointer-events: none;
}

/* V3.2: measured viewport-limited popup width adaptation in short, sufficiently wide viewports.
   Original font, content, palette and timeline/item geometry are retained. */
@media (min-width: 600px) and (max-height: 460px) {
    .fergra-history-popover { max-width: calc(100vw - 16px); }
}

/* V3.3: measured narrow-landscape deficit4px (DE2009 h170, budget166).
   Original vertical3em=45px at15px font. Minus3px per side gives h164.
   687px is671px measured text width +16px viewport reserve; wide views retain45px. */
@media (min-width: 600px) and (max-width: 686px) and (max-height: 460px) {
    .fergra-history-popover .popover-body {
        padding-top: calc(3em - 3px);
        padding-bottom: calc(3em - 3px);
    }
}
