.coill-help-dialog {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; border: 0; background: transparent; color: inherit;
}
.coill-help-dialog:not([open]) { display: none; }
.coill-help-dialog[open] { display: flex; align-items: center; justify-content: center; }
.coill-help-dialog::backdrop { background: rgb(15 23 42 / 68%); }
html:has(.coill-help-dialog[open]) { overflow: hidden; }
.coill-help-dialog[open] > :first-child {
  display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden;
}
.coill-help-dialog [data-help-body] { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.coill-help-dialog [data-help-heading] { flex: none; }
.coill-mobile-sidebar[open] {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0;
  width: min(16rem, 100%); max-width: none; height: 100%; max-height: none;
  color: inherit; background: white; overscroll-behavior: contain;
}
.coill-mobile-sidebar::backdrop { background: rgb(15 32 24 / 38%); }
.coill-mobile-sidebar[open] > #sidebar {
  position: relative; inset: auto; width: 100%; height: 100%; transform: none; transition: none;
}
@media (max-width: 767px), (max-height: 540px) {
  button:is([aria-controls$="sarpas-help-modal"], [aria-controls="base-location-help-modal"]) {
    min-width: 44px; min-height: 44px; flex-shrink: 0;
  }
  button[data-coill-dismiss] {
    /* Some admin grids explicitly reset the minimum of every descendant. */
    min-width: 44px !important;
    min-height: 44px;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  /* The exit must remain visible even if the external icon font is unavailable. */
  button[data-coill-dismiss] > i:is(.fa-xmark, .fa-close, .fa-times)::before {
    content: "\00d7";
    font: 400 1.4rem/1 sans-serif;
  }
  .coill-bounded-dialog {
    padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right))
             max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  }
  .coill-bounded-dialog > :first-child {
    max-height: 100%;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .coill-bounded-dialog .mobile-dialog-close { min-width: 44px; min-height: 44px; flex-shrink: 0; }
}
