body.docs-body {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  color: var(--text-primary);
  background-color: #080808;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  user-select: text;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.docs-brand-label { color: var(--text-secondary); font-weight: 500; }
.docs-topbar .spacer { flex: 1; }

.docs-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 560;
  text-decoration: none;
}

.docs-back:hover {
  color: #050505;
  background: var(--accent);
  border-color: var(--accent);
}

.docs-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 56px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 88px;
}

.docs-toc {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.docs-toc h4 {
  margin: 22px 10px 8px;
  color: #737373;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-toc h4:first-child { margin-top: 0; }

.docs-toc a {
  display: block;
  margin: 2px 0;
  padding: 8px 10px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  text-decoration: none;
}

.docs-toc a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.docs-toc a[aria-current="page"] {
  color: #050505;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.docs-content {
  min-width: 0;
  max-width: 800px;
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.75;
}

.docs-eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-content h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.docs-lede {
  max-width: 700px;
  margin-bottom: 46px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.docs-content section { scroll-margin-top: 92px; }

.docs-content h2 {
  margin: 52px 0 18px;
  padding-top: 26px;
  color: #fff;
  border-top: 1px solid var(--border-strong);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.docs-content h3 {
  margin: 30px 0 10px;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.docs-content p { margin: 12px 0; }
.docs-content ul,
.docs-content ol { margin: 12px 0 12px 22px; }
.docs-content li { margin: 7px 0; padding-left: 3px; }
.docs-content strong { color: #fff; }
.docs-content a { color: var(--accent); }

.docs-content code,
.docs-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-content code {
  padding: 2px 6px;
  color: #fff;
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 12px;
}

.docs-content pre {
  overflow: auto;
  margin: 18px 0;
  padding: 18px;
  color: #d8d8d8;
  background: #050505;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  line-height: 1.55;
}

.docs-content pre code { padding: 0; background: none; border: 0; }

kbd {
  display: inline-block;
  padding: 1px 7px;
  color: #fff;
  background: #171717;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}

.docs-card {
  display: block;
  min-height: 170px;
  padding: 20px;
  color: #fff !important;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  text-decoration: none;
}

.docs-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.docs-card span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.docs-card strong { display: block; margin-bottom: 6px; font-size: 15px; }
.docs-card small { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }

.docs-note,
.docs-tip {
  margin: 20px 0;
  padding: 15px 18px;
  background: #101010;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
}

.docs-content table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.docs-content th,
.docs-content td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.docs-content th {
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
}

.docs-steps > li {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
  margin: 16px 0;
}

.docs-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #050505;
  background: var(--accent);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
}

.docs-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
}

.docs-pagination a {
  padding: 16px;
  color: var(--text-secondary);
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
}

.docs-pagination a:last-child { text-align: right; }
.docs-pagination a:hover { color: #050505; background: var(--accent); border-color: var(--accent); }

.docs-footer {
  padding: 28px 24px;
  color: #666;
  background: #050505;
  border-top: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(100% - 36px, 800px);
    padding-top: 28px;
  }

  .docs-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .docs-toc h4 { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .docs-topbar { padding: 0 16px; }
  .docs-brand-label { display: none; }
  .docs-back { padding: 7px 9px; }
  .docs-content h1 { font-size: 40px; }
  .docs-card-grid,
  .docs-pagination { grid-template-columns: 1fr; }
  .docs-pagination a:last-child { text-align: left; }
  .docs-content table { display: block; overflow-x: auto; }
}
