.help-q,
.help-open {
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.help-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 0 0 8px;
  padding: 0;
  border-radius: 980px;
  background: var(--fog, #f5f5f7);
  color: var(--ink, #1d1d1f);
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}
.help-open {
  border-radius: 980px;
  padding: 8px 14px;
  background: var(--fog, #f5f5f7);
  color: var(--ink, #1d1d1f);
  font-size: 14px;
}
h2 .help-q { margin-top: -2px; }

.help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}
.help-backdrop.hidden { display: none !important; }
.help-panel {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1d1d1f;
  border-radius: 18px;
  padding: 20px 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.help-backdrop[data-theme="dark"] .help-panel {
  background: #161618;
  color: #f5f5f7;
}
.help-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e73;
  font-weight: 600;
}
.help-backdrop[data-theme="dark"] .help-kicker { color: #a1a1a6; }
.help-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.help-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.help-lead {
  margin: 0 0 16px;
  color: #6e6e73;
  font-size: 15px;
  line-height: 1.45;
}
.help-backdrop[data-theme="dark"] .help-lead { color: #a1a1a6; }
.help-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.help-num {
  width: 28px;
  height: 28px;
  border-radius: 980px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-backdrop[data-theme="dark"] .help-num {
  background: #f5f5f7;
  color: #0b0b0d;
}
.help-step h3 {
  margin: 4px 0 4px;
  font-size: 15px;
}
.help-step p,
.help-panel > p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a3c;
}
.help-backdrop[data-theme="dark"] .help-step p,
.help-backdrop[data-theme="dark"] .help-panel > p { color: #d2d2d7; }
.help-note {
  color: #6e6e73 !important;
  font-size: 13px !important;
}
.help-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.help-close {
  width: 100%;
  margin-top: 12px;
  flex-shrink: 0;
  border: 0;
  border-radius: 980px;
  padding: 12px 18px;
  background: #1d1d1f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.help-backdrop[data-theme="dark"] .help-close {
  background: #0a84ff;
}
.help-more {
  display: inline-block;
  margin: 8px 0 12px;
  font-size: 14px;
  color: #0071e3;
}
.help-backdrop[data-theme="dark"] .help-more { color: #0a84ff; }

@media (min-width: 640px) {
  .help-backdrop { padding-top: 48px; }
}
