body.help-page {
  min-height: 100vh;
  background: #fbfbf8;
  color: #171717;
  --help-ink: #171717;
  --help-muted: rgba(23, 23, 23, 0.62);
  --help-soft: rgba(23, 23, 23, 0.08);
  --help-line: rgba(24, 22, 20, 0.1);
  --help-panel: #ffffff;
  --help-panel-strong: #ffffff;
  --help-brand: #f5c400;
  --help-brand-strong: #d29300;
  --help-accent: #241a07;
}

.help-shell {
  width: min(1280px, calc(100vw - 36px));
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1280px) {
  .help-page .public-shell-aware,
  .help-page .help-shell.public-shell-aware {
    width: min(1240px, calc(100vw - 292px));
    margin-left: calc(228px + max(32px, (100vw - 228px - min(1240px, calc(100vw - 292px))) / 2));
    margin-right: auto;
  }
}

.help-page .public-product-shell {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(23, 23, 23, 0.06);
  box-shadow: none;
}

.help-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--help-line);
}

.help-page-head-copy {
  display: grid;
  gap: 4px;
}

.help-page-kicker,
.help-panel-kicker {
  margin: 0;
  color: #9f7e26;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.help-page-head h1,
.help-hero-card h2,
.help-topic-card h2,
.help-docs-head h2,
.help-admin-head h2 {
  margin: 0;
  color: var(--help-ink);
  letter-spacing: 0;
}

.help-page-head h1 {
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
}

.help-page-head-meta {
  align-self: center;
  color: rgba(23, 23, 23, 0.56);
  font-size: 13px;
  font-weight: 800;
}

body.home-shell-embedded .help-page-head {
  display: none;
}

body.home-shell-embedded .help-stage {
  padding-top: 0;
}

.help-stage,
.help-docs-layout {
  padding: 14px 0 0;
}

.help-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.help-docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 12px;
  align-items: start;
}

.help-page:not(.is-admin) .help-docs-layout {
  grid-template-columns: minmax(0, 1fr);
}

.help-panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--help-line);
  border-radius: 8px;
  background: var(--help-panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.help-hero-card {
  min-height: 0;
  padding: 22px;
  background: #ffffff;
}

.help-hero-orb,
.help-hero-dots,
.help-topic-glow {
  display: none;
}

.help-hero-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
}

.help-hero-text {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  max-width: 66ch;
  color: var(--help-muted);
  font-size: 14px;
  line-height: 1.62;
}

.help-search-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 18px;
}

.help-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(24, 22, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.help-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: rgba(23, 23, 23, 0.38);
  transform: translateY(-50%);
}

.help-search-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.help-search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--help-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.help-search-field input::placeholder {
  color: rgba(23, 23, 23, 0.36);
}

.help-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-search-submit,
.help-search-reset,
.help-admin-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.help-search-submit,
.help-admin-publish {
  border: 1px solid rgba(196, 138, 0, 0.18);
  background: #ffd23f;
  color: var(--help-accent);
  cursor: pointer;
}

.help-search-submit:hover,
.help-search-submit:focus-visible,
.help-admin-publish:hover,
.help-admin-publish:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: #ffc927;
}

.help-search-reset {
  border: 1px solid rgba(24, 22, 20, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--help-ink);
  cursor: pointer;
}

.help-search-reset:hover,
.help-search-reset:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(24, 22, 20, 0.2);
  background: #ffffff;
}

.help-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: rgba(23, 23, 23, 0.54);
  font-size: 13px;
}

.help-result-query {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--help-ink);
  font-weight: 800;
}

.help-topic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
}

.help-topic-card h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--help-line);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}

.help-topic-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.help-topic-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid rgba(24, 22, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--help-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.help-topic-button:hover,
.help-topic-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(213, 151, 0, 0.26);
  background: #fffaf0;
}

.help-topic-icon,
.help-doc-icon,
.help-admin-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 210, 42, 0.22);
  color: #8d6100;
}

.help-topic-icon {
  width: 26px;
  height: 26px;
}

.help-docs-card,
.help-admin-card {
  padding: 18px;
}

.help-docs-card {
  background: rgba(255, 255, 255, 0.98);
}

.help-docs-head,
.help-admin-head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--help-line);
}

.help-docs-head h2,
.help-admin-head h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
}

.help-docs-subtitle,
.help-admin-copy {
  margin: 0;
  color: rgba(23, 23, 23, 0.56);
  font-size: 13px;
  line-height: 1.58;
}

.help-docs-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.help-doc {
  overflow: hidden;
  border: 1px solid rgba(24, 22, 20, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color 180ms ease, background 180ms ease;
}

.help-doc[open] {
  border-color: rgba(24, 22, 20, 0.15);
  background: #ffffff;
}

.help-doc summary {
  list-style: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.help-doc summary::-webkit-details-marker {
  display: none;
}

.help-doc-icon {
  width: 34px;
  height: 34px;
}

.help-doc-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.help-doc-main strong {
  color: var(--help-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.26;
}

.help-doc-main p {
  margin: 0;
  color: rgba(23, 23, 23, 0.56);
  font-size: 13px;
  line-height: 1.5;
}

.help-doc-toggle-icon {
  width: 20px;
  height: 20px;
  color: rgba(23, 23, 23, 0.34);
  transition: transform 160ms ease;
}

.help-doc[open] .help-doc-toggle-icon {
  transform: rotate(180deg);
}

.help-doc-toggle-icon svg,
.help-topic-icon svg,
.help-doc-icon svg,
.help-admin-item-icon svg,
.help-admin-publish svg {
  display: block;
  width: 100%;
  height: 100%;
}

.help-doc-body {
  padding: 0 14px 16px 60px;
  border-top: 1px solid rgba(24, 22, 20, 0.07);
  background: #f8f8f6;
  animation: helpDocReveal 180ms ease both;
}

.help-doc-body .markdown-body {
  width: 100%;
  max-width: none;
  padding-top: 14px;
}

@keyframes helpDocReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.help-admin-card[hidden],
.help-publish-action[hidden] {
  display: none !important;
}

.help-admin-card {
  position: sticky;
  top: 16px;
  background: #fffdf6;
}

.help-admin-publish {
  width: 100%;
  gap: 8px;
  margin-top: 14px;
}

.help-admin-publish span[aria-hidden="true"] {
  width: 18px;
  height: 18px;
}

.help-admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.help-admin-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(24, 22, 20, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--help-ink);
}

.help-admin-item--link,
.help-admin-item--danger {
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.help-admin-item--link:hover,
.help-admin-item--link:focus-visible,
.help-admin-item--danger:hover,
.help-admin-item--danger:focus-visible {
  outline: none;
  border-color: rgba(213, 151, 0, 0.26);
}

.help-admin-item--danger {
  border: 1px solid rgba(226, 87, 58, 0.18);
  color: #b53a1c;
  background: rgba(255, 255, 255, 0.96);
}

.help-admin-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.help-admin-item-copy strong {
  color: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.help-admin-item-copy small {
  color: rgba(23, 23, 23, 0.54);
  font-size: 12px;
  line-height: 1.42;
}

.help-admin-item--danger .help-admin-item-copy small {
  color: rgba(181, 58, 28, 0.7);
}

.help-admin-item-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: var(--help-ink);
  font-size: 12px;
  font-weight: 850;
}

.help-admin-item-icon {
  width: 32px;
  height: 32px;
}

.help-empty-state {
  display: grid;
  gap: 6px;
  padding: 24px 4px 4px;
  color: rgba(23, 23, 23, 0.6);
}

.help-empty-state[hidden] {
  display: none !important;
}

.help-empty-state strong {
  color: var(--help-ink);
  font-size: 18px;
  font-weight: 900;
}

.help-empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.64;
}

.help-page .markdown-body {
  color: rgba(17, 17, 17, 0.88);
  font-size: 15px;
  line-height: 1.78;
}

.help-page .markdown-body > :first-child {
  margin-top: 0;
}

.help-page .markdown-body > :last-child {
  margin-bottom: 0;
}

.help-page .markdown-body h1,
.help-page .markdown-body h2,
.help-page .markdown-body h3,
.help-page .markdown-body h4 {
  margin: 1.25em 0 0.55em;
  color: var(--help-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.help-page .markdown-body p,
.help-page .markdown-body ul,
.help-page .markdown-body ol,
.help-page .markdown-body blockquote,
.help-page .markdown-body pre,
.help-page .markdown-body table,
.help-page .markdown-body hr {
  margin: 0 0 1em;
}

.help-page .markdown-body ul,
.help-page .markdown-body ol {
  padding-left: 1.3em;
}

.help-page .markdown-body li + li {
  margin-top: 0.36em;
}

.help-page .markdown-body code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.help-page .markdown-body pre {
  overflow: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: #12161c;
  color: #f8fafc;
}

.help-page .markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.help-page .markdown-body blockquote {
  padding: 12px 14px;
  border: 1px solid rgba(213, 151, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 233, 0.58);
  color: rgba(17, 17, 17, 0.68);
}

.help-page .markdown-body a {
  color: #0f6ed7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-page .markdown-body hr {
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.help-page .markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.help-page .markdown-body th,
.help-page .markdown-body td {
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  text-align: left;
}

@media (max-width: 1180px) {
  .help-stage-grid,
  .help-docs-layout,
  .help-page.is-admin .help-docs-layout {
    grid-template-columns: 1fr;
  }

  .help-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-admin-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .help-shell {
    width: min(100vw - 20px, 100%);
    margin-bottom: 32px;
  }

  .help-page-head {
    align-items: start;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .help-page-head h1 {
    font-size: 32px;
  }

  .help-hero-card,
  .help-topic-card,
  .help-docs-card,
  .help-admin-card {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .help-search-actions {
    width: 100%;
  }

  .help-search-submit,
  .help-search-reset {
    flex: 1 1 0;
  }

  .help-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-topic-button {
    min-width: 0;
  }

  .help-doc summary {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    align-items: start;
  }

  .help-doc-toggle-icon {
    grid-column: 3;
    grid-row: 1;
  }

  .help-doc-body {
    padding-left: 16px;
  }
}

@media (max-width: 640px) {
  .help-stage,
  .help-docs-layout {
    padding-top: 10px;
  }

  .help-hero-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }

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

  .help-hero-text,
  .help-docs-subtitle,
  .help-admin-copy {
    font-size: 13px;
  }

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

  .help-search-field {
    min-height: 50px;
  }

  .help-search-submit,
  .help-search-reset,
  .help-admin-publish {
    min-height: 48px;
    font-size: 14px;
  }
}
