.hmp-v43115-list-only-hidden {
  display: none !important;
}

.hmp-v43115-action-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px !important;
  align-items: stretch;
  width: 100%;
}

.hmp-v43115-action-grid > .btn,
.hmp-v43115-action-grid > button,
.hmp-v43115-action-grid > a {
  width: 100% !important;
  min-width: 0;
  min-height: 48px;
  margin: 0 !important;
  white-space: normal;
  line-height: 1.25;
  border-radius: 12px;
  font-weight: 700;
}

.hmp-v43115-funding-action {
  background: linear-gradient(135deg,#15243f,#1d3557) !important;
  border: 1px solid rgba(121,154,203,.45) !important;
  color: #f8fbff !important;
  box-shadow: 0 8px 20px rgba(7,18,36,.18);
}

.hmp-v43115-funding-action:hover,
.hmp-v43115-funding-action:focus-visible {
  background: linear-gradient(135deg,#1b3155,#24466f) !important;
  border-color: rgba(95,220,167,.75) !important;
  outline: 3px solid rgba(45,212,146,.24);
  outline-offset: 2px;
}

#modal-body.hmp-v43115-modal-body {
  position: relative;
  max-height: min(86dvh,780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: max(24px,calc(env(safe-area-inset-bottom) + 20px));
}

.hmp-v43115-modal-close {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 0 8px auto;
  padding: 0;
  border: 1px solid rgba(148,163,184,.42);
  border-radius: 50%;
  background: rgba(15,27,48,.96);
  color: #f8fafc;
  font: 700 30px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow: 0 8px 22px rgba(2,8,23,.28);
  cursor: pointer;
  touch-action: manipulation;
}

.hmp-v43115-modal-close:hover,
.hmp-v43115-modal-close:focus-visible {
  border-color: rgba(45,212,146,.8);
  outline: 3px solid rgba(45,212,146,.24);
  outline-offset: 2px;
}

@media (max-width:640px) {
  #main-modal .modal-content,
  #modal-body.hmp-v43115-modal-body {
    width: min(100%,calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
  }

  #modal-body.hmp-v43115-modal-body {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: max(28px,calc(env(safe-area-inset-bottom) + 24px));
  }

  .hmp-v43115-action-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px !important;
  }

  .hmp-v43115-action-grid > .btn,
  .hmp-v43115-action-grid > button,
  .hmp-v43115-action-grid > a {
    min-height: 52px;
    padding: 10px 8px;
    font-size: .92rem;
  }

  .hmp-project-funding-form .button-row,
  .hmp-project-funding-report .button-row {
    padding-bottom: max(8px,env(safe-area-inset-bottom));
  }
}

.user-menu .hmp-build-version{display:block;padding:8px 12px;text-align:center;opacity:.65;font-size:11px;letter-spacing:.04em}
