:root {
  color-scheme: light;
  --docs-text: #343a45;
  --docs-muted: rgba(84, 93, 109, 0.65);
  --docs-border: rgba(44, 62, 93, 0.08);
  --docs-selected: rgba(20, 22, 28, 0.1);
  --docs-link: #2350e9;
  --docs-topbar-height: 60px;
  --docs-body-font:
    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--docs-text);
  font-family: var(--docs-body-font);
  font-size: 16px;
  line-height: 1.8;
}

body.docs-drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  height: var(--docs-topbar-height);
  padding: 0 max(32px, calc((100vw - 1470px) / 2));
  border-bottom: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.96);
}

.docs-brand {
  flex: 0 0 auto;
  color: #111;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.docs-topnav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: 78px;
}

.docs-topnav a,
.docs-topbar-actions a,
.docs-user-action {
  color: #20242b;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.docs-topnav a:hover,
.docs-topnav a.is-active,
.docs-topbar-actions a:hover,
.docs-user-action:hover {
  color: var(--docs-link);
}

.docs-user-action {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.docs-auth-placeholder {
  display: inline-block;
  width: 56px;
  height: 16px;
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.docs-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.docs-menu-button span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: #343a45;
}

.docs-layout,
.docs-index-layout {
  display: flex;
  width: min(1660px, 100%);
  min-height: calc(100vh - var(--docs-topbar-height));
  margin: 0 auto;
  padding: 32px max(32px, calc((100vw - 1470px) / 2)) 60px;
}

.docs-sidebar {
  flex: 0 0 280px;
  min-width: 0;
}

.docs-sidebar-scroll,
.docs-outline-scroll {
  position: sticky;
  top: calc(var(--docs-topbar-height) + 24px);
  max-height: calc(100vh - var(--docs-topbar-height) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-sidebar-scroll {
  padding: 0 12px;
}

.docs-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
}

.docs-article {
  width: min(900px, 100%);
  margin: 0 auto;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 30px;
  overflow: hidden;
  color: var(--docs-muted);
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.docs-breadcrumbs span:last-child {
  overflow: hidden;
  color: var(--docs-text);
  text-overflow: ellipsis;
}

.docs-breadcrumbs a {
  color: var(--docs-muted);
  text-decoration: none;
}

.docs-breadcrumbs a:hover {
  color: var(--docs-link);
}

.docs-effective {
  max-width: 900px;
  margin: 0 auto 28px;
  color: var(--docs-muted);
  font-size: 12px;
  line-height: 1.7;
}

.docs-outline {
  flex: 0 0 280px;
  min-width: 0;
  padding: 0 12px;
}

.docs-outline-scroll {
  padding: 0 0 0 12px;
}

.docs-nav-category {
  margin: 0 0 4px;
}

.docs-nav-category--nested {
  margin-left: 12px;
}

.docs-nav-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--docs-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.docs-nav-category-toggle:hover,
.docs-nav-category-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.docs-nav-category-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  content: '';
}

.docs-nav-category[data-collapsed='true'] .docs-nav-category-toggle::after {
  transform: rotate(-45deg) translate(-2px, 2px);
}

.docs-nav-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav-category[data-collapsed='true'] .docs-nav-category-list {
  display: none;
}

.docs-nav-link {
  display: block;
  padding: 6px 24px;
  border-radius: 4px;
  color: var(--docs-text);
  line-height: 1.5;
  text-decoration: none;
}

.docs-nav-link:hover,
.docs-nav-link:focus-visible,
.docs-nav-link.is-active {
  background: var(--docs-selected);
  outline: none;
}

.docs-outline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-outline-link {
  display: block;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.docs-outline-link[data-level='2'] {
  padding-left: 20px;
}

.docs-outline-link[data-level='3'] {
  padding-left: 40px;
}

.docs-outline-link:hover,
.docs-outline-link.is-active {
  color: var(--docs-text);
  font-weight: 500;
}

.docs-markdown {
  color: var(--docs-text);
  text-align: justify;
  overflow-wrap: anywhere;
}

.docs-markdown > * + * {
  margin-top: 24px;
}

.docs-markdown > :is(p, ul, ol) + :is(p, ul, ol) {
  margin-top: 8px;
}

.docs-markdown > :is(h1, h2, h3, h4) + :is(p, ul, ol) {
  margin-top: 24px;
}

.docs-markdown > :is(p, ul, ol) + h1,
.docs-markdown > h1 + * {
  margin-top: 32px;
}

.docs-markdown p,
.docs-markdown ul,
.docs-markdown ol,
.docs-markdown h1,
.docs-markdown h2,
.docs-markdown h3,
.docs-markdown h4 {
  margin-bottom: 0;
}

.docs-markdown p,
.docs-markdown li {
  font-size: 16px;
  line-height: 1.8;
}

.docs-markdown h1 {
  margin-top: 0;
  color: var(--docs-text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  scroll-margin-top: 88px;
}

.docs-markdown h2 {
  color: var(--docs-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  scroll-margin-top: 88px;
}

.docs-markdown h3,
.docs-markdown h4 {
  color: var(--docs-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  scroll-margin-top: 88px;
}

.docs-markdown ul,
.docs-markdown ol {
  padding-left: 24px;
}

.docs-markdown ul {
  list-style-type: disc;
}

.docs-markdown li + li {
  margin-top: 8px;
}

.docs-markdown a {
  color: var(--docs-link);
  text-decoration: none;
}

.docs-markdown a:hover {
  text-decoration: underline;
}

.docs-markdown hr {
  border: 0;
  border-top: 1px solid rgba(45, 79, 255, 0.15);
}

.docs-markdown table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(44, 62, 93, 0.07);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
}

.docs-markdown th,
.docs-markdown td {
  min-width: 12rem;
  padding: 16px;
  border-bottom: 1px solid rgba(44, 62, 93, 0.12);
  border-left: 1px solid rgba(44, 62, 93, 0.12);
  vertical-align: top;
  text-align: left;
}

.docs-markdown th:first-child,
.docs-markdown td:first-child {
  border-left: 0;
}

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

.docs-index-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.docs-index-main {
  max-width: 980px;
}

.docs-index-title {
  margin: 0 0 32px;
  font-size: 30px;
  line-height: 1.2;
}

.docs-index-list .docs-nav-category-list {
  max-width: 680px;
}

.docs-mobile-sidebar,
.docs-mobile-overlay {
  display: none;
}

.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px max(32px, calc((100vw - 1470px) / 2));
  background: #0c0f1c;
  color: #fff;
  font-size: 14px;
}

.docs-footer nav {
  display: flex;
  gap: 20px;
}

.docs-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.docs-footer a:hover {
  color: #fff;
}

@media (max-width: 1199px) {
  .docs-topnav {
    gap: 24px;
    margin-left: 44px;
  }

  .docs-sidebar {
    flex-basis: 240px;
  }

  .docs-outline {
    display: none;
  }

  .docs-index-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .docs-topbar {
    position: relative;
    height: 60px;
    padding: 0 20px;
  }

  .docs-brand {
    font-size: 20px;
  }

  .docs-topnav,
  .docs-topbar-actions > a {
    display: none;
  }

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

  .docs-layout,
  .docs-index-layout {
    display: block;
    min-height: 0;
    padding: 28px 20px 48px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-main,
  .docs-index-main {
    padding: 0;
  }

  .docs-breadcrumbs {
    margin-bottom: 24px;
  }

  .docs-article {
    width: 100%;
  }

  .docs-markdown h1 {
    font-size: 26px;
  }

  .docs-markdown h2 {
    font-size: 22px;
  }

  .docs-footer {
    flex-direction: column;
    padding: 32px 20px;
  }

  .docs-mobile-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(86vw, 340px);
    padding: 20px 12px;
    background: #fff;
    box-shadow: 10px 0 24px rgba(20, 22, 28, 0.12);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.docs-drawer-open .docs-mobile-sidebar {
    transform: translateX(0);
  }

  .docs-mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 12px;
  }

  .docs-mobile-sidebar-header button {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--docs-muted);
    cursor: pointer;
  }

  .docs-mobile-sidebar .docs-sidebar-scroll {
    position: static;
    max-height: none;
  }

  .docs-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(20, 22, 28, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.docs-drawer-open .docs-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
