.published-help {
  background: #fff;
  color: #37352f;
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid #e9e9e7;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(18px);
}

.help-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.help-brand > span {
  color: #787774;
  font-size: 14px;
}

.help-header-support {
  white-space: nowrap;
  color: #37352f;
  font-size: 14px;
  font-weight: 600;
}

.help-search-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(420px, 35vw);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f4f4f3;
  color: #92928d;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.help-search-trigger > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 0 12px 12px;
}

.help-search-trigger:hover {
  background: #efefed;
}

.help-search-trigger:focus-visible {
  outline: 2px solid rgb(37 35 32 / 26%);
  outline-offset: 1px;
}

.help-search-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.help-search-trigger kbd {
  flex: 0 0 auto;
  margin-right: 10px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #92928d;
  font:
    12px/1.2 ui-sans-serif,
    system-ui,
    sans-serif;
  white-space: nowrap;
}

.help-search-dialog {
  position: fixed;
  inset: 18vh auto auto 50%;
  width: min(640px, calc(100vw - 32px));
  max-height: 70dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid #e6e6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 60px #0003;
  color: #37352f;
}

.help-search-dialog::backdrop {
  background: #0008;
}

.help-command-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #eee;
}

.help-command-input > span {
  color: #888;
  font-size: 26px;
  line-height: 1;
}

.help-command-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
}

.help-command-input > button {
  padding: 3px 5px;
  border: 1px solid #e5e5e3;
  border-radius: 4px;
  background: #fff;
  color: #888;
  cursor: pointer;
  font-size: 11px;
}

.help-command-body {
  max-height: 50dvh;
  padding: 8px 5px;
  overflow-y: auto;
}

.help-command-label {
  margin: 8px 12px;
  color: #888;
  font-size: 12px;
}

.help-command-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.help-command-option[aria-selected="true"],
.help-command-option:hover {
  background: #f3f3f2;
}

.help-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.help-navigation {
  position: sticky;
  top: 68px;
  display: block;
  align-self: start;
  height: calc(100vh - 68px);
  overflow: auto;
  padding: 38px 28px;
  border-right: 1px solid #e9e9e7;
  background: #fbfbfa;
}

.help-navigation a {
  display: block;
  margin: 1px 0;
  padding: 7px 9px;
  border-radius: 4px;
  color: #55534e;
  font-size: 14px;
  line-height: 1.35;
}

.help-navigation a:hover,
.help-navigation a.active {
  background: #efefed;
  color: #37352f;
  text-decoration: none;
}

.help-navigation a.active {
  font-weight: 600;
}

.help-navigation a span {
  display: inline-block;
  width: 22px;
  color: #9b9a97;
  text-align: center;
}

.help-navigation-label {
  margin: 0 9px 12px;
  color: #9b9a97;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.help-navigation-secondary {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e9e9e7;
}

.search-hidden {
  display: none !important;
}

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

.help-shell {
  width: min(calc(100% - 80px), 760px);
  margin: 0 auto;
  padding: 72px 0 112px;
}

.help-shell > h1 {
  margin: 0 0 30px;
  color: #37352f;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.notion-body {
  color: #37352f;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
}

.notion-body h2,
.notion-body h3,
.notion-body h4 {
  color: #37352f;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.notion-body h2 {
  margin: 30px 0 4px;
  font-size: 24px;
  line-height: 1.3;
}

.notion-body h3 {
  margin: 24px 0 4px;
  font-size: 20px;
}

.notion-body h4 {
  margin: 18px 0 4px;
  font-size: 17px;
}

.notion-body p {
  margin: 4px 0;
  white-space: pre-wrap;
}

.notion-body ul,
.notion-body ol {
  margin: 4px 0;
  padding-left: 28px;
}

.notion-body li {
  margin: 2px 0;
  padding-left: 2px;
}

.notion-body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(55 53 47 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.notion-body a:hover {
  background: #efefed;
  text-decoration-color: #37352f;
}

.notion-body strong {
  font-weight: 600;
}

.notion-body code {
  padding: 2px 4px;
  border-radius: 3px;
  background: rgb(135 131 120 / 15%);
  color: #eb5757;
  font-size: 0.85em;
}

.notion-body pre {
  overflow: auto;
  margin: 12px 0;
  padding: 28px 18px;
  border-radius: 4px;
  background: #f7f6f3;
}

.notion-body pre code {
  padding: 0;
  background: transparent;
  color: #37352f;
}

.notion-body blockquote {
  margin: 8px 0;
  padding-left: 14px;
  border-left: 3px solid currentcolor;
}

.notion-body hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: #e9e9e7;
}

.notion-body .callout {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  padding: 16px;
  border-radius: 4px;
  background: #f7f6f3;
}

.notion-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.notion-page-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 2px 0;
  border-radius: 3px;
}

.notion-body figure {
  margin: 20px 0;
}

.notion-body figure img {
  display: block;
  max-width: 100%;
  border-radius: 2px;
}

.notion-body figcaption {
  margin-top: 6px;
  color: #787774;
  font-size: 14px;
}

.columns {
  display: flex;
  gap: 32px;
}

.column {
  flex: 1 1 0;
  min-width: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 8px 0;
}

.notion-body table {
  width: 100%;
  border-collapse: collapse;
}

.notion-body th,
.notion-body td {
  padding: 7px 9px;
  border: 1px solid #e9e9e7;
  text-align: left;
  vertical-align: top;
}

.notion-body details {
  margin: 4px 0;
}

.notion-body summary {
  cursor: pointer;
}

.help-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .help-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .help-brand > span {
    display: none;
  }

  .help-search-trigger {
    width: 100%;
    min-width: 0;
  }

  .help-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .help-navigation {
    padding-inline: 22px;
  }
}

@media (max-width: 640px) {
  .help-header {
    padding: 12px 16px;
  }

  .help-header-support {
    display: none;
  }

  .help-search-trigger {
    font-size: 13px;
  }

  .help-search-trigger kbd {
    display: none;
  }

  .help-search-dialog {
    top: 12vh;
  }

  .help-layout {
    display: block;
  }

  .help-navigation {
    position: static;
    display: flex;
    height: auto;
    gap: 4px;
    overflow-x: auto;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid #e9e9e7;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .help-navigation::-webkit-scrollbar {
    display: none;
  }

  .help-navigation-label,
  .help-navigation-secondary {
    display: none;
  }

  .help-shell {
    width: min(calc(100% - 40px), 760px);
    padding: 50px 0 80px;
  }

  .help-shell > h1 {
    margin-bottom: 24px;
    font-size: 34px;
  }

  .notion-body h2 {
    font-size: 22px;
  }

  .columns {
    display: block;
  }
}
