.app-main:has(> .help-page) {
  display: flex;
  flex-direction: column;
}
.help-tabs {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 16px;
}
.help-tabs .badge {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
}
.help-page {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 20px;
}
.help-page .card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.help-page .help-nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.help-page .help-search {
  flex: none;
  display: flex;
  gap: 6px;
  padding: 20px 20px 14px;
}
.help-page .help-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
.help-page .help-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}
.help-page .help-search .btn {
  flex: 0 0 auto;
}
.help-page .help-nav-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.help-page .help-nav-title {
  margin: 14px 0 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.help-page .help-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-page .help-nav-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.help-page .help-nav-list a:hover {
  background: var(--surface-hover);
}
.help-page .help-nav-list a[aria-current="page"] {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.help-page .help-article {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.help-page .help-article-head {
  flex: none;
  padding: 24px 28px 14px;
  border-bottom: 1px solid var(--border);
}
.help-page .help-article-head .help-title {
  margin: 0;
}
.help-page .help-article-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 28px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.help-page .help-breadcrumbs {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
}
.help-page .help-breadcrumbs a {
  color: var(--text-muted);
}
.help-page .help-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.help-page .help-title-row .help-print {
  margin-left: auto;
  flex: 0 0 auto;
}
.help-page .help-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
}
.help-page .help-intro,
.help-page .help-empty {
  color: var(--text-muted);
}
.help-page .help-index {
  padding-left: 20px;
}
.help-page .help-index li + li {
  margin-top: 4px;
}
.help-page .help-content {
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 760px;
}
.help-page .help-content h2 {
  margin: 1.4em 0 .5em;
  font-size: 20px;
}
.help-page .help-content h3 {
  margin: 1.2em 0 .4em;
  font-size: 17px;
}
.help-page .help-content h4 {
  margin: 1em 0 .3em;
  font-size: 15.5px;
}
.help-page .help-content > :first-child {
  margin-top: 0;
}
.help-page .help-content p,
.help-page .help-content ul,
.help-page .help-content ol {
  margin: 0 0 .8em;
}
.help-page .help-content ul,
.help-page .help-content ol {
  padding-left: 22px;
}
.help-page .help-content li + li {
  margin-top: 4px;
}
.help-page .help-content kbd {
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}
.help-page .help-tip {
  margin: 0 0 1em;
  padding: 10px 14px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--primary-50);
}
.help-page .help-figure {
  margin: 1em 0 1.2em;
}
.help-page .help-figure a {
  cursor: zoom-in;
}
.help-page .help-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}
.help-page .help-figure figcaption {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}
.help-page .help-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.help-page .help-results li {
  padding: 12px 0;
}
.help-page .help-results li + li {
  border-top: 1px solid var(--border);
}
.help-page .help-result-title {
  font-size: 17px;
  font-weight: 650;
}
.help-page .help-result-section {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.help-page .help-result-snippet {
  margin: 4px 0 0;
  color: var(--text-muted);
}
.help-page .help-result-snippet mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--warning-bg);
  color: var(--text);
}
@media (max-width: 899.98px) {
  .help-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
  }
  .help-page .help-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }
  .help-page .help-search {
    flex: 1 1 150px;
    min-width: 0;
    padding: 0;
  }
  .help-page .help-nav-body {
    display: none;
  }
  .help-page .help-article-head {
    padding: 16px 20px 12px;
  }
  .help-page .help-article-body {
    padding: 16px 20px 20px;
  }
}
@media (max-width: 639.98px) {
  .help-page .help-title {
    font-size: 22px;
  }
  .help-page .help-article-head {
    padding: 14px 16px 10px;
  }
  .help-page .help-article-body {
    padding: 14px 16px 18px;
  }
  .help-page .help-print .btn-text {
    display: none;
  }
}
@media (max-width: 899.98px) and (max-height: 500px) {
  .app-main:has(> .help-page) {
    display: block;
  }
  .help-page {
    grid-template-rows: none;
  }
  .help-page .help-article,
  .help-page .help-article-body {
    overflow: visible;
  }
}
@media print {
  .help-page {
    display: block;
  }
  .help-page .help-article,
  .help-page .help-article-body {
    display: block;
    overflow: visible;
  }
  .help-page .help-nav,
  .help-page .help-print,
  .help-page .help-breadcrumbs {
    display: none;
  }
  .help-page .card,
  .help-page .help-article-head,
  .help-page .help-article-body {
    padding: 0;
    border: none;
    box-shadow: none;
  }
  .help-page .help-article-head {
    margin-bottom: 16px;
  }
  .help-page .help-figure img {
    box-shadow: none;
  }
  .help-lightbox {
    display: none !important;
  }
}
.help-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
}
.help-lightbox::backdrop {
  background: rgba(0, 0, 0, .86);
}
.help-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.help-lightbox:focus {
  outline: none;
}
.help-lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 56px 16px 16px;
}
.help-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
}
.help-lightbox figcaption {
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
}
.help-lightbox .help-lightbox-close,
.help-lightbox .help-lightbox-prev,
.help-lightbox .help-lightbox-next {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .45);
  color: #fff;
}
.help-lightbox .help-lightbox-close:hover,
.help-lightbox .help-lightbox-prev:hover,
.help-lightbox .help-lightbox-next:hover {
  background: rgba(0, 0, 0, .7);
}
.help-lightbox .help-lightbox-close {
  top: 12px;
  right: 12px;
}
.help-lightbox .help-lightbox-prev,
.help-lightbox .help-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.help-lightbox .help-lightbox-prev {
  left: 12px;
}
.help-lightbox .help-lightbox-next {
  right: 12px;
}
