:root {
  --docs-primary: #2563eb;
  --docs-primary-dark: #1d4ed8;
  --docs-primary-soft: #eaf1ff;
  --docs-bg: #ffffff;
  --docs-surface: #f8fafc;
  --docs-surface-hover: #eef2f7;
  --docs-text: #18212f;
  --docs-heading: #111827;
  --docs-muted: #64748b;
  --docs-border: #e2e8f0;
  --docs-border-strong: #cbd5e1;
  --docs-code: #f1f5f9;
  --docs-navbar-height: 66px;
  --docs-sidebar-width: 286px;
  --docs-toc-width: 244px;
  --docs-shadow: 0 18px 50px rgba(27, 39, 64, .16);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--docs-text);
  background: var(--docs-bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--docs-bg); color: var(--docs-text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.is-hidden { display: none !important; }
.docs-loading { visibility: hidden; }
.docs-mobile-only { display: none !important; }

.docs-navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--docs-navbar-height);
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(320px, 680px) 1fr;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  border-bottom: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  backdrop-filter: blur(12px);
}

.docs-navbar-left { display: flex; align-items: center; min-width: 0; }
.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--docs-heading);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.025em;
  text-decoration: none;
}
.docs-brand img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }

.docs-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.docs-icon-button:hover { background: var(--docs-surface-hover); }

.docs-search-wrap { position: relative; width: 100%; }
.docs-search-box {
  height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: var(--docs-surface);
  color: var(--docs-muted);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.docs-search-box:focus-within {
  border-color: #8db0fa;
  background: var(--docs-bg);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.docs-search-icon { font-size: 18px; line-height: 1; }
.docs-search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-text);
  font-size: 14px;
}
.docs-search-box input::placeholder { color: #8995a6; }
.docs-search-box kbd {
  min-width: 38px;
  border: 1px solid var(--docs-border);
  border-bottom-color: var(--docs-border-strong);
  border-radius: 6px;
  background: var(--docs-bg);
  padding: 2px 6px;
  color: var(--docs-muted);
  font: 700 10px/1.45 "Nunito", sans-serif;
  text-align: center;
  box-shadow: 0 1px 0 var(--docs-border);
}

.docs-search-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 100;
  max-height: min(590px, calc(100vh - 100px));
  overflow: auto;
  border: 1px solid var(--docs-border);
  border-radius: 13px;
  background: var(--docs-bg);
  box-shadow: var(--docs-shadow);
}
.docs-search-status {
  padding: 11px 14px;
  border-bottom: 1px solid var(--docs-border);
  color: var(--docs-muted);
  font-size: 12px;
  font-weight: 700;
}
.docs-search-results { padding: 7px; }
.docs-search-result {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}
.docs-search-result:hover,
.docs-search-result.is-active { background: var(--docs-primary-soft); }
.docs-search-result-title {
  display: block;
  margin-bottom: 3px;
  color: var(--docs-heading);
  font-size: 14px;
  font-weight: 850;
}
.docs-search-result-path {
  display: block;
  margin-bottom: 5px;
  color: var(--docs-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.docs-search-result-snippet {
  display: block;
  color: var(--docs-muted);
  font-size: 12px;
  line-height: 1.45;
}
.docs-search-result mark {
  border-radius: 3px;
  background: #fde68a;
  color: #713f12;
  padding: 0 1px;
}
.docs-search-empty { padding: 25px 16px; color: var(--docs-muted); text-align: center; font-size: 13px; }

.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr) var(--docs-toc-width);
  min-height: calc(100vh - var(--docs-navbar-height));
}

.docs-sidebar,
.docs-toc-panel {
  position: sticky;
  top: var(--docs-navbar-height);
  align-self: start;
  height: calc(100vh - var(--docs-navbar-height));
  overflow: auto;
}
.docs-sidebar {
  border-right: 1px solid var(--docs-border);
  background: var(--docs-surface);
  padding: 20px 13px 38px;
}
.docs-sidebar-heading,
.docs-toc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0 7px 10px;
  color: var(--docs-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.docs-tree-folder { margin: 2px 0 7px; }
.docs-tree-folder > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--docs-heading);
  font-size: 13px;
  font-weight: 850;
}
.docs-tree-folder > summary::-webkit-details-marker { display: none; }
.docs-tree-folder > summary::before {
  content: "›";
  width: 12px;
  color: var(--docs-muted);
  font-size: 18px;
  line-height: 1;
  transform-origin: center;
  transition: transform .15s ease;
}
.docs-tree-folder[open] > summary::before { transform: rotate(90deg); }
.docs-tree-folder > summary:hover { background: var(--docs-surface-hover); }
.docs-tree-children {
  margin-left: 13px;
  padding-left: 7px;
  border-left: 1px solid var(--docs-border);
}
.docs-tree-link {
  display: block;
  min-height: 35px;
  margin: 2px 0;
  border-radius: 8px;
  padding: 8px 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.docs-tree-link:hover { background: var(--docs-surface-hover); color: var(--docs-heading); }
.docs-tree-link.is-current {
  background: var(--docs-primary-soft);
  color: var(--docs-primary);
  font-weight: 850;
}
.docs-tree-empty { padding: 16px 9px; color: var(--docs-muted); font-size: 13px; }

.docs-main {
  min-width: 0;
  padding: 34px clamp(26px, 5vw, 76px) 56px;
  outline: 0;
}
.docs-state-card {
  width: min(100%, 760px);
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  margin: 10vh auto 0;
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  background: var(--docs-surface);
  color: var(--docs-muted);
  padding: 30px;
  text-align: center;
}
.docs-state-card p { margin: 0; }
.docs-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--docs-border);
  border-top-color: var(--docs-primary);
  border-radius: 50%;
  animation: docs-spin .8s linear infinite;
}
@keyframes docs-spin { to { transform: rotate(360deg); } }
.docs-error-card { color: var(--docs-text); }
.docs-error-card h1 { margin: 0; font-size: 24px; }
.docs-error-card button {
  border: 0;
  border-radius: 9px;
  background: var(--docs-primary);
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
}

.docs-breadcrumbs {
  width: min(100%, 880px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 auto 23px;
  color: var(--docs-muted);
  font-size: 12px;
}
.docs-breadcrumbs span { display: inline-flex; align-items: center; gap: 5px; }
.docs-breadcrumbs span:not(:last-child)::after { content: "/"; color: var(--docs-border-strong); }
.docs-breadcrumbs strong { color: var(--docs-text); font-weight: 800; }
.docs-notice {
  width: min(100%, 880px);
  margin: 0 auto 20px;
  border: 1px solid #fde68a;
  border-left: 5px solid #d69e16;
  border-radius: 9px;
  background: #fffbeb;
  color: #92400e;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
}

.docs-article {
  width: min(100%, 880px);
  margin: 0 auto;
  color: var(--docs-text);
  font-size: 16px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
.docs-article > h1:first-child { margin-top: 0; font-size: clamp(2rem, 4vw, 2.85rem); }
.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4,
.docs-article h5,
.docs-article h6 {
  position: relative;
  scroll-margin-top: 92px;
  color: var(--docs-heading);
  line-height: 1.25;
  letter-spacing: -.027em;
}
.docs-article h1 { margin: 1.05em 0 .55em; font-size: 2.4rem; }
.docs-article h2 { margin: 1.95em 0 .68em; padding-bottom: .36em; border-bottom: 1px solid var(--docs-border); font-size: 1.78rem; }
.docs-article h3 { margin: 1.65em 0 .58em; font-size: 1.38rem; }
.docs-article h4 { margin: 1.5em 0 .52em; font-size: 1.12rem; }
.docs-article h5 { font-size: 1rem; }
.docs-article h6 { font-size: .92rem; }
.docs-article p { margin: 0 0 1.15em; }
.docs-article a { color: var(--docs-primary); text-decoration: none; }
.docs-article a:hover { color: var(--docs-primary-dark); text-decoration: underline; }
.docs-heading-anchor {
  position: absolute;
  left: -1em;
  opacity: 0;
  padding-right: .25em;
  color: var(--docs-primary);
  font-weight: 500;
  text-decoration: none !important;
}
.docs-article h1:hover .docs-heading-anchor,
.docs-article h2:hover .docs-heading-anchor,
.docs-article h3:hover .docs-heading-anchor,
.docs-article h4:hover .docs-heading-anchor { opacity: 1; }
.docs-article strong { font-weight: 850; }
.docs-article ul,
.docs-article ol { margin: 0 0 1.2em; padding-left: 1.65em; }
.docs-article li { margin: .27em 0; }
.docs-article blockquote {
  margin: 1.45em 0;
  padding: .25em 1.1em;
  border-left: 4px solid var(--docs-border-strong);
  color: var(--docs-muted);
}
.docs-article hr { height: 1px; margin: 2.2rem 0; border: 0; background: var(--docs-border); }
.docs-article code {
  border-radius: 5px;
  background: var(--docs-code);
  padding: .14em .36em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
}
.docs-article pre {
  position: relative;
  margin: 1.45em 0;
  overflow: auto;
  border-radius: 11px;
  background: #111827;
  color: #e5e7eb;
  padding: 19px 21px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.docs-article pre code { background: transparent; padding: 0; color: inherit; font-size: 13px; }
.docs-article table { display: block; width: 100%; margin: 1.45em 0; overflow: auto; border-collapse: collapse; }
.docs-article th,
.docs-article td { min-width: 110px; border: 1px solid var(--docs-border); padding: 9px 12px; text-align: left; }
.docs-article th { background: var(--docs-surface); font-weight: 850; }
.docs-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.45rem 0;
  border-radius: 15px;
}
.docs-article input[type="checkbox"] { margin-right: .35em; }

.docs-article .md-admonition {
  --admonition-accent: #2563eb;
  --admonition-bg: #eff6ff;
  margin: 1.45em 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .22);
  border-left: 6px solid var(--admonition-accent);
  border-radius: 11px;
  background: var(--admonition-bg);
  padding: 16px 18px;
}
.docs-article .md-admonition-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--admonition-accent);
  font-weight: 900;
}
.docs-article .md-admonition-title::before { content: "●"; font-size: 10px; }
.docs-article .md-admonition-content > :last-child { margin-bottom: 0; }
.docs-article .md-admonition-note { --admonition-accent: #64748b; --admonition-bg: #f8fafc; border-color: rgba(100, 116, 139, .25); }
.docs-article .md-admonition-tip { --admonition-accent: #16845b; --admonition-bg: #ecfdf5; border-color: rgba(22, 132, 91, .24); }
.docs-article .md-admonition-info { --admonition-accent: #2563eb; --admonition-bg: #eff6ff; }
.docs-article .md-admonition-warning { --admonition-accent: #a16207; --admonition-bg: #fffbeb; border-color: rgba(161, 98, 7, .26); }
.docs-article .md-admonition-danger { --admonition-accent: #c2413b; --admonition-bg: #fef2f2; border-color: rgba(194, 65, 59, .25); }

.docs-pagination {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 58px auto 0;
}
.docs-page-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 84px;
  border: 1px solid var(--docs-border);
  border-radius: 11px;
  background: var(--docs-bg);
  padding: 14px 16px;
  color: var(--docs-text);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.docs-page-link:hover {
  border-color: #9db8f2;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .09);
  transform: translateY(-1px);
}
.docs-page-link-next { align-items: flex-end; text-align: right; }
.docs-page-link-label { color: var(--docs-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.docs-page-link-title { color: var(--docs-primary); font-size: 14px; font-weight: 850; }
.docs-footer {
  width: min(100%, 880px);
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--docs-border);
  color: var(--docs-muted);
  font-size: 12px;
}

.docs-toc-panel {
  border-left: 1px solid var(--docs-border);
  background: var(--docs-bg);
  padding: 24px 17px 40px;
}
.docs-toc { display: flex; flex-direction: column; border-left: 1px solid var(--docs-border); }
.docs-toc-link {
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 5px 8px 5px 13px;
  color: var(--docs-muted);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}
.docs-toc-link:hover,
.docs-toc-link.is-active { border-left-color: var(--docs-primary); color: var(--docs-primary); }
.docs-toc-level-3 { padding-left: 24px; }
.docs-toc-level-4 { padding-left: 34px; }
.docs-toc-empty { padding-left: 13px; color: var(--docs-muted); font-size: 12px; }

.docs-backdrop {
  position: fixed;
  inset: var(--docs-navbar-height) 0 0;
  z-index: 69;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(1px);
}

@media (max-width: 1180px) {
  .docs-navbar { grid-template-columns: var(--docs-sidebar-width) minmax(280px, 620px) 1fr; }
  .docs-layout { grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr); }
  .docs-toc-panel { display: none; }
}

@media (max-width: 780px) {
  .docs-mobile-only { display: grid !important; }
  .docs-navbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
  .docs-navbar-left { gap: 3px; }
  .docs-brand span { display: none; }
  .docs-brand img { width: 35px; height: 35px; }
  .docs-search-box kbd { display: none; }
  .docs-search-panel {
    position: fixed;
    top: calc(var(--docs-navbar-height) + 8px);
    left: 10px;
    right: 10px;
    max-height: calc(100vh - var(--docs-navbar-height) - 20px);
  }
  .docs-layout { display: block; }
  .docs-sidebar {
    position: fixed;
    top: var(--docs-navbar-height);
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(330px, 88vw);
    height: auto;
    transform: translateX(-103%);
    transition: transform .2s ease;
    box-shadow: var(--docs-shadow);
  }
  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-main { padding: 28px 20px 46px; }
  .docs-article { font-size: 15px; }
  .docs-heading-anchor { display: none; }
  .docs-pagination { grid-template-columns: 1fr; }
  .docs-page-link-next { align-items: flex-start; text-align: left; }
}

@media (max-width: 460px) {
  .docs-navbar { padding-inline: 7px; gap: 7px; }
  .docs-navbar-left { gap: 0; }
  .docs-brand img { width: 32px; height: 32px; }
  .docs-search-box { height: 40px; padding-inline: 9px; }
  .docs-search-box input { font-size: 13px; }
  .docs-main { padding-inline: 15px; }
  .docs-article h1 { font-size: 2rem; }
  .docs-article h2 { font-size: 1.55rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --docs-primary: #78a5ff;
    --docs-primary-dark: #a4c1ff;
    --docs-primary-soft: #1e3155;
    --docs-bg: #111722;
    --docs-surface: #141b27;
    --docs-surface-hover: #202a39;
    --docs-text: #e8eef7;
    --docs-heading: #f8fafc;
    --docs-muted: #9eabbd;
    --docs-border: #2a3444;
    --docs-border-strong: #3a4658;
    --docs-code: #202a39;
    --docs-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  }
  .docs-navbar { background: rgba(23, 30, 43, .96); }
  .docs-search-box input::placeholder { color: #7e8a9d; }
  .docs-search-result-title { color: var(--docs-heading); }
  .docs-search-result mark { background: #664d12; color: #fde68a; }
  .docs-tree-link { color: #b3bed0; }
  .docs-notice { background: #2d2518; border-color: #6a5420; color: #f6d98d; }
  .docs-article .md-admonition-note { --admonition-bg: #202936; }
  .docs-article .md-admonition-tip { --admonition-bg: #112a24; }
  .docs-article .md-admonition-info { --admonition-bg: #172647; }
  .docs-article .md-admonition-warning { --admonition-bg: #2d2518; }
  .docs-article .md-admonition-danger { --admonition-bg: #351d20; }
  .docs-page-link { background: #171e2b; }
}

body.docs-nav-open { overflow: hidden; }
.docs-main.is-switching .docs-article { opacity: .45; transition: opacity .12s ease; }
