:root {
  --docs-ink: #18181b;
  --docs-body: #3f4652;
  --docs-muted: #667085;
  --docs-subtle: #6b7280;
  --docs-line: #e5e7eb;
  --docs-line-strong: #d7dbe0;
  --docs-soft: #f7f7f8;
  --docs-soft-active: #eeeeef;
  --docs-blue: #175f9f;
  --docs-green: #0f766e;
  --docs-amber: #a85d05;
  --docs-red: #b42318;
  --docs-code: #171b23;
}

.docs-page {
  background: #ffffff;
  color: var(--docs-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.docs-page * {
  letter-spacing: 0;
}

.docs-article h1,
.docs-article h2,
.docs-article h3 {
  color: var(--docs-ink);
  font-weight: 600;
  text-wrap: pretty;
}

.docs-article h1 {
  max-width: none;
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
}

.docs-article h2 {
  margin: 40px 0 14px;
  font-size: 24px;
  line-height: 1.35;
  scroll-margin-top: 132px;
}

.docs-article h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  line-height: 1.45;
  scroll-margin-top: 132px;
}

.docs-article p,
.docs-article li {
  color: var(--docs-body);
}

.docs-article strong {
  color: var(--docs-ink);
  font-weight: 600;
}

.docs-article a {
  color: var(--docs-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-mobile-bar {
  position: sticky;
  z-index: 9;
  top: 69px;
  border-bottom: 1px solid var(--docs-line);
  background: #ffffff;
}

.docs-mobile-bar-inner {
  display: grid;
  width: min(1400px, calc(100% - 48px));
  min-height: 52px;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: 1fr minmax(320px, 420px) 1fr;
  gap: 16px;
}

.docs-channel-label {
  color: var(--docs-body);
  font-size: 14px;
  font-weight: 600;
}

.docs-bar-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-self: center;
  gap: 8px;
}

.docs-menu-button,
.docs-search-button,
.docs-search-close,
.docs-copy-button,
.docs-mobile-bar [data-doc-menu-toggle],
.docs-mobile-bar [data-doc-search-open],
.docs-search-dialog [data-doc-search-close] {
  min-height: 36px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: var(--docs-soft);
  color: var(--docs-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.docs-menu-button,
.docs-search-button,
.docs-mobile-bar [data-doc-menu-toggle],
.docs-mobile-bar [data-doc-search-open] {
  padding: 6px 11px;
}

.docs-menu-button {
  display: none;
}

.docs-search-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.docs-search-button kbd {
  margin-left: 8px;
  border: 1px solid var(--docs-line-strong);
  background: #ffffff;
  color: var(--docs-muted);
  font-size: 12px;
}

.docs-layout {
  display: grid;
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: 244px minmax(0, 792px) 196px;
  justify-content: space-between;
  gap: 40px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 145px;
  max-height: calc(100vh - 164px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.docs-sidebar {
  padding: 30px 18px 60px 0;
  border-right: 1px solid var(--docs-line);
}

.docs-nav-group + .docs-nav-group {
  margin-top: 24px;
}

.docs-sidebar .docs-nav-heading {
  margin: 0 0 8px;
  color: var(--docs-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  text-transform: none;
}

.docs-nav-list,
.docs-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav-link {
  display: block;
  margin: 2px 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--docs-muted) !important;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
}

.docs-nav-link:hover {
  background: var(--docs-soft);
  color: var(--docs-ink) !important;
}

.docs-nav-link[aria-current='page'] {
  background: var(--docs-soft-active);
  color: var(--docs-ink) !important;
  font-weight: 600;
}

.docs-main {
  min-width: 0;
  padding: 44px 0 96px;
}

.docs-article {
  max-width: 792px;
}

.docs-breadcrumb,
.docs-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  color: var(--docs-muted) !important;
  font-size: 13px;
}

.docs-breadcrumb a,
.docs-page .breadcrumb a {
  color: var(--docs-muted);
}

.docs-eyebrow,
.docs-page .eyebrow {
  margin: 0 0 10px;
  color: var(--docs-ink) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

.docs-summary,
.docs-page .lead {
  max-width: 740px;
  margin: 18px 0 0;
  color: #454b55 !important;
  font-size: 18px;
  line-height: 1.56;
}

.docs-verified {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  color: var(--docs-subtle) !important;
  font-size: 13px;
}

.docs-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.docs-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--docs-ink) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.docs-action.primary {
  border-color: var(--docs-ink);
  background: var(--docs-ink);
  color: #ffffff !important;
}

.docs-action:hover {
  border-color: var(--docs-ink);
}

.docs-action.primary:hover {
  background: #2b2b2f;
}

.docs-journey {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.docs-journey li {
  position: relative;
  border-top: 1px solid var(--docs-line-strong);
  padding: 18px 12px 0 0;
  font-size: 14px;
}

.docs-journey li::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--docs-ink);
  box-shadow: 0 0 0 1px var(--docs-ink);
  content: '';
}

.docs-journey a {
  font-weight: 600;
  text-decoration: none;
}

.docs-card-grid,
.docs-page .grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-card,
.docs-page .card {
  display: flex;
  min-width: 0;
  min-height: 154px;
  flex-direction: column;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  padding: 20px 22px;
  background: #ffffff;
  box-shadow: none;
}

.docs-card h3,
.docs-page .card h3 {
  margin-top: 0;
  font-size: 18px;
}

.docs-card p,
.docs-page .card p {
  margin: 8px 0 0;
  color: var(--docs-muted);
}

.docs-card p:last-child,
.docs-page .card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
}

.docs-card code,
.docs-page .card code {
  overflow-wrap: anywhere;
}

.docs-callout,
.docs-page .note {
  margin: 24px 0;
  border: 1px solid #d7e3ee;
  border-left: 3px solid var(--docs-blue);
  border-radius: 8px;
  padding: 17px 18px;
  background: #f7fafc;
  box-shadow: none;
}

.docs-callout.success {
  border-color: #c9e3dd;
  border-left-color: var(--docs-green);
  background: #f5faf8;
}

.docs-callout.warning,
.docs-page .note.warning {
  border-color: #ead7b2;
  border-left-color: var(--docs-amber);
  background: #fffbf2;
}

.docs-callout.danger {
  border-color: #eccbc7;
  border-left-color: var(--docs-red);
  background: #fff8f7;
}

.docs-facts,
.docs-page .facts {
  display: grid;
  margin: 24px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.docs-fact,
.docs-page .fact {
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfbfc;
}

.docs-fact strong,
.docs-fact span,
.docs-page .fact strong,
.docs-page .fact span {
  display: block;
}

.docs-fact span,
.docs-page .fact span {
  margin-top: 4px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-page .steps li::before {
  border-radius: 8px;
  background: var(--docs-ink);
  font-weight: 600;
}

.docs-page pre {
  margin: 0;
  border-color: #29313d;
  border-radius: 8px;
  background: var(--docs-code);
  padding: 22px 18px;
  padding-top: 48px;
  color: #edf1f7;
  line-height: 1.65;
}

.docs-code {
  position: relative;
  margin: 22px 0;
}

.docs-copy-button {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  min-width: 64px;
  min-height: 31px;
  border-color: #3b4452;
  background: #222934;
  color: #dfe5ee;
  font-size: 12px;
}

.docs-copy-button.is-copied {
  border-color: #4f9f8e;
  color: #8ee0ce;
}

.docs-page table {
  min-width: 620px;
}

.docs-article a,
.docs-fact span,
.docs-page .fact span {
  overflow-wrap: anywhere;
}

.docs-page th {
  background: var(--docs-soft);
  color: var(--docs-ink);
  font-size: 13px;
  font-weight: 600;
}

.docs-page th,
.docs-page td {
  border: 0;
  border-bottom: 1px solid var(--docs-line);
  padding: 14px 12px;
}

.docs-page tbody tr:last-child td {
  border-bottom: 0;
}

.docs-toc {
  padding: 30px 0 60px;
}

.docs-toc-title {
  margin: 0 0 12px;
  color: var(--docs-ink);
  font-size: 13px;
  font-weight: 600;
}

.docs-toc-list a {
  display: block;
  border-left: 1px solid var(--docs-line-strong);
  padding: 6px 0 6px 12px;
  color: var(--docs-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.docs-toc-list .is-subsection a {
  padding-left: 23px;
}

.docs-toc-list a:hover,
.docs-toc-list a.is-active {
  border-left-color: var(--docs-blue);
  color: var(--docs-blue);
}

.docs-pager,
.docs-pagination {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--docs-line);
  padding-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-pager a,
.docs-pagination a {
  min-width: 0;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--docs-ink);
  text-decoration: none;
}

.docs-pager a:hover,
.docs-pagination a:hover {
  border-color: var(--docs-line-strong);
  background: var(--docs-soft);
}

.docs-pager a:last-child,
.docs-pagination a:last-child {
  text-align: right;
}

.docs-pager small,
.docs-pager span,
.docs-pager strong,
.docs-pagination span,
.docs-pagination strong {
  display: block;
}

.docs-pager small,
.docs-pager span,
.docs-pagination span {
  color: var(--docs-muted);
  font-size: 12px;
}

.docs-search-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(680px, calc(100vh - 40px));
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.2);
}

.docs-search-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
}

.docs-search-header {
  display: flex;
  border-bottom: 1px solid var(--docs-line);
  padding: 12px;
  gap: 8px;
}

.docs-search-input,
.docs-search-dialog [data-doc-search-input] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--docs-ink);
  font: inherit;
}

.docs-search-close,
.docs-search-dialog [data-doc-search-close] {
  flex: 0 0 auto;
  padding-inline: 12px;
}

.docs-search-results {
  display: grid;
  max-height: 540px;
  overflow-y: auto;
  padding: 10px;
  gap: 5px;
}

.docs-search-result {
  display: block;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--docs-ink) !important;
  text-decoration: none;
}

.docs-search-result:hover {
  background: var(--docs-soft);
}

.docs-search-result strong,
.docs-search-result span {
  display: block;
}

.docs-search-result span {
  margin-top: 2px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-search-empty {
  padding: 22px 12px;
  color: var(--docs-muted) !important;
  text-align: center;
}

.docs-sidebar-backdrop {
  display: none;
  border: 0;
  padding: 0;
}

.docs-page .site-footer {
  background: var(--docs-soft);
}

@media (max-width: 1360px) {
  .docs-layout {
    grid-template-columns: 228px minmax(0, 792px);
    justify-content: center;
    gap: 48px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 1024px) {
  .docs-mobile-bar-inner {
    display: flex;
    justify-content: space-between;
  }

  .docs-bar-actions {
    width: auto;
    justify-self: auto;
  }

  .docs-search-button {
    width: auto;
  }

  .docs-menu-button,
  .docs-mobile-bar [data-doc-menu-toggle] {
    display: inline-flex;
    align-items: center;
  }

  .docs-menu-button,
  .docs-search-button,
  .docs-mobile-bar [data-doc-menu-toggle],
  .docs-mobile-bar [data-doc-search-open] {
    min-height: 44px;
  }

  .docs-layout {
    display: block;
    width: min(100% - 48px, 792px);
  }

  .docs-sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: min(308px, calc(100% - 44px));
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--docs-line);
    padding: 28px 18px 60px;
    background: #ffffff;
    box-shadow: 16px 0 50px rgba(23, 32, 51, 0.18);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .docs-menu-open {
    overflow: hidden;
  }

  .docs-menu-open .docs-sidebar {
    transform: translateX(0);
  }

  .docs-sidebar-backdrop {
    position: fixed;
    z-index: 29;
    inset: 0;
    background: rgba(17, 24, 39, 0.48);
  }

  .docs-menu-open .docs-sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 820px) {
  .docs-mobile-bar {
    top: 69px;
  }

  .docs-mobile-bar-inner,
  .docs-layout {
    width: min(100% - 40px, 760px);
  }

  .docs-main {
    padding: 36px 0 80px;
  }

  .docs-article h1 {
    font-size: 30px;
  }

  .docs-article h2 {
    margin-top: 36px;
    font-size: 22px;
    scroll-margin-top: 122px;
  }

  .docs-article h3 {
    font-size: 18px;
    scroll-margin-top: 122px;
  }

  .docs-summary,
  .docs-page .lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .docs-journey {
    grid-template-columns: 1fr;
  }

  .docs-journey li {
    border-top: 0;
    border-left: 1px solid var(--docs-line-strong);
    padding: 0 0 22px 20px;
  }

  .docs-journey li::before {
    top: 5px;
    left: -7px;
  }

  .docs-facts {
    grid-template-columns: 1fr;
  }

  .docs-page .facts {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .docs-channel-label {
    display: none;
  }

  .docs-bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .docs-search-button kbd {
    display: none;
  }

  .docs-card-grid,
  .docs-page .grid,
  .docs-pager,
  .docs-pagination {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-card,
  .docs-page .card {
    min-height: 0;
  }

  .docs-pager a:last-child,
  .docs-pagination a:last-child {
    text-align: left;
  }

  .docs-page .steps li {
    padding-left: 52px;
  }

  .docs-page pre {
    padding-inline: 14px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .docs-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .docs-action {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .docs-mobile-bar {
    top: 63px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-sidebar {
    transition: none;
  }
}
