button.library-help {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.library-help:focus-visible {
  outline: 2px solid #b8dcff;
  outline-offset: 3px;
  border-radius: 8px;
}

.help-dialog {
  width: min(78vw, 1500px);
  max-width: none;
  max-height: min(95vh, 1120px);
  padding: 0;
  overflow: auto;
  border: 1px solid #d5e1ec;
  border-radius: 18px;
  color: #132a47;
  background: #f7fafc;
  box-shadow: 0 24px 80px rgba(4, 21, 42, 0.34);
}

.help-dialog::backdrop {
  background: rgba(5, 19, 36, 0.68);
  backdrop-filter: blur(3px);
}

.help-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid #e1e9f0;
  background: #ffffff;
}

.help-dialog-eyebrow {
  margin: 0 0 5px;
  color: #2870ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.help-dialog-header h2 {
  margin: 0;
  font-size: 25px;
}

.help-dialog-header p:last-child {
  margin: 6px 0 0;
  color: #57708a;
  font-size: 14px;
}

.help-dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d4e0eb;
  border-radius: 10px;
  color: #274562;
  background: #f5f8fb;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.help-dialog-close:hover {
  background: #eaf2f9;
}

.help-dialog-content {
  display: grid;
  gap: 24px;
  padding: 24px 30px 28px;
}

.help-dialog-content h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.help-video-frame {
  width: 88%;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0b1725;
}

.help-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-faq-section {
  display: grid;
  gap: 9px;
}

.help-faq-section h3 {
  margin-bottom: 3px;
}

.help-faq-item {
  border: 1px solid #dce5ed;
  border-radius: 10px;
  background: #ffffff;
}

.help-faq-item summary {
  padding: 14px 16px;
  color: #183a5c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.help-faq-item p {
  margin: 0;
  padding: 0 16px 15px;
  color: #4c637a;
  font-size: 13px;
  line-height: 1.6;
}

.help-faq-item a,
.help-contact a {
  color: #1266a6;
  font-weight: 700;
  text-underline-offset: 2px;
}

.help-contact {
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid #dce5ed;
  color: #4c637a;
  font-size: 14px;
}

@media (max-width: 600px) {
  .help-dialog {
    width: calc(100vw - 20px);
    max-height: 92vh;
    border-radius: 14px;
  }

  .help-dialog-header {
    padding: 20px 18px 17px;
  }

  .help-dialog-content {
    gap: 20px;
    padding: 19px 18px 22px;
  }
}

.help-mobile-trigger {
  display: none;
  align-items: center;
  min-height: 34px;
  margin: 8px 0 5px;
  padding: 0 11px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  color: #184d79;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.help-mobile-trigger:focus-visible {
  outline: 2px solid #2870ad;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .help-mobile-trigger {
    display: inline-flex;
  }
}
