#wolAsyncPageModal { padding: 0 !important; background: #f7f9fb; z-index: 11000; }
body.wol-async-page-open #StdModal { z-index: 11020; }
/* A retained page modal must not raise its backdrop over its own insight drawer.
   A nested standard dialog still owns the higher shared drawer backdrop layer. */
body.wol-async-page-open:not(:has(#StdModal.in)) > .modal-backdrop { z-index:10990 !important; }
#wolAsyncPageModal > .modal-dialog { position: relative; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; transform: none; }
#wolAsyncPageModal .modal-content { display: flex; flex-direction: column; width: 100%; max-width: none; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: #f7f9fb; }
.wol-async-page-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: .75rem 1.5rem; }
.wol-async-page-title { font-size: 1.125rem; font-weight: 600; }
.wol-async-page-actions { display: flex; align-items: center; gap: 1.25rem; }
.wol-async-page-actions > a, .wol-async-page-actions > button { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem; font: inherit; font-size: 1rem; border: 0; background: transparent; text-decoration: none; cursor: pointer; }
.wol-async-page-actions > a:hover, .wol-async-page-actions > button:hover, .wol-async-page-actions > :focus-visible { text-decoration: underline; }
#wolAsyncPageModal .modal-body { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; max-height: none; padding: 0 1.5rem; overflow: auto; overscroll-behavior: contain; }
#wolAsyncPageModal .wol-video-detail-layout { width: 100%; }
.wol-async-page-status { max-width: 45rem; margin: 3rem auto; font-size: 1rem; }
.wol-async-page-status a { display: inline-block; margin-top: 1rem; }
@media (max-width: 600px) {
    .wol-async-page-toolbar { padding: .5rem 1rem; }
    #wolAsyncPageModal .modal-body { padding: 0 .5rem; }
}
