/* An independent screen layer preserves layout, focus, editor and iframe state. */
#cktis-privacy-shield {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  z-index: 2147483647;
  background: #071321;
  pointer-events: none;
  user-select: none;
}

#cktis-privacy-shield::backdrop {
  background: transparent;
  pointer-events: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #cktis-privacy-shield {
    background: rgba(7, 19, 33, .92);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
  }
}

@media screen {
  #cktis-privacy-shield[data-active="true"] { display: block; }

  /* Dialogs opened asynchronously may be above the existing top-layer shield.
     Opacity preserves their focus/geometry; it is removed on normal return. */
  html[data-cktis-privacy-shield="active"] dialog[open] { opacity: 0 !important; }
  html[data-cktis-privacy-shield="active"] [popover]:popover-open:not(#cktis-privacy-shield) { opacity: 0 !important; }
}

@media print {
  /* Keep permitted legal documents, certificates and paid CV printing intact. */
  #cktis-privacy-shield { display: none !important; }
}
