body > .popover.tour-tour {
    z-index: 2147483646 !important;
    max-width: min(22rem, calc(100vw - 1rem));
    font-size: 1rem;
}
.tour-tour-element {
    outline: 3px solid #2672bf;
    outline-offset: -2px;
}

/* The tour measures the target. Paint outside that rectangle so controls
   inside a fixed header stay visible through the opening. */
body:has(.tour-tour-element) > .tour-backdrop {
    background: transparent;
    z-index: 2147483644;
}
body:has(.tour-tour-element) > .tour-step-background {
    pointer-events: none;
    background: transparent;
    z-index: 2147483645;
    box-shadow: 0 0 0 2px white, 0 0 0 200vmax rgb(0 0 0 / 65%);
}

.popover.tour-tour .popover-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.popover.tour-tour .popover-navigation > .btn-group {
    position: static;
    float: none;
}
