.app-document-link,
.app-external-link,
.app-native-link {
  -webkit-tap-highlight-color: rgba(3, 79, 132, 0.18);
}

@media (max-width: 767px) {
  .app-hide-mobile,
  .app-nonessential-document {
    display: none !important;
  }
}

.app-link-modal-open {
  overflow: hidden;
}

.app-link-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  background: #ffffff;
}

.app-link-modal.is-open {
  display: flex;
  flex-direction: column;
}

.app-link-modal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 10px;
  background: #034f84;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.app-link-modal__title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 14px/1.3 Arial, sans-serif;
}

.app-link-modal__button {
  min-width: 40px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font: 600 13px/1 Arial, sans-serif;
  cursor: pointer;
}

.app-link-modal__button:active,
.app-link-modal__button:focus {
  background: rgba(255, 255, 255, 0.28);
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.app-link-modal__frame {
  width: 100%;
  flex: 1;
  border: 0;
  background: #ffffff;
}
/* Keep the viewer usable above native WebView controls and device safe areas. */
.app-link-modal { height: 100vh; height: 100dvh; box-sizing: border-box; }
.app-link-modal__bar { padding-top: calc(6px + env(safe-area-inset-top, 0px)); flex: 0 0 auto; }
.app-link-modal__frame { min-height: 0; width: 100%; }
@media (max-width: 991.98px) {
  .app-link-modal { padding-bottom: calc(var(--app-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px)); }
}