.help-button-inline {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.creator-help-actions {
  justify-content: center;
  padding-top: 4px;
}

.help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.42);
}

.help-backdrop.active {
  display: flex;
}

.help-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid rgba(120, 136, 158, 0.36);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.help-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #d8e0ea;
  background: #f8fbff;
}

.help-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
  color: #17212f;
}

.help-subtitle {
  margin: 5px 0 0;
  color: #657386;
  font-size: 13px;
  line-height: 1.4;
}

.help-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #17212f;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.help-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e1e8f0;
}

.help-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.help-tabs button,
.help-action-row button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-weight: 750;
  cursor: pointer;
}

.help-tabs button.active {
  border-color: #1f6feb;
  background: #1f6feb;
  color: #fff;
}

.help-search {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
}

.help-action-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.help-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 24px;
  scroll-behavior: smooth;
}

.help-meta {
  margin: 0 0 14px;
  color: #657386;
  font-size: 12px;
}

.help-topic {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.help-topic summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #17212f;
  font-weight: 800;
  list-style-position: inside;
}

.help-topic[open] summary {
  border-bottom: 1px solid #edf1f6;
  background: #f8fbff;
}

.help-topic-content {
  padding: 12px 16px 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.48;
}

.help-topic-content p {
  margin: 0 0 10px;
}

.help-topic-content ul,
.help-topic-content ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.help-topic-content li {
  margin: 4px 0;
}

.help-note {
  padding: 10px 12px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background: #f8fbff;
  color: #334155;
}

.help-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.help-price-card {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.help-price-card b {
  display: block;
  color: #17212f;
}

.help-price-card span {
  color: #1f6feb;
  font-weight: 800;
}

.help-empty {
  color: #657386;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.help-back-top {
  display: inline-block;
  margin-top: 10px;
  color: #1f6feb;
  font-weight: 750;
}

button:focus-visible,
.help-search:focus-visible,
.help-topic summary:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.25);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .help-backdrop {
    padding: 8px;
  }

  .help-dialog {
    max-height: calc(100vh - 16px);
  }

  .help-controls {
    grid-template-columns: 1fr;
  }

  .help-action-row {
    justify-content: flex-start;
  }
}

@media print {
  body.help-printing > *:not(.help-backdrop) {
    display: none !important;
  }

  .help-backdrop,
  .help-backdrop.active {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
  }

  .help-dialog {
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  .help-controls,
  .help-close {
    display: none !important;
  }

  .help-body {
    overflow: visible;
  }

  .help-topic {
    break-inside: avoid;
  }
}
