.docs-page {
  background: var(--paper, #faf9f6);
  color: var(--ink, #242323);
}

.docs-page .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper, #faf9f6);
  border-bottom: 1px solid var(--line, #e6e3e5);
}

.docs-page .site-header > .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-page .brand-name,
.docs-page .brand-by {
  display: block;
}

.docs-page .brand-by { margin-top: 1px; }
.docs-page .site-nav [aria-current="page"] { color: var(--accent, #7460ba); }

.docs-skip {
  position: fixed;
  left: 20px;
  top: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink, #242323);
  color: white;
  transform: translateY(-160%);
  z-index: 100;
}

.docs-skip:focus { transform: translateY(0); }

.docs-page :focus-visible {
  outline: 3px solid var(--accent, #7460ba);
  outline-offset: 4px;
}

.docs-layout {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 44px 2px 36px;
  scrollbar-width: thin;
}

.docs-nav-heading {
  margin: 0 0 20px 12px;
  color: var(--muted, #6e6c72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-navigation nav { display: grid; gap: 3px; }

.docs-nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted, #6e6c72);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.docs-nav-link:hover { color: var(--ink, #242323); background: #f0efed; }

.docs-nav-link[aria-current="location"] {
  background: var(--accent-soft, #efebf8);
  color: #594691;
  font-weight: 600;
}

.docs-sidebar-bottom {
  display: grid;
  gap: 12px;
  margin: 28px 12px 0;
  padding-top: 25px;
  border-top: 1px solid var(--line, #e6e3e5);
  font-size: 12px;
  line-height: 1.7;
}

.docs-sidebar-bottom > a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted, #6e6c72);
  text-decoration: none;
}

.docs-sidebar-bottom a:hover { color: var(--accent, #7460ba); }
.docs-sidebar-bottom p { margin: 12px 0 0; color: var(--muted, #6e6c72); }
.docs-sidebar-bottom p a { color: var(--ink, #242323); text-underline-offset: 4px; }
.docs-menu-toggle { display: none; }

.docs-content {
  min-width: 0;
  max-width: 760px;
  padding: 48px 0 20px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.docs-content:focus { outline: none; }
.docs-content p { margin: 0 0 20px; }
.docs-content strong { font-weight: 600; }

.docs-content a:not(.button):not(.docs-overview-card):not(.docs-endpoint) {
  color: #655095;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-content a:not(.button):hover { color: #463362; }
.docs-section { padding-bottom: 56px; scroll-margin-top: 115px; }
.docs-content h3[id] { scroll-margin-top: 115px; }
.docs-section + .docs-section { border-top: 1px solid var(--line, #e6e3e5); padding-top: 46px; }

.docs-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #6e6c72);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.docs-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #7460ba); }

.docs-intro h1 {
  margin: 23px 0;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 1.09;
  letter-spacing: -0.052em;
  font-weight: 500;
}

.docs-content .docs-lede {
  max-width: 640px;
  color: var(--muted, #6e6c72);
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  margin-bottom: 19px;
}

.docs-overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0 25px;
}

.docs-overview-card {
  display: grid;
  position: relative;
  padding: 21px;
  border: 1px solid var(--line, #e6e3e5);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--ink, #242323);
  text-decoration: none;
  line-height: 1.6;
  transition: border-color 160ms ease, transform 160ms ease;
}

.docs-overview-card:hover { border-color: #b4a5d3; transform: translateY(-2px); }
.docs-card-number { margin-bottom: 12px; color: #877a9e; font-family: ui-monospace, monospace; font-size: 11px; }
.docs-overview-card strong { font-size: 15px; letter-spacing: -0.02em; }
.docs-overview-card > span:not(.docs-card-number):not(.docs-card-arrow) { margin-top: 6px; max-width: 235px; color: var(--muted, #6e6c72); font-size: 13px; }
.docs-card-arrow { position: absolute; right: 20px; top: 20px; color: #877a9e; }

.docs-callout {
  margin: 24px 0;
  padding: 18px 21px;
  border-left: 2px solid #ab9ccc;
  background: #f1eef6;
  border-radius: 0 8px 8px 0;
  color: #514c5a;
  font-size: 13px;
  line-height: 1.8;
}

.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout .docs-callout-title { margin-bottom: 4px; font-weight: 600; color: var(--ink, #242323); }
.docs-callout-preview { background: #f0efec; border-left-color: #bab5bd; }

.docs-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.docs-section-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--line, #e6e3e5); border-radius: 7px; color: #81778e; font-size: 10px; font-family: ui-monospace, monospace; }
.docs-content h2 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -0.04em; font-weight: 550; }
.docs-content h3 { margin: 32px 0 14px; font-size: 18px; line-height: 1.5; letter-spacing: -0.025em; font-weight: 550; }
.docs-step { display: inline-flex; align-items: center; justify-content: center; margin-right: 9px; width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft, #efebf8); color: #655095; font-size: 12px; vertical-align: 1px; }

.docs-content code,
.docs-content pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.docs-content :not(pre) > code {
  font-size: 0.84em;
  background: #efedee;
  border: 1px solid #e5e1e7;
  border-radius: 4px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}

.docs-content kbd { display: inline-block; border: 1px solid #d5d1d9; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #fff; color: #514b59; font-family: inherit; font-size: 0.77em; line-height: 1.7; vertical-align: 1px; white-space: nowrap; }

.docs-language-tabs:not([hidden]) { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 20px; border: 1px solid #e1dce9; border-radius: 9px; background: #efecf3; }
.docs-language-tab { padding: 8px 20px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6d6475; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.docs-language-tab:hover { color: #514078; }
.docs-language-tab[aria-selected="true"] { border-color: #e1dce9; background: #fff; color: #655095; box-shadow: 0 1px 3px #3326410a; }
.docs-language-panel[hidden] { display: none; }
.docs-setup-panel[hidden] { display: none; }
.docs-setup-panel,
.docs-language-panel { scroll-margin-top: 115px; min-width: 0; }
.docs-setup-tabs:not([hidden]) { margin-top: 8px; margin-bottom: 24px; }
.docs-setup-tabs .docs-language-tab { padding: 10px 18px; }
.docs-setup-panel > h3:first-child { margin-top: 0; font-size: 24px; line-height: 1.3; }
.docs-agent-card { margin: 24px 0 16px; border: 1px solid #e1dce9; border-radius: 12px; background: #fff; padding: 24px; }
.docs-agent-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.docs-agent-card-heading > span { font-size: 16px; font-weight: 550; color: var(--ink, #242323); }
.docs-agent-card > p { margin: 12px 0 18px; max-width: 480px; color: var(--muted, #6e6c72); font-size: 13px; }
.docs-copy.docs-agent-copy { padding: 9px 14px; border-color: #7460ba; border-radius: 7px; background: #7460ba; color: #fff; font-size: 12px; font-weight: 500; }
.docs-copy.docs-agent-copy:hover { background: #6450a8; border-color: #6450a8; }
.docs-copy.docs-agent-copy:focus-visible { outline-color: #7460ba; }
.docs-copy.docs-agent-copy[data-copied="true"] { background: #eaf0e9; color: #3b6245; border-color: #bccdbb; }
.docs-agent-preview { border-top: 1px solid #eeeaf0; padding-top: 14px; }
.docs-agent-preview summary { width: fit-content; color: #655095; font-size: 12px; cursor: pointer; }
.docs-agent-preview pre { max-height: 350px; overflow: auto; margin: 16px 0 0; padding: 18px; border: 1px solid #e5e1e7; border-radius: 7px; background: #f7f6f8; color: #514b59; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.docs-agent-preview pre code { white-space: inherit; }
.docs-content .docs-agent-help { margin-top: 24px; font-size: 13px; }
.docs-code-panel { margin: 20px 0 16px; overflow: hidden; border: 1px solid #34313b; border-radius: 10px; background: var(--code, #23222a); color: #ebe8f2; }
.docs-code-heading { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 15px; padding: 9px 17px; border-bottom: 1px solid #3b3842; color: #c1bbc9; font-size: 11px; letter-spacing: 0.015em; }
.docs-copy { flex-shrink: 0; border: 1px solid #55515d; border-radius: 5px; padding: 3px 8px; background: #302e38; color: #e0dae9; font: inherit; font-size: 10px; line-height: 1.6; cursor: pointer; }
.docs-copy:hover { background: #46414f; color: white; }
.docs-copy:focus-visible { outline-color: #c7b5f2; outline-offset: 3px; }
.docs-copy[data-copied="true"] { color: #d3e9cd; border-color: #6a7867; }
.docs-code-panel pre { margin: 0; padding: 22px; max-height: 530px; overflow: auto; font-size: 12px; line-height: 1.85; tab-size: 2; scrollbar-width: thin; scrollbar-color: #686071 var(--code, #23222a); }
.docs-code-panel pre code { background: none; padding: 0; border: 0; border-radius: 0; color: inherit; white-space: pre; word-break: normal; overflow-wrap: normal; }
.docs-content .docs-caption { margin: 12px 0 24px; color: var(--muted, #6e6c72); font-size: 12px; line-height: 1.85; }

.docs-flow { margin: 23px 0 22px; border: 1px solid var(--line, #e6e3e5); border-radius: 10px; background: #fff; }
.docs-flow-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 17px 20px; align-items: center; font-size: 12px; font-weight: 500; }
.docs-flow-row + .docs-flow-row { border-top: 1px dashed var(--line, #e6e3e5); }
.docs-flow-label { flex: 0 0 115px; color: var(--muted, #6e6c72); font-size: 11px; font-weight: 400; }
.docs-flow-row [aria-hidden="true"] { color: #9a8cac; margin: 0 2px; }

.docs-checklist,
.docs-numbered-list,
.docs-compact-list { padding-left: 21px; margin: 20px 0 24px; }
.docs-checklist li,
.docs-numbered-list li { margin: 11px 0; padding-left: 5px; }
.docs-checklist li::marker,
.docs-numbered-list li::marker { color: #8979a5; }
.docs-compact-list li { margin: 6px 0; padding-left: 3px; }

.docs-table-wrap { overflow-x: auto; margin: 23px 0; border: 1px solid var(--line, #e6e3e5); border-radius: 10px; background: #fff; scrollbar-width: thin; }
.docs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.8; }
.docs-table caption:not(.docs-sr-only) { padding: 16px; text-align: left; font-size: 11px; color: var(--muted, #6e6c72); }
.docs-table th { background: #f1f0ee; color: #67606e; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.docs-table td,
.docs-table th { padding: 12px 16px; vertical-align: top; }
.docs-table tr + tr,
.docs-table tbody tr:first-child { border-top: 1px solid #eeeaf0; }
.docs-table td:first-child { min-width: 100px; }
.docs-keyboard-table td:first-child { width: 43%; }
.docs-key-name { margin-left: 4px; font-size: 11px; color: var(--muted, #6e6c72); }
.docs-options-table td:first-child { width: 32%; }
.docs-options-table td:first-child code { padding: 0; background: none; border: none; font-size: 11px; color: #665278; }

.docs-endpoints { margin: 26px 0; border: 1px solid var(--line, #e6e3e5); border-radius: 10px; overflow: hidden; background: #fff; }
.docs-endpoint { display: grid; grid-template-columns: 42px 1fr 14px; column-gap: 13px; align-items: center; padding: 18px; color: var(--ink, #242323); text-decoration: none; transition: background 160ms ease; }
.docs-endpoint + .docs-endpoint { border-top: 1px solid var(--line, #e6e3e5); }
.docs-endpoint:hover { background: #f7f5fa; }
.docs-endpoint .docs-method { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.04em; font-weight: 600; color: #54705f; background: #eaf0e9; text-align: center; padding: 2px 0; border-radius: 4px; }
.docs-endpoint > code { border: 0; padding: 0; background: none; font-size: 12px; }
.docs-endpoint-description { grid-column: 2; font-size: 12px; color: var(--muted, #6e6c72); margin-top: 4px; }
.docs-endpoint > [aria-hidden="true"] { grid-row: 1; grid-column: 3; color: #928299; }
.docs-schema-link { display: inline-block; margin: 12px 0 12px 18px; font-size: 12px; }
.docs-content .button { font-size: 12px; }

.docs-help-card { padding: 28px; margin-top: 35px; border: 1px solid #e1dce9; border-radius: 12px; background: #f0edf5; }
.docs-help-card .docs-eyebrow { margin: 0 0 14px; font-size: 10px; }
.docs-help-card h3 { margin: 0 0 12px; font-size: 25px; }
.docs-help-card p:not(.docs-eyebrow) { max-width: 460px; color: #6d6475; font-size: 13px; }
.docs-footer { font-size: 12px; color: var(--muted, #6e6c72); }
.docs-footer .site-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.docs-footer a { text-decoration: none; }
.docs-footer a:hover { color: var(--accent, #7460ba); }
.docs-footer a:first-child { color: var(--ink, #242323); font-weight: 550; }
.docs-footer a:first-child span { color: var(--muted, #6e6c72); font-weight: 400; margin-left: 4px; }

.docs-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .docs-flow-label { flex-basis: 100%; }
  .docs-overview-card { padding: 18px; }
}

@media (max-width: 760px) {
  .docs-page .site-header { height: 74px; }
  .docs-page .site-header > .site-container { gap: 12px; }
  .docs-page .site-nav { gap: 15px; }
  .docs-page .site-nav .button { padding: 9px 11px; font-size: 10px; }
  .docs-page .site-nav .nav-link { font-size: 12px; }
  .docs-home-link { display: none; }
  .docs-layout { width: calc(100% - 40px); display: block; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; border-bottom: 1px solid var(--line, #e6e3e5); }
  .docs-menu-toggle:not([hidden]) { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 0; border: 0; background: none; color: var(--muted, #6e6c72); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
  .docs-menu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .docs-navigation { padding: 22px 0; }
  .docs-navigation nav { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .docs-navigation[hidden] { display: none; }
  .docs-nav-heading { margin-left: 12px; font-size: 9px; }
  .docs-nav-link { font-size: 12px; padding: 7px 10px; }
  .docs-sidebar-bottom { grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 11px; margin-top: 16px; padding-top: 14px; }
  .docs-sidebar-bottom p { grid-column: 1 / -1; }
  .docs-content { max-width: none; padding-top: 35px; font-size: 14px; line-height: 1.8; }
  .docs-intro h1 { font-size: 45px; }
  .docs-content .docs-lede { font-size: 17px; }
  .docs-section { scroll-margin-top: 96px; padding-bottom: 38px; }
  .docs-content h3[id] { scroll-margin-top: 96px; }
  .docs-setup-panel,
  .docs-language-panel { scroll-margin-top: 96px; }
  .docs-setup-tabs .docs-language-tab { padding: 9px 10px; font-size: 12px; }
  .docs-agent-card { padding: 18px; }
  .docs-agent-card-heading { flex-wrap: wrap; gap: 12px; }
  .docs-agent-preview pre { padding: 14px; font-size: 11px; }
  .docs-section + .docs-section { padding-top: 35px; }
  .docs-content h2 { font-size: 25px; }
  .docs-content h3 { font-size: 17px; }
  .docs-overview-cards { gap: 10px; margin-top: 25px; }
  .docs-overview-card { padding: 15px; }
  .docs-overview-card strong { font-size: 13px; }
  .docs-overview-card > span:not(.docs-card-number):not(.docs-card-arrow) { font-size: 11px; }
  .docs-card-arrow { right: 14px; top: 14px; }
  .docs-callout { padding: 15px 17px; font-size: 12px; }
  .docs-code-panel pre { padding: 18px; font-size: 11px; max-height: 450px; }
  .docs-code-heading { padding: 9px 13px; font-size: 10px; }
  .docs-table { font-size: 11px; }
  .docs-table td,
  .docs-table th { padding: 11px 12px; }
  .docs-table td:first-child { min-width: 78px; }
  .docs-options-table td:first-child { width: 33%; }
  .docs-options-table td:first-child code { font-size: 10px; }
  .docs-help-card { padding: 23px; }
  .docs-help-card h3 { font-size: 23px; }
  .docs-schema-link { margin-left: 10px; font-size: 11px; }
  .docs-footer .site-container { justify-content: flex-start; gap: 14px 24px; }
}

@media (max-width: 380px) {
  .docs-page .brand-name { font-size: 15px; }
  .docs-page .brand-mark { width: 22px; height: 22px; }
  .docs-page .site-nav { gap: 10px; }
  .docs-page .site-nav .button { padding: 8px; }
  .docs-page .site-nav .button span { display: none; }
  .docs-layout { width: calc(100% - 32px); }
  .docs-intro h1 { font-size: 40px; }
  .docs-overview-cards { grid-template-columns: 1fr; }
  .docs-schema-link { margin-left: 0; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-page *,
  .docs-page *::before,
  .docs-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
