:root {
  color-scheme: dark;
  --bg: #080a10;
  --panel: #0f121b;
  --panel-2: #141824;
  --text: #f2f4f8;
  --dim: #a1a9b8;
  --faint: #717989;
  --border: #232938;
  --accent: #9b87f5;
  --accent-soft: rgba(155, 135, 245, .13);
  --ok: #5dd6a7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background:
    radial-gradient(circle at 18% -5%, rgba(104, 80, 210, .18), transparent 30rem),
    var(--bg); color: var(--text); line-height: 1.6;
}
a { color: #b6a8ff; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.docs-shell { display: grid; grid-template-columns: 244px minmax(0, 780px); gap: 52px; max-width: 1120px; margin: auto; padding: 34px 28px 80px; }
.docs-page { width: 100%; max-width: 900px; margin: auto; padding: 34px 28px 80px; }
.docs-nav { position: sticky; top: 28px; align-self: start; }
.docs-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; }
.docs-brand img { width: 34px; height: 34px; border-radius: 9px; }
.docs-eyebrow { margin: 28px 0 8px; color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.docs-index-link { display: block; text-decoration: none; }
.docs-index-link:hover { color: var(--text); }
.docs-nav-list { display: grid; gap: 5px; }
.docs-nav-list a {
  padding: 7px 9px; border-radius: 7px; color: var(--dim); text-decoration: none; font-size: 12px;
}
.docs-nav-list a:hover, .docs-nav-list a.active { color: var(--text); background: rgba(255,255,255,.055); }
.docs-main, .docs-section, .docs-steps, .docs-steps > li { min-width: 0; max-width: 100%; }
.docs-hero { padding: 22px 0 34px; }
.docs-hero-mark { width: 68px; height: 68px; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 48px rgba(0,0,0,.32); }
.docs-kicker { display: block; margin-top: 18px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
a.docs-kicker { text-decoration: none; }
a.docs-kicker:hover { text-decoration: underline; }
h1 { margin: 6px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.docs-lede { max-width: 650px; margin: 0; color: var(--dim); font-size: 15px; }
.docs-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.docs-pill { padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--dim); font-size: 10px; }
.docs-section { padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
h2 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.025em; }
h3 { margin: 22px 0 7px; font-size: 14px; }
p { color: var(--dim); }
.docs-steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.docs-steps > li {
  position: relative; padding: 16px 16px 16px 54px; border: 1px solid var(--border); border-radius: 12px; background: rgba(15,18,27,.7); counter-increment: step;
}
.docs-steps > li::before {
  content: counter(step); position: absolute; left: 17px; top: 16px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 800;
}
.docs-steps b { display: block; margin-bottom: 5px; }
.docs-code { position: relative; width: 100%; min-width: 0; max-width: 100%; margin-top: 9px; overflow: hidden; }
pre {
  display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0;
  padding: 13px 74px 13px 14px; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x;
  border: 1px solid var(--border);
  border-radius: 9px; background: #080a0f; color: #dfe2eb; font-size: 11.5px; line-height: 1.55;
  white-space: pre;
}
.docs-copy {
  position: absolute; top: 7px; right: 7px; padding: 5px 8px; border: 1px solid var(--border);
  z-index: 1; border-radius: 6px; background: var(--panel-2); color: var(--dim);
  box-shadow: -14px 0 14px 4px #080a0f; cursor: pointer; font: inherit; font-size: 10px;
}
.docs-copy:hover { color: var(--text); }
.docs-callout {
  margin-top: 14px; padding: 13px 15px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0;
  background: var(--accent-soft); color: var(--dim); font-size: 12px;
}
.docs-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 11.5px; }
th { color: var(--faint); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td { color: var(--dim); }
td:first-child { color: #dcd5ff; font-family: "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.docs-required { color: #f0ae83; }
.docs-optional { color: var(--faint); }
.docs-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.docs-command { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); }
.docs-command code { color: #dcd5ff; }
.docs-command span { display: block; margin-top: 3px; color: var(--faint); font-size: 10.5px; }
.docs-check { color: var(--ok); }
.docs-footer { padding-top: 30px; color: var(--faint); font-size: 11px; }
@media (max-width: 780px) {
  .docs-shell { display: block; padding: 18px 16px 56px; }
  .docs-nav { position: static; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .docs-page-label, .docs-page-nav { display: none; }
  .docs-index-link { margin-top: 16px; }
  .docs-guide-switcher {
    display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .docs-guide-switcher a { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; }
  .docs-hero { padding-top: 30px; }
  .docs-command-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .docs-hero-mark { width: 56px; height: 56px; border-radius: 15px; }
  .docs-section { padding: 23px 0; }
  .docs-steps > li { padding-left: 46px; }
  .docs-steps > li::before { left: 12px; }
  pre { padding-right: 62px; font-size: 10.5px; }
  .docs-copy { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
