/* Keep navigation and interaction hints above inline protected players.
   Native fullscreen and the existing immersive player remain above these UI layers. */
html body:has(.dx-interview-native-player) #dxTop {
  z-index: 2147483000 !important;
}
html body:not(#dx-never) .dx-main :is(.dx-media-interaction-row, .dx-in-depth-lesson-info-row),
html body:not(#dx-never) .dx-main .dx-interview-intro-video > .riix-content-interactions,
html body:not(#dx-never) .dx-main .dx-interview-native-player + .riix-content-interactions {
  position: relative !important;
  z-index: 2147482003 !important;
}
html body.home #dxWorkbench .dx-home-notices-section .dx-site-log-date,
html body.home #dxWorkbench .dx-home-latest-single .dx-row-date {
  transform: translateY(var(--dx-home-date-offset, 0px)) !important;
}

/* Document layer order (inside the existing article/book stacking contexts):
 * inline protected video 2001 -> article trace 2002 -> action hints 2003;
 * site navigation 3000 -> transient access notices 3100;
 * PDF/image dialogs and immersive video retain 2147483647. Native fullscreen
 * belongs to the browser top layer. Do not alter the watermark's own layers.
 * Prefixes above are 214748; these values fit below the signed CSS maximum.
 */
html body .dx-course-login-notice-shell,
html body .dx-course-login-notice-shell.riix-content-interaction-login-notice-shell,
html body .dx-course-login-notice-shell .dx-course-login-notice,
html body .dx-home-access-tip-shell,
html body .dx-photo-access-tip-shell,
html body .dx-course-locked-tip-shell {
  z-index:2147483100!important;
}
html body .dx-course-locked-tip-shell {
  position:relative;
}
/* The global image viewer otherwise sits below protected inline players. */
html body .dx-image-viewer-modal {
  z-index:2147483647!important;
}

/* A document notice must not survive over a modal or simulated fullscreen.
 * Notices are transient; their existing timers still handle normal dismissal.
 * The fullscreen player keeps its own message/control layers.
 */
html:has(.dx-image-viewer-modal[aria-hidden="false"]) body :is(.dx-course-login-notice-shell,.dx-home-access-tip-shell,.dx-photo-access-tip-shell,.dx-course-locked-tip-shell),
html.dx-course-pdf-open body :is(.dx-course-login-notice-shell,.dx-home-access-tip-shell,.dx-photo-access-tip-shell,.dx-course-locked-tip-shell),
html.dx-video-immersive-locked body :is(.dx-course-login-notice-shell,.dx-home-access-tip-shell,.dx-photo-access-tip-shell,.dx-course-locked-tip-shell) {
  visibility:hidden!important;
}
