/* Foydalanuvchi qo'llanmasi */
.help-main-wrap {
  max-width: none;
  padding: 0.75rem 1rem 1.5rem;
}

.help-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.help-sidebar {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  padding: 0.85rem;
}

.help-sidebar-top {
  margin-bottom: 0.75rem;
}

.help-back-btn {
  margin-bottom: 0.75rem;
}

.help-search-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  margin-bottom: 0.25rem;
}

.help-search-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 0.9rem;
}

.help-search-hint {
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
  min-height: 1.1em;
}

.help-toc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.help-toc-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text, #111);
  text-decoration: none;
  line-height: 1.35;
}

.help-toc-link:hover {
  background: rgba(59, 130, 246, 0.08);
}

.help-toc-link.active {
  background: rgba(59, 130, 246, 0.15);
  font-weight: 600;
  color: var(--primary, #2563eb);
}

.help-toc-link.hidden-by-search {
  display: none;
}

.help-content {
  padding: 1rem 1.25rem 2rem;
  min-width: 0;
}

.help-content-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.help-content-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.help-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.help-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.help-article {
  scroll-margin-top: 1rem;
  padding-top: 0.25rem;
}

.help-article.hidden-by-search {
  display: none;
}

.help-article h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--primary, #2563eb);
}

.help-article h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.05rem;
}

.help-article h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}

.help-lead {
  font-size: 1rem;
  color: var(--muted, #4b5563);
  margin: 0 0 0.75rem;
}

.help-steps {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
}

.help-steps li {
  margin-bottom: 0.35rem;
}

.help-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}

.help-list li {
  margin-bottom: 0.3rem;
}

.help-note,
.help-warn {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

.help-note {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.help-warn {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
}

.help-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.help-table th,
.help-table td {
  border: 1px solid var(--border, #e5e7eb);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.help-table th {
  background: #f9fafb;
}

.help-faq dt {
  font-weight: 600;
  margin-top: 0.65rem;
}

.help-faq dd {
  margin: 0.2rem 0 0.5rem 0;
  color: var(--muted, #4b5563);
}

.help-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border, #e5e7eb);
}

.help-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
}

@media (max-width: 900px) {
  .help-shell {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    max-height: none;
    border-radius: 0;
  }

  .help-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .help-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin: 0;
}

.panel-head-with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.panel-head-with-help .panel-head-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.help-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--primary, #2563eb);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.help-icon-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: scale(1.05);
}

.help-icon-btn-sm {
  width: 28px;
  height: 28px;
}

.help-icon-btn-sm svg {
  width: 15px;
  height: 15px;
}

.topbar .help-nav-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border, #d1d5db);
}

.topbar .help-nav-link:hover {
  background: rgba(59, 130, 246, 0.08);
}
