.page-main.docs-page {
  padding-bottom: 0;
}

.docs-page {
  min-height: calc(100svh - var(--header-height));
  padding: 0;
  background: #f5f7fb;
}

.docs-workspace {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.docs-mobile-bar,
.docs-layout {
  width: var(--site-width);
  margin-inline: auto;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(240px, 18%) minmax(0, 1fr) minmax(180px, 16%);
  gap: 0;
  align-items: stretch;
  min-height: calc(100svh - var(--header-height));
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.docs-mobile-bar {
  display: none;
}

.docs-sidebar,
.docs-aside {
  position: sticky;
  top: var(--header-height);
  max-height: calc(100svh - var(--header-height));
  overflow: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  align-self: stretch;
  border-right: 1px solid rgba(207, 214, 234, 0.78);
  background: #fafbfd;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.docs-sidebar__section {
  display: grid;
  gap: 10px;
}

.docs-sidebar__section--nav {
  min-height: 0;
}

.docs-sidebar__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 0 4px;
}

.docs-product-picker {
  display: block;
}

.docs-product-picker__current {
  min-height: 38px;
  border: 1px solid rgba(207, 214, 234, 0.92);
  border-radius: 10px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.docs-product-picker__current--placeholder {
  color: var(--muted);
  font-weight: 780;
}

.docs-product-picker__menu {
  position: relative;
  min-width: 0;
}

.docs-product-picker__menu > summary.docs-product-picker__current {
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.docs-product-picker__menu > summary.docs-product-picker__current::-webkit-details-marker {
  display: none;
}

.docs-product-picker__menu[open] > summary.docs-product-picker__current::after {
  transform: translateY(1px) rotate(225deg);
}

.docs-product-picker__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  border: 1px solid rgba(207, 214, 234, 0.92);
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(18, 28, 58, 0.1);
}

.docs-product-picker__dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 820;
}

.docs-product-picker__dropdown a:hover {
  background: var(--surface-blue);
  color: var(--accent);
}

.docs-product-picker__current {
  width: 100%;
}

.docs-product-picker__menu > summary.docs-product-picker__current::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.docs-product-picker__meta {
  display: none;
}

.docs-product-picker__current:not(a):not(summary) {
  width: 100%;
  background: var(--surface-blue);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent);
}

.docs-product-picker__current:not(a):not(summary)::after {
  content: none;
}

.docs-topnav {
  display: grid;
  gap: 4px;
}

.docs-topnav__item {
  min-height: 38px;
  border: 1px solid rgba(207, 214, 234, 0.72);
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
}

.docs-topnav__item:hover,
.docs-topnav__item.is-active {
  border-color: rgba(79, 99, 243, 0.28);
  background: var(--surface-blue);
  color: var(--accent);
}

.docs-topnav__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.72;
  flex-shrink: 0;
}

.docs-sidebar__current {
  padding-top: 2px;
  border-top: 0;
}

.docs-sidebar__current a {
  min-height: 42px;
  border-radius: 10px;
  background: var(--surface-blue);
  box-shadow: inset 3px 0 0 var(--accent);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 880;
}

.docs-main__head {
  min-height: 52px;
  border-bottom: 1px solid rgba(207, 214, 234, 0.78);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(18px, 2.4vw, 28px);
}

.docs-context__trail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.docs-context__trail a {
  color: var(--ink-soft);
}

.docs-context__trail a:hover {
  color: var(--accent);
}

.docs-context__trail span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-main__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.docs-tool-btn {
  min-height: 30px;
  border: 1px solid rgba(207, 214, 234, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.docs-tool-btn:hover {
  border-color: rgba(79, 99, 243, 0.32);
  background: var(--surface-blue);
  color: var(--accent);
}

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

.docs-nav__item + .docs-nav__item,
.docs-nav__group + .docs-nav__item,
.docs-nav__item + .docs-nav__group {
  margin-top: 3px;
}

.docs-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--surface-blue);
}

.docs-nav a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--accent);
}

.docs-nav__group {
  margin-top: 12px;
}

.docs-nav > ul > .docs-nav__item:first-child {
  margin-bottom: 14px;
}

.docs-nav__group-title {
  display: block;
  padding: 8px 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.docs-nav__group.is-open > .docs-nav__group-title {
  color: var(--accent);
}

.docs-nav__group > ul {
  margin-top: 2px;
}

.docs-nav__group--depth-1 {
  padding-top: 8px;
  border-top: 1px solid rgba(207, 214, 234, 0.62);
}

.docs-nav__group--depth-1:first-child {
  border-top: 0;
}

.docs-nav__group--depth-1 > .docs-nav__group-title {
  color: #4b5568;
  font-size: 13px;
}

.docs-nav__group--depth-2 {
  margin: 7px 0 8px 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(79, 99, 243, 0.22);
}

.docs-nav__group--depth-2 > .docs-nav__group-title {
  padding: 6px 8px 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.docs-nav__item--depth-1 a {
  background: rgba(238, 242, 255, 0.86);
  font-weight: 880;
}

.docs-nav__item--depth-2 a {
  margin-left: 6px;
  background: rgba(238, 242, 255, 0.52);
}

.docs-nav__item--depth-3 a {
  margin-left: 20px;
  padding: 6px 9px;
  border-radius: 8px;
  background: transparent;
  color: #596575;
  font-size: 12px;
  font-weight: 720;
}

.docs-nav__item--depth-3 a:hover,
.docs-nav__item--depth-3 a[aria-current="page"] {
  background: rgba(238, 242, 255, 0.9);
}

.docs-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.docs-hub-section {
  margin-bottom: 2.75rem;
}

.docs-hub-section > p {
  max-width: 68ch;
  margin: -0.35em 0 1em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.docs-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin: 0.5em 0 0;
}

.docs-hub-cards--featured {
  grid-template-columns: 1fr;
}

.docs-hub-cards--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.docs-content a.docs-hub-card {
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(24, 34, 44, 0.035);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.docs-content a.docs-hub-card:hover,
.docs-content a.docs-hub-card:focus-visible {
  text-decoration: none;
  color: var(--ink);
}

.docs-content a.docs-hub-card * {
  text-decoration: none;
}

.docs-content a.docs-hub-card strong {
  color: var(--ink);
}

.docs-content a.docs-hub-card .docs-hub-card__action {
  color: var(--accent);
}

.docs-hub-card:hover {
  border-color: rgba(79, 99, 243, 0.38);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.92));
  box-shadow: 0 14px 30px rgba(24, 34, 44, 0.07);
  transform: translateY(-2px);
}

.docs-hub-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.docs-hub-card--featured {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.72));
}

.docs-hub-card__icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(79, 99, 243, 0.14);
  border-radius: 11px;
  background: rgba(238, 242, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.docs-hub-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-hub-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-hub-card__body {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.docs-hub-card strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 880;
}

.docs-hub-card__body > span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.62;
}

.docs-hub-card__action,
.docs-hub-card__arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.docs-hub-card__arrow {
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.docs-hub-card:hover .docs-hub-card__arrow {
  opacity: 1;
  transform: translateX(3px);
}

.docs-hub-cards--compact .docs-hub-card {
  min-height: 0;
}

.docs-hub-cards--compact .docs-hub-card__arrow {
  align-self: flex-end;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .docs-hub-card {
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .docs-hub-card:hover {
    transform: none;
  }

  .docs-hub-card:hover .docs-hub-card__arrow {
    transform: none;
  }

  .docs-grid-cards li:hover,
  .grid.cards li:hover {
    transform: none;
  }
}

body.is-docs-focus .site-header,
body.is-docs-focus .footer,
body.is-docs-focus .docs-mobile-bar {
  display: none;
}

.docs-page.is-fullscreen .docs-layout {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.docs-page.is-fullscreen .docs-sidebar,
.docs-page.is-fullscreen .docs-aside,
.docs-page.is-fullscreen .docs-mobile-bar {
  display: none;
}

.docs-page.is-toc-hidden .docs-aside {
  display: none;
}

.docs-page.is-toc-hidden:not(.is-sections-hidden):not(.is-fullscreen) .docs-layout {
  grid-template-columns: minmax(240px, 18%) minmax(0, 1fr);
}

.docs-page.is-sections-hidden .docs-sidebar {
  display: none;
}

.docs-page.is-sections-hidden:not(.is-toc-hidden):not(.is-fullscreen) .docs-layout {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 16%);
}

.docs-page.is-sections-hidden.is-toc-hidden:not(.is-fullscreen) .docs-layout,
.docs-page.is-fullscreen.is-toc-hidden .docs-layout,
.docs-page.is-fullscreen.is-sections-hidden .docs-layout,
.docs-page.is-fullscreen.is-toc-hidden.is-sections-hidden .docs-layout {
  grid-template-columns: minmax(0, 1fr);
}

.docs-tool-btn[aria-pressed="true"],
.docs-tool-btn.is-active {
  border-color: rgba(79, 99, 243, 0.32);
  background: var(--surface-blue);
  color: var(--accent);
}

.docs-feedback,
.docs-sidebar-toggle,
.docs-mobile-home {
  min-height: 32px;
  border: 1px solid rgba(207, 214, 234, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(38, 48, 84, 0.04);
}

.docs-feedback:hover,
.docs-sidebar-toggle:hover,
.docs-mobile-home:hover {
  border-color: rgba(79, 99, 243, 0.38);
  background: #eef2ff;
}

.docs-content {
  --docs-h1: clamp(28px, 3.2vw, 38px);
  --docs-h2: clamp(21px, 2.3vw, 26px);
  --docs-h3: 19px;
  --docs-h4: 16px;
  --docs-body: 15px;
  --docs-lead: 16px;
  --docs-tagline: clamp(18px, 2vw, 22px);
  width: 100%;
  max-width: 920px;
  min-height: calc(100svh - var(--header-height) - 74px);
  margin: 0 auto;
  background: var(--surface);
  padding: clamp(24px, 3.2vw, 48px) clamp(20px, 3.6vw, 40px);
  color: var(--ink);
  font-size: var(--docs-body);
  line-height: 1.78;
}

.docs-content > :first-child {
  margin-top: 0;
}

.docs-content > p:first-of-type {
  max-width: 68ch;
  margin-bottom: 2.25em;
  color: var(--ink-soft);
  font-size: var(--docs-lead);
  line-height: 1.75;
}

.docs-content .docs-tagline {
  max-width: 40ch;
  margin: 0 0 1.35em;
  color: var(--ink-soft);
  font-size: var(--docs-tagline);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  scroll-margin-top: calc(var(--header-height) + 16px);
  color: var(--ink);
  line-height: 1.25;
}

.docs-content h1 {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: var(--brand-gradient) 1;
  font-size: var(--docs-h1);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.docs-content h2 {
  margin: 2.4em 0 0.65em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid rgba(79, 99, 243, 0.28);
  font-size: var(--docs-h2);
  letter-spacing: -0.012em;
}

.docs-hub-section > h2 {
  margin-top: 0;
}

.docs-hub-section:first-of-type > h2 {
  margin-top: 0.25em;
}

.docs-content h3 {
  margin: 1.65em 0 0.7em;
  font-size: var(--docs-h3);
}

.docs-content h4 {
  margin: 1.45em 0 0.6em;
  font-size: var(--docs-h4);
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content blockquote,
.docs-content table,
.docs-content pre {
  margin: 0 0 1em;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.35em;
}

.docs-content li + li {
  margin-top: 0.35em;
}

.docs-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.docs-content hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(207, 214, 234, 0.82);
}

.docs-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.docs-content pre {
  overflow: auto;
  border: 1px solid rgba(24, 34, 44, 0.14);
  border-radius: 14px;
  background: #101827;
  padding: 14px 16px;
}

.docs-content pre code {
  color: #e2e8f0;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.docs-content :not(pre) > code {
  padding: 0.15em 0.42em;
  border-radius: 7px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 0.92em;
  font-weight: 700;
}

.docs-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(207, 214, 234, 0.92);
  border-radius: 14px;
  font-size: 14px;
}

.docs-content th,
.docs-content td {
  border-bottom: 1px solid rgba(207, 214, 234, 0.82);
  border-right: 1px solid rgba(207, 214, 234, 0.82);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.docs-content th:last-child,
.docs-content td:last-child {
  border-right: 0;
}

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

.docs-content th {
  background: #eef2ff;
  color: var(--ink);
}

.docs-content blockquote,
.docs-admonition {
  padding: 13px 16px;
  border: 1px solid rgba(207, 214, 234, 0.88);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: #f3f6ff;
  color: var(--ink-soft);
}

.docs-admonition {
  margin: 1.2em 0;
}

.docs-admonition--warning {
  border-left-color: #d97706;
  background: rgba(245, 158, 11, 0.1);
}

.docs-grid-cards,
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 1.2em 0;
}

.docs-grid-cards > ul,
.grid.cards > ul {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-grid-cards li,
.grid.cards li {
  border: 1px solid rgba(207, 214, 234, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.9)),
    var(--surface);
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(24, 34, 44, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.docs-grid-cards li:hover,
.grid.cards li:hover {
  border-color: rgba(79, 99, 243, 0.32);
  box-shadow: 0 12px 28px rgba(24, 34, 44, 0.06);
  transform: translateY(-1px);
}

.docs-grid-cards li strong,
.grid.cards li strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.docs-grid-cards li p,
.grid.cards li p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.docs-aside {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid rgba(207, 214, 234, 0.78);
  background: rgba(247, 249, 255, 0.66);
  padding: 18px 12px 20px;
}

.docs-toc,
.docs-feedback {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docs-toc {
  padding: 2px 0 0;
}

.docs-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.docs-toc__item + .docs-toc__item {
  margin-top: 6px;
}

.docs-toc__item a {
  display: block;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  padding: 6px 8px;
}

.docs-toc__item--h3 a {
  padding-left: 18px;
}

.docs-toc__item a:hover,
.docs-toc__item.is-active a {
  color: var(--accent);
  background: #eef2ff;
}

.docs-toc__empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.docs-feedback {
  width: 100%;
  border: 1px solid rgba(207, 214, 234, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: minmax(210px, 24%) minmax(0, 1fr);
  }

  .docs-aside {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(207, 214, 234, 0.78);
    background: #ffffff;
  }

  .docs-main__tools {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .docs-sidebar-toggle {
    display: inline-flex;
  }

  .docs-sidebar {
    display: none;
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 214, 234, 0.78);
    max-height: none;
  }

  .docs-sidebar.is-open {
    display: flex;
  }
}

@media (max-width: 620px) {
  .docs-content {
    padding: 22px 18px;
    font-size: 14px;
  }

  .docs-hub-card--featured {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-hub-card__action {
    align-self: flex-start;
  }

  .docs-content table {
    display: block;
    overflow-x: auto;
    border-radius: 14px;
  }
}
