:root {
  --docs-bg: #081018;
  --docs-panel: rgba(9, 19, 30, 0.84);
  --docs-panel-strong: rgba(12, 24, 38, 0.96);
  --docs-panel-border: rgba(110, 218, 255, 0.16);
  --docs-panel-border-strong: rgba(110, 218, 255, 0.28);
  --docs-text: #eef7ff;
  --docs-muted: #8da5bb;
  --docs-accent: #5ce0f1;
  --docs-accent-strong: #2cb5da;
  --docs-warm: #ff9b42;
  --docs-warm-soft: rgba(255, 155, 66, 0.14);
  --docs-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --docs-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.docsBody {
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 18%, rgba(92, 224, 241, 0.16), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(255, 155, 66, 0.12), transparent 20%),
    radial-gradient(circle at 52% 100%, rgba(78, 150, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #081018 0%, #060d14 100%);
  color: var(--docs-text);
  position: relative;
}

body.docsBody::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(145, 211, 240, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(145, 211, 240, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 88%);
  opacity: 0.5;
}

.docsShell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
}

.docsSidebar {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 22px;
  align-self: start;
}

.docsMain {
  display: grid;
  gap: 22px;
}

.docsBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #d3edf8;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.92;
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.docsBack:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateX(-2px);
}

.docsBrand {
  position: relative;
  padding: 20px 20px 20px 18px;
  border-radius: 26px;
  border: 1px solid var(--docs-panel-border-strong);
  background: linear-gradient(180deg, rgba(12, 23, 36, 0.96), rgba(7, 15, 23, 1));
  box-shadow: var(--docs-shadow);
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
}

.docsBrand::after {
  content: "";
  position: absolute;
  inset: auto -20px -60px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 224, 241, 0.18), transparent 70%);
}

.docsBrandMark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}

.docsEyebrow {
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9deffc;
}

.docsBrandCopy h1 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.docsBrandCopy p,
.docsBrandCopy h1,
.docsBrandCopy .docsEyebrow {
  margin-left: 0;
}

.docsBrandCopy {
  position: relative;
  z-index: 1;
}

.docsBrandCopy p:last-child {
  margin-top: 6px;
  font-size: 13px;
  color: var(--docs-muted);
}

.docsNav {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--docs-panel-border-strong);
  background: linear-gradient(180deg, rgba(12, 23, 36, 0.96), rgba(7, 15, 23, 1));
  box-shadow: var(--docs-shadow);
  position: relative;
  overflow: hidden;
}

.docsNav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 235, 255, 0.36), transparent);
}

.docsSearchWrap {
  display: block;
}

.docsSearch {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(92, 224, 241, 0.16);
  background: rgba(5, 11, 18, 0.88);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.docsSearch:focus {
  outline: none;
  border-color: rgba(92, 224, 241, 0.36);
  box-shadow: 0 0 0 4px rgba(92, 224, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: rgba(8, 15, 23, 0.96);
}

.docsSearch::placeholder {
  color: #688198;
}

.docsNavList {
  display: grid;
  gap: 10px;
}

.docsNavItem {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(92, 224, 241, 0.12);
  border-radius: 20px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(180deg, rgba(14, 27, 43, 0.88), rgba(10, 19, 31, 0.96));
  color: var(--docs-text);
  cursor: pointer;
  display: grid;
  gap: 5px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.docsNavItem:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 224, 241, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.docsNavItem.isActive {
  border-color: rgba(92, 224, 241, 0.24);
  box-shadow: inset 0 0 0 1px rgba(92, 224, 241, 0.08), 0 10px 26px rgba(0, 0, 0, 0.18);
}

.docsNavItem.isActive::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--docs-accent), rgba(255, 155, 66, 0.9));
}

.docsNavItemTitle {
  font-size: 16px;
  font-weight: 800;
}

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

.docsEmptyNav {
  border: 1px dashed rgba(92, 224, 241, 0.16);
  border-radius: 16px;
  padding: 14px;
  font-size: 13px;
  color: var(--docs-muted);
  background: rgba(7, 14, 22, 0.5);
}

.docsEmptyNav p,
.docsEmptyNav span {
  margin: 0;
}

.docsEmptyNav span {
  display: block;
  margin-top: 6px;
}

.docsHero {
  position: relative;
  border: 1px solid rgba(92, 224, 241, 0.18);
  border-radius: 32px;
  padding: 34px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 155, 66, 0.12), transparent 22%),
    radial-gradient(circle at 88% 84%, rgba(92, 224, 241, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(13, 25, 39, 0.96), rgba(8, 17, 27, 0.98));
  box-shadow: var(--docs-shadow);
}

.docsHero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.docsHero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 224, 241, 0.16), transparent 66%);
}

.docsHeroKicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9deffc;
}

.docsHeroKicker::after {
  content: attr(data-badge);
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 66, 0.18);
  background: rgba(255, 155, 66, 0.08);
  color: #ffd8b4;
  letter-spacing: 0.12em;
  font-size: 9px;
}

.docsHero h2 {
  position: relative;
  margin: 16px 0 12px;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 0.9;
}

.docsHero p {
  position: relative;
  margin: 0;
  max-width: 780px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--docs-muted);
}

.docsOverview {
  position: relative;
  margin-top: 26px;
  display: grid;
  gap: 16px;
  padding: 20px 20px 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(92, 224, 241, 0.14);
  background: linear-gradient(180deg, rgba(9, 19, 30, 0.82), rgba(7, 15, 23, 0.94));
  box-shadow: var(--docs-shadow-soft);
}

.docsOverviewHeader {
  display: grid;
  gap: 8px;
}

.docsOverviewHeader p {
  max-width: none;
  font-size: 14px;
  line-height: 1.65;
}

.docsOverviewList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docsOverviewList li {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 224, 241, 0.1);
  background: linear-gradient(180deg, rgba(13, 25, 39, 0.94), rgba(8, 17, 27, 0.98));
  color: #e5f5ff;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.docsOverviewNumber {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 66, 0.2);
  background: linear-gradient(180deg, rgba(255, 155, 66, 0.16), rgba(255, 155, 66, 0.06));
  color: #ffd8b4;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.docsArticle {
  counter-reset: docs-step;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(92, 224, 241, 0.16);
  border-radius: 32px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(12, 23, 36, 0.96), rgba(7, 15, 23, 0.98));
  box-shadow: var(--docs-shadow);
  position: relative;
  overflow: hidden;
}

.docsArticle::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 130px;
  bottom: 44px;
  width: 1px;
  background: linear-gradient(180deg, rgba(92, 224, 241, 0.24), rgba(92, 224, 241, 0.02));
  pointer-events: none;
}

.docsArticle h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.04em;
  color: #f4fbff;
}

.docsArticle p,
.docsArticle li,
.docsArticle figcaption {
  font-size: 15px;
  line-height: 1.7;
  color: #b8cad9;
}

.docsArticle code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(92, 224, 241, 0.12);
  color: #b5f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.docsInlineGroup {
  display: inline;
}

.docsInlinePhrase {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 66, 0.18);
  background: linear-gradient(180deg, rgba(255, 155, 66, 0.14), rgba(255, 155, 66, 0.06));
  color: #ffe0c2;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.docsInlineTrailing {
  display: inline;
  margin-left: 0.35em;
}

.docsMiniLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #99ebf9;
}

.docsMiniLabel::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(92, 224, 241, 0.4);
}

.docsStep {
  display: grid;
  gap: 16px;
  padding: 24px 24px 24px 68px;
  border-radius: 26px;
  border: 1px solid rgba(92, 224, 241, 0.12);
  background: linear-gradient(180deg, rgba(13, 25, 39, 0.84), rgba(9, 18, 29, 0.96));
  position: relative;
  box-shadow: var(--docs-shadow-soft);
}

.docsStep::before {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.docsStep {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.docsStep::before {
  counter-increment: docs-step;
  content: counter(docs-step, decimal-leading-zero);
  border: 1px solid rgba(255, 155, 66, 0.2);
  background: linear-gradient(180deg, rgba(255, 155, 66, 0.18), rgba(255, 155, 66, 0.06));
  color: #ffd8b4;
}

.docsStep:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 218, 255, 0.18);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.28);
}

.docsStepHeader {
  display: grid;
  gap: 12px;
}

.docsStep p {
  margin: 0;
}

.docsTip {
  border: 1px solid rgba(255, 155, 66, 0.22);
  border-radius: 20px;
  padding: 16px 18px 16px 52px;
  background: linear-gradient(180deg, rgba(255, 155, 66, 0.16), rgba(255, 155, 66, 0.08));
  color: #ffd9ba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.docsTip::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #2b1603;
  background: linear-gradient(180deg, #ffbf7c, #ff9b42);
}

.docsShotGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docsShotGridWide {
  align-items: start;
}

.docsShotSingle {
  display: grid;
}

.docsShotFrame {
  margin: 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(92, 224, 241, 0.12);
  background: linear-gradient(180deg, rgba(7, 14, 22, 0.84), rgba(5, 11, 18, 0.96));
  box-shadow: var(--docs-shadow-soft);
  overflow: hidden;
}

.docsShotFrame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.docsShotFrame figcaption {
  margin-top: 12px;
  color: #d7e8f4;
}

@media (max-width: 1080px) {
  .docsShell {
    grid-template-columns: 1fr;
  }

  .docsSidebar {
    position: static;
  }

  .docsArticle::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .docsShell {
    width: min(100%, calc(100% - 24px));
    padding-top: 16px;
    gap: 18px;
  }

  .docsHero,
  .docsArticle,
  .docsBrand,
  .docsNav {
    border-radius: 22px;
  }

  .docsHero {
    padding: 24px 22px;
  }

  .docsHero h2 {
    font-size: 42px;
  }

  .docsOverview {
    padding: 18px;
    border-radius: 20px;
  }

  .docsOverviewList {
    grid-template-columns: 1fr;
  }

  .docsArticle {
    padding: 18px;
  }

  .docsStep {
    padding: 18px 18px 18px 60px;
    border-radius: 20px;
  }

  .docsStep::before {
    left: 18px;
    top: 18px;
  }

  .docsShotGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .docsShell {
    width: min(100%, calc(100% - 18px));
  }

  .docsBrand,
  .docsNav,
  .docsHero,
  .docsArticle {
    padding-left: 16px;
    padding-right: 16px;
  }

  .docsHero h2 {
    font-size: 30px;
  }

  .docsHeroKicker {
    gap: 8px;
    flex-wrap: wrap;
  }

  .docsHeroKicker::after {
    padding: 5px 8px;
  }

  .docsArticle h3 {
    font-size: 24px;
  }

  .docsStep {
    padding: 60px 16px 16px;
  }

  .docsStep::before {
    left: 16px;
    top: 16px;
  }

  .docsOverview {
    margin-top: 22px;
    padding: 16px;
  }

  .docsOverviewList li {
    justify-content: flex-start;
    text-align: left;
  }

  .docsOverviewList li > span:last-child {
    flex: 1 1 auto;
  }

  .docsOverviewList li {
    padding: 12px 12px 12px 14px;
    gap: 10px;
  }

  .docsOverviewList li::before {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .docsTip {
    padding: 48px 14px 14px;
  }

  .docsTip::before {
    left: 14px;
    top: 14px;
    transform: none;
  }

  .docsInlineTrailing {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .docsInlineGroup {
    display: inline-block;
    vertical-align: top;
    margin-top: 8px;
  }
}

.docsPanel[hidden] {
  display: none;
}

.docsPanel {
  display: grid;
  gap: 22px;
}