html {
  --docs-bg: #faf9f5;
  --docs-bg-soft: #e6e6e8;
  --docs-surface: #e6e6e8;
  --docs-text: #0f172a;
  --docs-muted: #57534e;
  --docs-border: #cfcfd4;
  --docs-accent: #6d28d9;
  --docs-accent-soft: rgba(109, 40, 217, 0.12);
  --docs-code: #dcdce0;
  --docs-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.22);
  --docs-header: rgba(250, 249, 245, 0.84);
  --docs-logo-filter: none;
  color-scheme: light;
  background: var(--docs-bg);
}

html[data-docs-theme="dark"] {
  --docs-bg: #0b1220;
  --docs-bg-soft: #10192b;
  --docs-surface: #151d30;
  --docs-text: #e8eef8;
  --docs-muted: #9aa6b8;
  --docs-border: #243044;
  --docs-accent: #c4b5fd;
  --docs-accent-soft: rgba(167, 139, 250, 0.16);
  --docs-code: #0f172a;
  --docs-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.65);
  --docs-header: rgba(11, 18, 32, 0.86);
  --docs-logo-filter: invert(1) brightness(1.4);
  color-scheme: dark;
  background: var(--docs-bg);
}

html[data-docs-theme="dark"] .docs-logo-light {
  display: none;
}

html[data-docs-theme="light"] .docs-logo-dark,
html:not([data-docs-theme]) .docs-logo-dark {
  display: none;
}

html[data-docs-theme="dark"] .docs-logo-dark {
  display: block;
}

html[data-docs-theme="dark"] .docs-brand-name {
  display: none !important;
}

.docs-app {
  min-height: 100vh;
  background: var(--docs-bg);
  color: var(--docs-text);
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--docs-header);
  border-bottom: 1px solid var(--docs-border);
  backdrop-filter: blur(14px);
}

.docs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 16px;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.docs-brand img {
  height: 40px;
  width: auto;
}

.docs-brand-name {
  font-family: Rubik, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--docs-text);
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-icon-btn,
.docs-text-link,
.docs-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.docs-icon-btn {
  width: 42px;
  height: 42px;
  color: var(--docs-text);
  background: transparent;
}

.docs-icon-btn:hover,
.docs-text-link:hover {
  background: var(--docs-accent-soft);
}

.docs-text-link {
  padding: 8px 12px;
  color: var(--docs-muted);
  font-size: 0.95rem;
}

.docs-sign-in {
  padding: 7px 16px;
  border-color: var(--docs-text);
  color: var(--docs-text);
  font-size: 0.95rem;
}

.docs-sign-in:hover {
  background: var(--docs-accent-soft);
}

.docs-theme-icon {
  width: 20px;
  height: 20px;
}

html[data-docs-theme="dark"] .docs-icon-moon {
  display: none;
}

html[data-docs-theme="light"] .docs-icon-sun,
html:not([data-docs-theme]) .docs-icon-sun {
  display: none;
}

html[data-docs-theme="dark"] .docs-icon-sun {
  display: block;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1380px;
  margin: 0 auto;
  min-height: calc(100vh - 62px);
}

.docs-sidebar {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow: auto;
  padding: 20px 14px 32px;
  border-right: 1px solid var(--docs-border);
  background: var(--docs-bg);
}

.docs-search {
  width: 100%;
  border: 1px solid var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
}

.docs-search:focus {
  border-color: var(--docs-accent);
}

.docs-nav-group {
  margin-top: 22px;
}

.docs-nav-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-muted);
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 8px;
}

.docs-nav-link {
  display: block;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--docs-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}

.docs-nav-link:hover,
.docs-nav-link.is-active {
  color: var(--docs-text);
  background: var(--docs-accent-soft);
}

.docs-main {
  padding: 28px 28px 64px;
}

.docs-hero {
  max-width: 760px;
}

.docs-kicker {
  color: var(--docs-accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-hero h1,
.docs-article-head h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 8px 0 12px;
}

.docs-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--docs-muted);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.docs-card {
  display: block;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--docs-shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: var(--docs-accent);
}

.docs-card h2,
.docs-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.docs-card p {
  color: var(--docs-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.docs-section-title {
  margin: 36px 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--docs-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.docs-prose {
  max-width: 760px;
}

.docs-prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
}

.docs-prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.docs-prose p,
.docs-prose li {
  color: var(--docs-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.docs-prose p + p {
  margin-top: 0.9rem;
}

.docs-prose ul,
.docs-prose ol {
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
}

.docs-prose li + li {
  margin-top: 0.35rem;
}

.docs-prose a {
  color: var(--docs-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-prose strong {
  color: var(--docs-text);
}

.docs-callout {
  margin: 1.2rem 0;
  padding: 14px 16px;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg-soft);
  border-radius: 14px;
}

.docs-callout p {
  margin: 0;
}

.docs-steps {
  counter-reset: docs-step;
  list-style: none;
  padding: 0;
}

.docs-steps li {
  position: relative;
  padding-left: 2.4rem;
  margin: 0.9rem 0;
}

.docs-steps li::before {
  counter-increment: docs-step;
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.docs-code {
  position: relative;
  margin: 1rem 0 1.3rem;
  background: var(--docs-code);
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  overflow: hidden;
}

.docs-code pre {
  margin: 0;
  padding: 16px 16px 18px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--docs-text);
}

.docs-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
  max-width: 760px;
}

.docs-pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--docs-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--docs-text);
  background: var(--docs-surface);
}

.docs-pager span {
  display: block;
  color: var(--docs-muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.docs-empty-pager {
  display: none;
}

.docs-sidebar-backdrop {
  display: none;
}

.docs-nav-empty {
  display: none;
  padding: 12px 8px;
  color: var(--docs-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: var(--docs-shadow);
  }

  .docs-app.is-sidebar-open .docs-sidebar {
    transform: none;
  }

  .docs-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .docs-app.is-sidebar-open .docs-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-main {
    padding: 20px 16px 48px;
  }

  .docs-grid,
  .docs-pager {
    grid-template-columns: 1fr;
  }

  .docs-desktop-only {
    display: none;
  }
}

@media (min-width: 981px) {
  .docs-mobile-only {
    display: none;
  }
}
