@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --docs-bg: #080808;
  --docs-panel: #0d0d0e;
  --docs-panel-hover: #111112;
  --docs-line: rgba(255, 255, 255, 0.1);
  --docs-line-soft: rgba(255, 255, 255, 0.065);
  --docs-text: #f3f3f3;
  --docs-muted: #98989f;
  --docs-muted-dark: #68686f;
  --docs-red: #f03232;
  --docs-red-soft: rgba(240, 50, 50, 0.12);
  --docs-header: 112px;
}

* { box-sizing: border-box; }
html { min-width: 300px; background: var(--docs-bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--docs-header) + 24px); }
body {
  min-width: 300px;
  margin: 0;
  background: radial-gradient(circle at 50% -20%, rgba(240, 50, 50, 0.08), transparent 30%), var(--docs-bg);
  color: var(--docs-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.docs-menu-open, body.docs-search-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.docs-skip {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 13px; border-radius: 8px;
  background: var(--docs-red); color: #fff; font-weight: 700; transform: translateY(-150%);
}
.docs-skip:focus { transform: none; }

.docs-header {
  position: sticky; top: 0; z-index: 40; height: var(--docs-header); border-bottom: 1px solid var(--docs-line-soft);
  background: rgba(8, 8, 8, 0.88); backdrop-filter: blur(18px);
}
.docs-header-main, .docs-tabs-inner, .docs-shell { width: min(100% - 40px, 1216px); margin: 0 auto; }
.docs-header-main {
  display: grid; height: 64px; grid-template-columns: 288px minmax(220px, 520px) 1fr; align-items: center; gap: 24px;
}
.docs-brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: -0.015em; }
.docs-brand img { width: 118px; height: 30px; object-fit: contain; object-position: left center; }
.docs-brand-separator { width: 1px; height: 20px; background: var(--docs-line); }
.docs-brand-label { color: #bbb9bc; }
.docs-search-button {
  display: flex; width: 100%; height: 38px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--docs-line);
  border-radius: 10px; background: rgba(255, 255, 255, 0.035); color: var(--docs-muted); cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.docs-search-button:hover { border-color: rgba(240, 50, 50, 0.42); background: rgba(240, 50, 50, 0.045); }
.docs-search-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; border: 1.6px solid currentColor; border-radius: 50%; }
.docs-search-icon::after {
  position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1.6px; border-radius: 99px;
  background: currentColor; content: ""; transform: rotate(45deg);
}
.docs-search-button kbd {
  margin-left: auto; padding: 1px 6px; border: 1px solid var(--docs-line); border-radius: 5px;
  background: rgba(255, 255, 255, 0.035); color: var(--docs-muted-dark); font-size: 11px;
}
.docs-header-links { display: flex; justify-content: flex-end; }
.docs-dashboard-button {
  display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 15px; border-radius: 10px;
  background: var(--docs-red); color: #fff; font-size: 12px; font-weight: 700; transition: filter 150ms ease, transform 150ms ease;
}
.docs-dashboard-button:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.docs-dashboard-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.docs-footer a:hover { color: #fff; }
.docs-tabs { height: 48px; }
.docs-tabs-inner { display: flex; height: 100%; align-items: end; gap: 24px; }
.docs-tab { position: relative; display: flex; height: 48px; align-items: center; gap: 8px; color: var(--docs-muted); font-size: 13px; font-weight: 550; }
.docs-tab-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.docs-tab.is-active { color: #fff; }
.docs-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--docs-red); content: ""; }
.docs-menu-button {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--docs-line);
  border-radius: 9px; background: rgba(255, 255, 255, 0.035); cursor: pointer;
}
.docs-menu-button span, .docs-menu-button::before, .docs-menu-button::after {
  display: block; width: 16px; height: 1.5px; border-radius: 99px; background: currentColor; content: "";
}
.docs-menu-button span { margin: 4px 0; }

.docs-shell { display: grid; min-height: calc(100vh - var(--docs-header)); grid-template-columns: 288px minmax(0, 1fr); }
.docs-sidebar {
  position: sticky; top: var(--docs-header); height: calc(100vh - var(--docs-header)); padding: 30px 30px 30px 0;
  overflow-y: auto; border-right: 1px solid var(--docs-line-soft);
}
.docs-support-link {
  display: flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 9px 10px; border: 1px solid var(--docs-line-soft);
  border-radius: 9px; color: #aaa7aa; font-size: 12px; line-height: 1.35; transition: border-color 150ms ease, color 150ms ease;
}
.docs-support-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: var(--docs-red-soft); color: var(--docs-red); }
.docs-support-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.docs-support-link:hover { border-color: rgba(240, 50, 50, 0.35); color: #fff; }
.docs-sidebar h2 { margin: 0 0 10px; color: #5e5b60; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-sidebar nav { display: grid; gap: 3px; }
.docs-sidebar nav a {
  position: relative; display: flex; min-height: 36px; align-items: center; padding: 7px 10px; border-radius: 7px;
  color: #9a969b; font-size: 13px; line-height: 1.35;
}
.docs-sidebar nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.docs-sidebar nav a.is-active { background: var(--docs-red-soft); color: #ff6868; font-weight: 600; }
.docs-nav-status {
  margin-left: auto; color: #8a8a92; font-size: 10px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
}

.docs-content-layout {
  display: grid; grid-template-columns: minmax(0, 640px) 190px; justify-content: center; gap: 64px; padding: 64px 0 80px 44px;
}
.docs-content-layout.no-toc { grid-template-columns: minmax(0, 514px); justify-content: start; padding-right: 44px; }
.docs-article { min-width: 0; }
.docs-eyebrow { margin-bottom: 12px; color: var(--docs-red); font-size: 12px; font-weight: 600; }
.docs-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.docs-article h1 { margin: 0; color: #f0edef; font-size: clamp(32px, 4vw, 38px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.12; }
.docs-copy-button {
  display: inline-flex; min-width: 92px; height: 34px; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--docs-line); border-radius: 8px; background: transparent; color: var(--docs-muted); font-size: 12px; cursor: pointer;
}
.docs-copy-button:hover { border-color: rgba(240, 50, 50, 0.36); color: #fff; }
.docs-copy-button::before { width: 11px; height: 13px; border: 1px solid currentColor; border-radius: 2px; content: ""; }
.docs-lead { margin: 22px 0 28px; color: #b0adb1; font-size: 16px; }

.docs-product-grid { display: grid; gap: 8px; }
.docs-product-card {
  position: relative; display: flex; min-height: 72px; align-items: center; gap: 15px; padding: 14px 18px; overflow: hidden;
  border: 1px solid var(--docs-line); border-radius: 15px; background: var(--docs-panel);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.docs-product-card:hover { border-color: rgba(240, 50, 50, 0.6); background: var(--docs-panel-hover); transform: translateY(-1px); }
.docs-product-icon {
  display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; overflow: hidden;
  border: 1px solid rgba(240, 50, 50, 0.28); border-radius: 10px; background: var(--docs-red-soft);
}
.docs-product-icon img { width: 100%; height: 100%; object-fit: cover; }
.docs-product-card strong { display: block; font-size: 15px; font-weight: 600; }
.docs-product-card small { display: block; margin-top: 2px; color: var(--docs-muted); font-size: 12px; }
.docs-product-badge {
  margin-left: auto; padding: 4px 7px; border: 1px solid rgba(245, 196, 0, 0.2); border-radius: 999px;
  background: rgba(245, 196, 0, 0.06); color: #f5c400; font-size: 10px; font-weight: 650; white-space: nowrap;
}
.docs-product-arrow { position: relative; width: 16px; height: 16px; margin-left: auto; color: #5d5a5f; }
.docs-product-badge + .docs-product-arrow { margin-left: 2px; }
.docs-product-arrow::before, .docs-product-arrow::after { position: absolute; content: ""; }
.docs-product-arrow::before { top: 7px; right: 1px; width: 12px; height: 1.5px; background: currentColor; }
.docs-product-arrow::after {
  top: 4px; right: 1px; width: 6px; height: 6px; border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor; transform: rotate(45deg);
}

.docs-callout {
  display: grid; grid-template-columns: 28px 1fr; gap: 13px; margin: 26px 0; padding: 15px 17px;
  border: 1px solid rgba(240, 50, 50, 0.22); border-radius: 12px; background: rgba(240, 50, 50, 0.065);
  color: #cac6c9; font-size: 13px;
}
.docs-callout-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: rgba(240, 50, 50, 0.14); color: #ff5b5b; font-weight: 800; }
.docs-callout strong { display: block; margin-bottom: 2px; color: #fff; }
.docs-callout--testing { border-color: rgba(245, 196, 0, 0.2); background: rgba(245, 196, 0, 0.045); }
.docs-callout--testing .docs-callout-icon { background: rgba(245, 196, 0, 0.1); color: #f5c400; }
.docs-divider { height: 1px; margin: 34px 0; border: 0; background: var(--docs-line-soft); }
.docs-step { position: relative; margin: 44px 0 0; padding-left: 50px; }
.docs-step-number {
  position: absolute; top: 0; left: 0; display: grid; width: 30px; height: 30px; place-items: center;
  border: 1px solid rgba(240, 50, 50, 0.35); border-radius: 50%; background: var(--docs-red-soft); color: #ff6262; font-size: 12px; font-weight: 700;
}
.docs-step:not(:last-of-type)::before { position: absolute; top: 35px; bottom: -42px; left: 14px; width: 1px; background: var(--docs-line); content: ""; }
.docs-step-kicker { margin: 0 0 4px; color: var(--docs-muted-dark); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-article h2 { margin: 0 0 12px; color: #f2eff1; font-size: 22px; font-weight: 620; letter-spacing: -0.025em; line-height: 1.3; }
.docs-article h3 { margin: 28px 0 9px; color: #e8e5e7; font-size: 17px; font-weight: 600; }
.docs-article p { margin: 0 0 16px; color: #aaa6aa; }
.docs-article ul, .docs-article ol { margin: 14px 0 20px; padding-left: 22px; color: #aaa6aa; }
.docs-article li { margin: 7px 0; padding-left: 4px; }
.docs-article li::marker { color: var(--docs-red); }
.docs-inline-code { padding: 2px 6px; border: 1px solid var(--docs-line-soft); border-radius: 5px; background: #111112; color: #dedadd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }
.docs-action-card { margin: 18px 0; padding: 18px; border: 1px solid var(--docs-line); border-radius: 13px; background: var(--docs-panel); }
.docs-action-card strong { display: block; margin-bottom: 5px; }
.docs-action-card p { margin-bottom: 14px; font-size: 13px; }
.docs-release-card { display: flex; align-items: flex-start; gap: 12px; }
.docs-release-card p { margin: 3px 0 0; }
.docs-release-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: #f5c400; box-shadow: 0 0 9px rgba(245, 196, 0, 0.5); }
.docs-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 8px; background: var(--docs-red); color: #fff; font-size: 13px; font-weight: 650; }
.docs-button:hover { filter: brightness(1.08); }

.docs-faq { border-top: 1px solid var(--docs-line-soft); }
.docs-faq details { border-bottom: 1px solid var(--docs-line-soft); }
.docs-faq summary { position: relative; padding: 17px 28px 17px 0; color: #d9d5d8; font-weight: 550; cursor: pointer; list-style: none; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { position: absolute; top: 17px; right: 4px; color: var(--docs-muted-dark); content: "+"; font-size: 18px; }
.docs-faq details[open] summary::after { content: "−"; }
.docs-faq details p { padding: 0 28px 16px 0; font-size: 13px; }

.docs-toc { position: sticky; top: calc(var(--docs-header) + 48px); align-self: start; padding-left: 18px; border-left: 1px solid var(--docs-line-soft); }
.docs-toc h2 { margin: 0 0 12px; color: #d6d2d5; font-size: 12px; font-weight: 650; }
.docs-toc nav { display: grid; gap: 9px; }
.docs-toc a { color: #706d72; font-size: 12px; line-height: 1.35; }
.docs-toc a:hover, .docs-toc a.is-active { color: #ff5e5e; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--docs-line-soft); color: var(--docs-muted-dark); font-size: 12px; }
.docs-footer-links { display: flex; gap: 8px; }
.docs-footer-links a { display: grid; width: 28px; height: 28px; place-items: center; color: #737579; transition: color 150ms ease, transform 150ms ease; }
.docs-footer-links a:hover { color: #fff; transform: translateY(-1px); }
.docs-footer-links svg { width: 19px; height: 19px; }
.docs-footer-links .docs-discord-icon { fill: currentColor; stroke: none; }
.docs-footer-links .docs-website-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.docs-search-overlay, .docs-mobile-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.docs-search-dialog { width: min(calc(100% - 32px), 580px); margin: 12vh auto 0; overflow: hidden; border: 1px solid var(--docs-line); border-radius: 15px; background: #0e0e0f; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72); }
.docs-search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--docs-line-soft); }
.docs-search-input-wrap input { width: 100%; height: 58px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; }
.docs-search-close { border: 0; background: transparent; color: var(--docs-muted); cursor: pointer; }
.docs-search-results { display: grid; gap: 5px; max-height: 360px; padding: 10px; overflow-y: auto; }
.docs-search-result { display: block; padding: 11px 12px; border-radius: 9px; }
.docs-search-result:hover, .docs-search-result:focus { outline: 0; background: var(--docs-red-soft); }
.docs-search-result strong, .docs-search-result small { display: block; }
.docs-search-result strong { font-size: 13px; }
.docs-search-result small { margin-top: 2px; color: var(--docs-muted); font-size: 11px; }
.docs-search-empty { padding: 34px 16px; color: var(--docs-muted); font-size: 13px; text-align: center; }
.docs-mobile-overlay { display: none; }

@media (max-width: 1060px) {
  .docs-content-layout { grid-template-columns: minmax(0, 640px); padding-right: 36px; }
  .docs-toc { display: none; }
}

@media (max-width: 820px) {
  :root { --docs-header: 64px; }
  .docs-header { height: 64px; }
  .docs-header-main { width: min(100% - 28px, 720px); grid-template-columns: 1fr auto auto; gap: 10px; }
  .docs-brand-separator, .docs-brand-label, .docs-header-links, .docs-tabs { display: none; }
  .docs-search-button { width: 38px; padding: 0; justify-content: center; }
  .docs-search-button > span:not(.docs-search-icon), .docs-search-button kbd { display: none; }
  .docs-menu-button { display: grid; place-content: center; }
  .docs-shell { display: block; width: min(100% - 28px, 720px); }
  .docs-sidebar {
    position: fixed; top: 0; left: 0; z-index: 91; width: min(82vw, 310px); height: 100vh; padding: 84px 22px 30px;
    border-right: 1px solid var(--docs-line); background: #0b0b0c; transform: translateX(-105%); transition: transform 180ms ease;
  }
  body.docs-menu-open .docs-sidebar { transform: none; }
  body.docs-menu-open .docs-mobile-overlay { display: block; z-index: 90; }
  .docs-content-layout, .docs-content-layout.no-toc { display: block; padding: 48px 0 70px; }
}

@media (max-width: 520px) {
  .docs-brand img { width: 106px; }
  .docs-title-row { display: block; }
  .docs-copy-button { margin-top: 16px; }
  .docs-article h1 { font-size: 31px; }
  .docs-step { padding-left: 42px; }
  .docs-product-badge { display: none; }
  .docs-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
