.app-help-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  vertical-align: middle;
}
.app-help-info-btn:hover,
.app-help-info-btn:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.app-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}
.app-help-modal[hidden] {
  display: none !important;
}
.app-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.app-help-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(80dvh, 32rem);
  overflow: auto;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 12px;
  background: var(--panel, #141824);
  color: var(--text, #e8eaf0);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: var(--shadow, 0 16px 48px rgba(0, 0, 0, 0.45));
}
.app-help-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.app-help-modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
}
.app-help-modal__close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 0.2rem;
}
.app-help-modal__close:hover {
  opacity: 1;
}
.app-help-modal__body {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.92;
}
.app-help-modal__body p {
  margin: 0 0 0.65rem;
}
.app-help-modal__body p:last-child {
  margin-bottom: 0;
}
.app-help-modal__body ul {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}
.app-help-modal__body li {
  margin-bottom: 0.35rem;
}
.app-help-modal__body .app-help-more {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.88rem;
}
.app-help-modal__body .app-help-more a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .app-help-modal {
    align-items: flex-end;
    padding: 0;
  }

  .app-help-modal__panel {
    width: 100%;
    max-height: min(88dvh, 100%);
    border-radius: 16px 16px 0 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .app-help-modal__close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
