/* Native dialog top layer is independent of the WordPress header's z-index. */
dialog.bst-tabletop-screen {
    position:fixed; inset:0; margin:0; padding:0; border:0; border-radius:0;
    width:100%; max-width:none; height:100vh; height:100dvh; max-height:none;
    overflow:auto; overscroll-behavior:contain; background:#10201f; color:#f3e7cb;
    box-sizing:border-box; z-index:2147483647!important;
}
dialog.bst-tabletop-screen::backdrop { background:#10201f; }
dialog.bst-tabletop-screen:not([open]) { display:none; }
.bst-tabletop-screen #bst-tabletop-online {
    width:100%; max-width:none; min-height:100%; margin:0; border:0; border-radius:0;
    padding-top:env(safe-area-inset-top,0px); padding-bottom:max(24px,env(safe-area-inset-bottom,0px));
    padding-left:max(18px,env(safe-area-inset-left,0px)); padding-right:max(18px,env(safe-area-inset-right,0px));
    overflow:visible; box-shadow:none;
}
.bst-tabletop-screen #bst-tabletop-online .eto-top { position:sticky; top:0; z-index:30; background:#1c302b; }
.bst-tabletop-screen #bst-tabletop-online .eto-top>div { flex-wrap:wrap; justify-content:flex-end; }
.bst-tabletop-screen .bst-tri-overlay { padding:0; background:#10201f; }
.bst-tabletop-screen .bst-tri {
    width:100%; height:100vh; height:100dvh; max-width:none; max-height:none;
    border:0; border-radius:0; padding-top:env(safe-area-inset-top,0px);
    padding-bottom:env(safe-area-inset-bottom,0px); padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px);
}
.bst-tabletop-screen .bst-tri-inspect { z-index:40; }
.bst-tabletop-screen .bst-tri-top { position:sticky; top:0; z-index:25; background:#1c302b; }
@media(max-width:650px) {
    .bst-tabletop-screen #bst-tabletop-online { padding-left:max(12px,env(safe-area-inset-left,0px)); padding-right:max(12px,env(safe-area-inset-right,0px)); }
    .bst-tabletop-screen .bst-tri-tools { flex-wrap:wrap; justify-content:flex-end; }
}
