.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.docs-nav {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.docs-nav a {
  color: #A1A1AA;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 0.7rem;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: #F4F4F5; }
.docs-nav a[aria-current="page"] {
  color: #F4F4F5;
  border-left-color: #6D28D9;
  background: rgba(109, 40, 217, 0.12);
}
.docs-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A1A1AA;
  margin: 0.8rem 0.7rem 0.2rem;
}
.docs-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.docs-main .lede {
  color: #A1A1AA;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}
.docs-main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
}
.docs-main p, .docs-main li {
  color: #A1A1AA;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.docs-main a:not(.btn-primary) { color: #C4B5FD; }
.docs-main a:not(.btn-primary):hover { color: #F4F4F5; }
.docs-main ol, .docs-main ul { padding-left: 1.2rem; }
.docs-main li { margin: 0.35rem 0; }
.docs-main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: #EDE9FE;
  background: #222222;
  padding: 0.1rem 0.35rem;
}
.docs-main pre {
  background: #141414;
  border: 1px solid #2D2D2D;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
}
.docs-main pre code {
  background: transparent;
  padding: 0;
  color: #F4F4F5;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.docs-main pre code .tok-kw { color: #C4B5FD; }
.docs-main pre code .tok-str { color: #86EFAC; }
.docs-main pre code .tok-num { color: #FDBA74; }
.docs-main pre code .tok-fn { color: #7DD3FC; }
.docs-main pre code .tok-cmd { color: #86EFAC; }
.docs-main pre code .tok-cmt { color: #71717A; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.step-num {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  color: #6D28D9;
  font-size: 1.15rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.docs-card {
  display: block;
  background: #222222;
  border: 1px solid #2D2D2D;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
}
.docs-card:hover { border-color: #6D28D9; }
.docs-card strong {
  display: block;
  color: #F4F4F5;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.docs-card span { color: #A1A1AA; font-size: 0.92rem; line-height: 1.5; }
.cta {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(109, 40, 217, 0.35);
  background: rgba(109, 40, 217, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.cta p { margin: 0; }
@media (max-width: 800px) {
  .docs-shell { grid-template-columns: 1fr; padding-top: 1.5rem; padding-bottom: 4rem; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
.agent-copy {
  position: fixed;
  z-index: 40;
  top: calc(3.5rem + 4rem);
  right: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #6D28D9;
  color: #FFFFFF;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  animation: agent-copy-pulse 2.4s ease-out infinite;
}
@media (min-width: 768px) {
  .agent-copy { top: calc(3.5rem + 5rem); }
}
.agent-copy:hover,
.agent-copy:focus-visible {
  animation: none;
  filter: brightness(1.08);
  outline: 2px solid #C4B5FD;
  outline-offset: 3px;
}
.agent-copy.is-docked {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  width: fit-content;
  margin: 0 0 1.75rem auto;
}
@keyframes agent-copy-pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(109, 40, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .agent-copy { animation: none; }
}
.agent-copy-tip {
  position: absolute;
  top: 50%;
  width: max-content;
  max-width: 240px;
  padding: 0.7rem 0.85rem;
  background: #222222;
  color: #F4F4F5;
  border: 1px solid #2D2D2D;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.96);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.agent-copy-tip[data-side="left"] {
  right: calc(100% + 12px);
  left: auto;
  transform-origin: right center;
}
.agent-copy-tip[data-side="right"] {
  left: calc(100% + 12px);
  right: auto;
  transform-origin: left center;
}
.agent-copy:hover .agent-copy-tip,
.agent-copy:focus-visible .agent-copy-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-58%) scale(1);
}
