.help-page {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.help-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(47, 125, 246, 0.16), transparent 32%),
    #ffffff;
}

.help-kicker {
  margin: 0 0 4px;
  color: #1d6ff2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.help-hero-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.help-hero-card p {
  margin: 6px 0 0;
  color: #6d7788;
  font-weight: 700;
  line-height: 1.5;
}

.help-hero-badge {
  width: 150px;
  min-width: 150px;
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(135deg, #2f7df6, #0b5fdd);
  color: #fff;
  box-shadow: 0 18px 36px rgba(47, 125, 246, 0.22);
  display: grid;
  gap: 4px;
  text-align: center;
}

.help-hero-badge b {
  font-size: 34px;
  line-height: 1;
}

.help-hero-badge span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
}

.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.help-quick-card {
  text-align: left;
  display: grid;
  gap: 6px;
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  color: #152033;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(33, 54, 94, 0.05);
}

.help-quick-card:hover {
  border-color: #8fc3ff;
  background: #f4f9ff;
}

.help-quick-card b {
  font-size: 16px;
  font-weight: 900;
}

.help-quick-card span {
  color: #6d7788;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.help-toolbar-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.help-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.help-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.help-sections {
  display: grid;
  gap: 14px;
}

.help-step-card {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  border-radius: 24px !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08) !important;
}

.help-step-card.hidden,
.help-empty-state.hidden {
  display: none !important;
}

.help-step-card[data-tone="yellow"] { --help-main: #f4c20d; --help-soft: #fff8d8; --help-dark: #b88700; }
.help-step-card[data-tone="slate"]  { --help-main: #8fa1bd; --help-soft: #edf2f8; --help-dark: #64748b; }
.help-step-card[data-tone="lime"]   { --help-main: #7bc35a; --help-soft: #eefbe6; --help-dark: #4f8a36; }
.help-step-card[data-tone="green"]  { --help-main: #18b35d; --help-soft: #e8fbf0; --help-dark: #0f7d40; }
.help-step-card[data-tone="cyan"]   { --help-main: #41c2db; --help-soft: #ebfbfe; --help-dark: #16829a; }
.help-step-card[data-tone="blue"]   { --help-main: #4b89c9; --help-soft: #edf5ff; --help-dark: #2c5f95; }
.help-step-card[data-tone="brown"]  { --help-main: #a78a74; --help-soft: #f5efe9; --help-dark: #7a5d48; }
.help-step-card[data-tone="orange"] { --help-main: #ef6a21; --help-soft: #fff1e8; --help-dark: #bc4d10; }
.help-step-card[data-tone="pink"]   { --help-main: #ef3ea5; --help-soft: #fff0fa; --help-dark: #b91f7b; }
.help-step-card[data-tone="purple"] { --help-main: #9c4ee2; --help-soft: #f7f0ff; --help-dark: #7130af; }
.help-step-card[data-tone="violetblue"] { --help-main: #7667e8; --help-soft: #f1efff; --help-dark: #4a3fc4; }
.help-step-card[data-tone="gold"]   { --help-main: #f4c20d; --help-soft: #fff8d7; --help-dark: #b88600; }

.help-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--help-main);
  z-index: 1;
}

.help-step-header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px 18px 0;
  border: 0;
  background: #ffffff;
  color: #152033;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.help-step-number {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 10px 12px 12px;
  color: #ffffff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--help-main) 84%, white 16%), var(--help-main));
  border-bottom-right-radius: 42px;
  border-top-left-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 24px rgba(0, 0, 0, 0.08);
  min-height: 88px;
}

.help-step-number b {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.help-step-number small {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.help-step-content {
  min-width: 0;
}

.help-step-tag {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--help-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-step-content h3 {
  margin: 0;
  color: #182436;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.help-step-content p {
  margin: 6px 0 0;
  color: #7a8495;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.help-step-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  padding-right: 2px;
}

.help-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--help-soft);
  color: var(--help-dark);
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.help-step-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
  color: var(--help-dark);
  background: var(--help-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.help-step-body {
  display: none;
  padding: 0 20px 20px 20px;
  background: #ffffff;
  color: #334155;
  line-height: 1.8;
  font-size: 15px;
}

.help-step-card.open .help-step-body {
  display: block;
}

.help-step-body p {
  margin: 0 0 10px;
}

.help-step-body ul,
.help-step-body ol {
  margin: 8px 0 0 22px;
  padding: 0;
}

.help-step-body li {
  margin: 6px 0;
}

.help-empty-state {
  padding: 20px;
  color: #6d7788;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1180px) {
  .help-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-toolbar-card {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .help-step-header {
    grid-template-columns: 100px minmax(0, 1fr) 70px;
    gap: 12px;
    padding-right: 14px;
  }

  .help-step-number {
    min-height: 78px;
  }

  .help-step-number b {
    font-size: 28px;
  }

  .help-step-content h3 {
    font-size: 20px;
  }

  .help-step-content p {
    font-size: 12px;
  }

  .help-step-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .help-hero-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .help-hero-card h2 {
    font-size: 26px;
  }

  .help-hero-badge {
    width: 100%;
    min-width: 0;
  }

  .help-quick-grid,
  .help-search-wrap {
    grid-template-columns: 1fr;
  }

  .help-action-row button,
  .help-search-wrap button {
    width: 100%;
  }

  .help-step-header {
    grid-template-columns: 1fr;
    padding: 0 0 16px 0;
    gap: 0;
  }

  .help-step-number {
    width: 112px;
    min-height: 84px;
    border-bottom-right-radius: 38px;
  }

  .help-step-content {
    padding: 14px 16px 0 16px;
  }

  .help-step-side {
    padding: 12px 16px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .help-step-body {
    padding: 0 16px 16px 16px;
    font-size: 14px;
  }
}
