@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/v1/docs/assets/inter-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --bg: #fff;
  --soft: #f7f8fa;
  --surface: #f1f4f9;
  --text: #172033;
  --muted: #526078;
  --border: #e6eaf0;
  --blue: #2563eb;
  --blue-soft: #edf3ff;
  --code: #f6f8fc;
  --scalar-font: Inter, system-ui, sans-serif;
  --scalar-font-code: ui-monospace, SFMono-Regular, Consolas, monospace;
  --scalar-custom-header-height: 68px;
  --scalar-sidebar-width: 288px;
  --scalar-color-1: var(--text);
  --scalar-color-2: var(--muted);
  --scalar-color-3: #68758a;
  --scalar-color-accent: var(--blue);
  --scalar-background-1: var(--bg);
  --scalar-background-2: var(--soft);
  --scalar-background-3: var(--surface);
  --scalar-background-accent: var(--blue-soft);
  --scalar-border-color: var(--border);
  --scalar-radius: 8px;
  --scalar-radius-lg: 12px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10151e;
  --soft: #151c28;
  --surface: #1c2534;
  --text: #edf2fb;
  --muted: #a6b3c8;
  --border: #283243;
  --blue: #88b0ff;
  --blue-soft: #1b2d4e;
  --code: #151e2d;
  --scalar-color-3: #a6b3c8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.65 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button {
  transition:
    background-color 0.15s,
    color 0.15s;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
:where(.portal-header, .guide-page, #docs-search) button:active {
  transform: translateY(1px);
}
:where(.portal-header, .guide-page, #docs-search) button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
:where(.portal-header, .guide-page, #docs-search) button:hover {
  background: var(--soft);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--blue);
  color: var(--bg);
  z-index: 40;
}
.skip-link:focus {
  top: 12px;
}
.portal-header {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.accent {
  color: var(--blue);
}
.header-divider {
  height: 22px;
  border-left: 1px solid var(--border);
}
.header-label {
  color: var(--muted);
  font-size: 13px;
}
.header-tabs {
  display: flex;
  align-self: stretch;
  gap: 26px;
  margin-left: 28px;
}
.header-tabs a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
  font-weight: 550;
  color: var(--muted);
}
.header-tabs a[aria-current] {
  border-color: var(--blue);
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.app-link {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.app-link:hover {
  color: var(--blue);
}
#theme-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
}
#theme-toggle:hover,
#theme-toggle[aria-expanded='true'] {
  background: var(--surface);
  color: var(--text);
}
.appearance-control {
  position: relative;
}
.appearance-trigger [data-theme-icon] {
  display: none;
}
:root[data-theme-preference='light'] [data-theme-icon='light'],
:root[data-theme-preference='dark'] [data-theme-icon='dark'],
:root[data-theme-preference='system'] [data-theme-icon='system'] {
  display: flex;
}
.appearance-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 190px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 8px 24px #17203312,
    0 2px 6px #17203308;
}
.appearance-caption {
  display: block;
  padding: 7px 10px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.appearance-menu button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
}
.appearance-menu button > svg {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.appearance-menu button:hover,
.appearance-menu button:focus-visible {
  background: var(--soft);
}
.appearance-menu button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.appearance-menu button[aria-checked='true'] {
  color: var(--blue);
  background: var(--blue-soft);
}
.appearance-check {
  margin-left: auto;
  display: flex;
  opacity: 0;
}
.appearance-menu button[aria-checked='true'] .appearance-check {
  opacity: 1;
}
:root[data-theme='dark'] .appearance-menu {
  box-shadow:
    0 8px 32px #0003,
    0 0 0 1px #fff04;
}
.portal-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 210px;
  max-width: 1536px;
  margin: auto;
  min-height: calc(100dvh - 68px);
}
.sidebar {
  padding: 32px 22px 26px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 68px;
  height: calc(100dvh - 68px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.search-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  padding: 9px 10px;
  margin-bottom: 26px;
  white-space: nowrap;
  background: var(--soft);
}
.search-trigger > svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.search-trigger > span {
  flex: 1;
}
.search-trigger {
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 10px;
  font-size: 11px;
  background: var(--bg);
}
.search-trigger kbd {
  margin: 0;
  font-size: 9px;
  border: 0;
  background: var(--soft);
}
.search-trigger:hover {
  border-color: var(--muted);
}
kbd {
  font:
    10px/1.4 Inter,
    system-ui,
    sans-serif;
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.nav-group {
  margin-bottom: 25px;
}
.nav-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.045em;
  display: block;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 9px;
}
.nav-group a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 7px;
  line-height: 1.45;
  margin: 3px 0;
}
.nav-group a:hover {
  background: var(--soft);
  color: var(--text);
}
.nav-group a[aria-current] {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
}
.sidebar-bottom {
  padding: 22px 12px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: grid;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-bottom span {
  font-size: 11px;
}
.sidebar-bottom a:hover {
  color: var(--blue);
}
.article {
  padding: 48px 52px 28px;
  max-width: 900px;
  min-width: 0;
  margin: 0 auto;
  width: 100%;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.breadcrumb span {
  color: var(--muted);
  opacity: 0.55;
}
h1 {
  font-size: 40px;
  line-height: 1.17;
  letter-spacing: -1.5px;
  font-weight: 650;
  margin: 0 0 18px;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}
.page-intro {
  margin-bottom: 32px;
}
p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.8;
}
strong {
  color: var(--text);
  font-weight: 600;
}
.article section {
  margin-top: 42px;
}
.article section > p {
  max-width: 640px;
}
code {
  font: 12px/1.6 var(--scalar-font-code);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--code);
  overflow-wrap: anywhere;
  color: var(--text);
}
.integration-paths {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 16px;
  margin: 32px 0 40px;
}
.path-link {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.assistant-path {
  background: var(--soft);
}
.path-link:hover {
  border-color: var(--blue);
}
.path-symbol {
  font: 600 20px/1 var(--scalar-font-code);
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.path-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.path-topline .path-symbol {
  display: flex;
  margin: 0;
}
.path-symbol svg {
  width: 23px;
  height: 23px;
}
.path-arrow {
  display: flex;
  color: var(--muted);
  opacity: 0.55;
  transition:
    transform 0.15s,
    opacity 0.15s;
}
.path-link:hover .path-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  color: var(--blue);
}
.path-link {
  border-radius: 10px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.path-link h2 {
  font-size: 18px;
  font-weight: 600;
}
.path-link p {
  max-width: 27ch;
  font-size: 13px;
}
.page-intro h1 {
  max-width: 22ch;
  text-wrap: balance;
}
.page-intro .lead {
  max-width: 55ch;
  text-wrap: pretty;
}
.path-link h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  margin-bottom: 8px;
}
.path-link p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 230px;
}
.path-action {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
}
.path-action > span {
  margin-left: 7px;
}
.setup-steps {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  counter-reset: setup;
}
.setup-steps > li {
  position: relative;
  counter-increment: setup;
  padding: 0 0 28px 42px;
}
.setup-steps > li:before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  background: var(--soft);
  color: var(--muted);
}
.setup-steps > li:not(:last-child):after {
  content: '';
  position: absolute;
  top: 32px;
  left: 12px;
  bottom: 8px;
  border-left: 1px solid var(--border);
}
.setup-steps p {
  font-size: 13px;
  margin-bottom: 14px;
}
.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 550;
}
.text-link:hover {
  text-decoration: underline;
}
.flow {
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.flow span {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.flow span[aria-hidden] {
  color: var(--muted);
  font-weight: 400;
}
.small {
  font-size: 12px;
}
.code-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code);
  overflow: hidden;
  margin: 18px 0 24px;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.code-bar button {
  border: 0;
  padding: 3px 5px;
  font-size: 11px;
  color: var(--muted);
}
.code-bar .copy-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 5px;
}
.copy-control svg {
  width: 13px;
  height: 13px;
}
.copy-icon,
.copy-check {
  display: flex;
}
.copy-check {
  display: none;
}
.copy-control[data-copy-state='copied'] .copy-icon {
  display: none;
}
.copy-control[data-copy-state='copied'] .copy-check {
  display: flex;
}
.copy-control[data-copy-state='copied'] {
  color: var(--blue);
}
pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px 18px 20px;
  tab-size: 2;
}
pre code {
  border: 0;
  padding: 0;
  border-radius: 0;
  overflow-wrap: normal;
  white-space: pre;
  background: transparent;
  font-size: 12px;
  color: var(--text);
}
.resource-links {
  margin: 24px 0;
  display: grid;
}
.resource-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.resource-links a strong {
  font-size: 13px;
}
.resource-links a span {
  font-size: 12px;
  color: var(--muted);
}
.resource-links a span:not([aria-hidden]) {
  grid-column: 1;
}
.resource-links a span[aria-hidden] {
  grid-column: 2;
  grid-row: 1/3;
  color: var(--muted);
  align-self: center;
}
.resource-links a:hover strong {
  color: var(--blue);
}
.guide-page .contents {
  padding: 49px 20px 20px 0;
  position: sticky;
  top: 68px;
  align-self: start;
  font-size: 11px;
}
.guide-page .contents > span {
  color: var(--text);
  font-weight: 550;
  display: block;
  margin-bottom: 16px;
}
.guide-page .contents > a {
  color: var(--muted);
  display: block;
  padding: 6px 0;
  font-size: 11px;
}
.guide-page .contents > a:hover {
  color: var(--blue);
}
.contents-help {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.contents-help p {
  font-size: 11px;
  margin: 0 0 4px;
}
.contents-help a {
  font-size: 11px;
  color: var(--blue);
}
.article-footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.article-footer a {
  color: var(--blue);
  text-align: right;
}
.markdown-content {
  font-size: 14px;
}
.markdown-content h2,
.markdown-content h3 {
  margin-top: 34px;
}
.markdown-content h3 {
  font-size: 19px;
}
.markdown-content li {
  color: var(--muted);
  padding: 5px 0;
}
.markdown-content li code {
  font-size: 11px;
}
.markdown-content ul,
.markdown-content ol {
  padding-left: 22px;
}
.markdown-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.markdown-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
}
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
}
.markdown-content th,
.markdown-content td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.markdown-content > p:first-child {
  margin-top: 0;
}
.mobile-menu {
  display: none;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  width: min(600px, calc(100% - 32px));
  padding: 24px;
  box-shadow: 0 24px 80px #17203326;
}
dialog::backdrop {
  background: #10151e66;
}
.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.search-heading h2 {
  font-size: 17px;
  margin: 0;
}
.search-heading button {
  font-size: 11px;
}
#search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}
#search-input::placeholder {
  color: var(--muted);
}
#search-results {
  max-height: 380px;
  overflow: auto;
  margin-top: 16px;
}
.search-result {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
}
.search-result:hover {
  background: var(--soft);
}
.search-result strong {
  display: block;
  font-size: 13px;
}
.search-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.search-empty {
  font-size: 13px;
  padding: 12px 0;
}
.reference-main {
  min-height: calc(100dvh - 68px);
}
.reference-loading,
.reference-error {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 32px;
}
.reference-loading p {
  font-size: 13px;
  margin-top: 24px;
}
.skeleton {
  display: block;
  height: 18px;
  width: 85%;
  margin: 16px 0;
  background: var(--surface);
  border-radius: 5px;
}
.skeleton-title {
  height: 36px;
  width: 60%;
  margin-bottom: 28px;
}
.reference-error a {
  color: var(--blue);
}
@media (min-width: 1536px) {
  .portal-layout {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
@media (max-width: 1200px) {
  .portal-layout {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  .guide-page .contents {
    display: none;
  }
  .article {
    padding: 42px 40px;
  }
  .sidebar {
    padding: 28px 18px;
  }
  .search-trigger {
    font-size: 11px;
  }
  .header-tabs {
    margin-left: 0;
  }
}
@media (max-width: 767px) {
  .portal-header {
    padding: 0 18px;
    gap: 14px;
    height: 64px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand svg {
    width: 27px;
    height: 27px;
  }
  .header-divider,
  .header-label,
  .app-link {
    display: none;
  }
  .header-tabs {
    gap: 18px;
    margin-left: 6px;
    font-size: 12px;
  }
  .header-actions {
    gap: 0;
  }
  #theme-toggle {
    width: 38px;
    height: 38px;
    padding: 9px;
  }
  .portal-layout {
    display: block;
    min-height: calc(100dvh - 108px);
  }
  .mobile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 22px;
    font-size: 12px;
    background: var(--soft);
    position: sticky;
    top: 64px;
    z-index: 15;
  }
  .mobile-menu svg {
    width: 15px;
    height: 15px;
  }
  .mobile-menu svg:last-child {
    margin-left: auto;
    transition: transform 0.15s;
  }
  .mobile-menu[aria-expanded='true'] svg:last-child {
    transform: rotate(180deg);
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 108px;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - 108px);
    background: var(--bg);
    z-index: 15;
    max-width: none;
    padding: 24px;
  }
  .sidebar.is-open {
    display: flex;
  }
  .article {
    padding: 30px 22px 22px;
    max-width: 700px;
  }
  h1 {
    font-size: 33px;
    letter-spacing: -1.1px;
  }
  .lead {
    font-size: 15px;
  }
  .integration-paths {
    gap: 12px;
    margin-top: 26px;
  }
  .path-link {
    padding: 18px 16px;
  }
  .path-topline {
    margin-bottom: 16px;
    align-items: flex-start;
  }
  .path-topline .path-arrow {
    display: none;
  }
  .path-link h2 {
    font-size: 15px;
  }
  .path-link p {
    font-size: 12px;
  }
  .path-symbol {
    margin-bottom: 15px;
  }
  .path-action {
    font-size: 11px;
  }
  .setup-steps > li {
    padding-left: 36px;
  }
  .article section {
    margin-top: 34px;
  }
  .flow {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }
  .flow span {
    font-size: 11px;
  }
  .article-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .article-footer a {
    text-align: left;
  }
  :root {
    --scalar-custom-header-height: 64px;
  }
  .reference-loading {
    padding: 60px 22px;
  }
  dialog {
    padding: 20px;
  }
}
@media (max-width: 420px) {
  .integration-paths {
    grid-template-columns: 1fr;
  }
  .path-link {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0 14px;
    padding: 18px;
  }
  .path-topline {
    grid-row: 1/4;
    margin: 0;
  }
  .path-symbol {
    grid-row: 1/4;
    margin-top: 2px;
  }
  .path-link h2 {
    font-size: 16px;
  }
  .path-link p {
    max-width: none;
    margin-bottom: 12px;
  }
  .path-action {
    grid-column: 2;
  }
  .header-tabs {
    gap: 12px;
  }
  .portal-header {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a,
  button {
    transition: none;
  }
  button:active {
    transform: none;
  }
  .path-arrow {
    transition: none;
  }
  .path-link:hover .path-arrow {
    transform: none;
  }
}

.reference-page {
  height: 100dvh;
  overflow: hidden;
}
.api-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  height: calc(100dvh - 68px);
}
.api-sidebar {
  background: var(--soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 14px 16px;
}
.api-sidebar nav {
  overflow-y: auto;
  min-height: 0;
  padding: 14px 0;
  scrollbar-width: thin;
}
.api-search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
}
.api-search-trigger svg {
  width: 15px;
  height: 15px;
}
.api-search-trigger kbd {
  margin-left: auto;
  font:
    10px/1.3 Inter,
    sans-serif;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 4px;
}
.api-intro-link {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 8px;
  border-radius: 7px;
  color: var(--muted);
}
.api-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.api-group-toggle svg {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}
.api-group-toggle[aria-expanded='true'] svg {
  transform: rotate(0);
}
.api-group-toggle[aria-expanded='true'],
.api-group-toggle.is-active {
  color: var(--text);
}
.api-nav-group {
  margin: 4px 0;
}
.api-nav-children {
  border-left: 1px solid var(--border);
  margin: 2px 0 10px 20px;
  padding: 2px 0 2px 7px;
}
.api-nav-children a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px;
  margin: 1px 0;
  font-size: 12px;
  line-height: 1.45;
  border-radius: 6px;
  color: var(--muted);
}
.api-nav-children a > span:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.api-sidebar a[aria-current='page'] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.api-nav-method {
  font: 600 9px/1.4 var(--scalar-font-code);
  flex-shrink: 0;
}
.api-group-toggle:hover,
.api-sidebar nav a:hover {
  background: var(--surface);
}
.api-sidebar-footer {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.api-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.api-sidebar-footer svg {
  width: 12px;
  height: 12px;
}
.api-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.api-scroll {
  scrollbar-gutter: stable;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  display: flex;
  flex-direction: column;
}
.api-view-stage {
  flex: 1 0 auto;
}
.api-view {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 44px 36px;
}
.api-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 19px;
}
.api-breadcrumb span {
  opacity: 0.45;
}
.api-title-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.api-title-line h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.9px;
  overflow-wrap: anywhere;
}
.api-copy-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
}
.api-copy-link:hover {
  background: var(--soft);
  color: var(--blue);
}
.api-copy-link svg {
  width: 16px;
  height: 16px;
}
.api-endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.api-endpoint-line code {
  color: var(--muted);
  font: 13px/1.6 var(--scalar-font-code);
  overflow-wrap: anywhere;
}
.api-method {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font: 600 10px/1.3 var(--scalar-font-code);
  color: var(--text);
}
[data-method='GET'] {
  color: #0369a1;
}
[data-method='POST'] {
  color: #047857;
}
[data-method='PATCH'],
[data-method='PUT'] {
  color: #a16207;
}
[data-method='DELETE'] {
  color: #b91c1c;
}
:root[data-theme='dark'] [data-method='GET'] {
  color: #7dd3fc;
}
:root[data-theme='dark'] [data-method='POST'] {
  color: #6ee7b7;
}
:root[data-theme='dark'] [data-method='PATCH'],
:root[data-theme='dark'] [data-method='PUT'] {
  color: #fcd34d;
}
:root[data-theme='dark'] [data-method='DELETE'] {
  color: #fda4af;
}
.api-operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 48px;
  margin-top: 28px;
}
.api-reading {
  min-width: 0;
}
.api-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.api-description p {
  margin: 0 0 16px;
  text-wrap: pretty;
}
.api-description a,
.api-field-description a,
.api-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.api-auth-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding: 8px 12px;
  margin: 20px 0;
}
.api-auth-note a {
  color: var(--blue);
  margin-left: auto;
}
.api-auth-note code {
  font: 11px var(--scalar-font-code);
}
.api-detail-section {
  margin-top: 30px;
}
.api-detail-section h2,
.api-responses h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 16px;
  letter-spacing: -0.1px;
}
.api-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.api-section-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.api-fields {
  border-top: 1px solid var(--border);
}
.api-field {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.api-field-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.api-field-line > code {
  font: 600 12px/1.6 var(--scalar-font-code);
  overflow-wrap: anywhere;
}
.api-type,
.api-type-link {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.api-type-link {
  color: var(--blue);
}
.api-required,
.api-optional {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.api-required {
  color: var(--text);
}
.api-field-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.api-field-description p {
  margin: 7px 0 0;
  text-wrap: pretty;
}
.api-field-description code {
  font: 11px var(--scalar-font-code);
}
.api-constraints {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}
.api-enum {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.api-enum code {
  background: var(--soft);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  font: 10px/1.6 var(--scalar-font-code);
  overflow-wrap: anywhere;
}
.api-nested {
  margin-top: 10px;
}
.api-nested summary,
.api-response-schema summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 5px 0;
}
.api-nested summary::-webkit-details-marker,
.api-response-schema summary::-webkit-details-marker {
  display: none;
}
.api-nested summary svg,
.api-response-schema summary svg {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}
.api-nested[open] > summary svg,
.api-response-schema[open] > summary svg {
  transform: rotate(0);
}
.api-nested > .api-fields {
  margin: 10px 0 0 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  border-top: 0;
}
.api-schema-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
}
.api-examples {
  min-width: 0;
  position: static;
}
.api-request-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
  overflow: hidden;
}
.api-card-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.api-card-heading code {
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  font: 12px var(--scalar-font-code);
  color: var(--muted);
}
.api-language-tabs,
.api-response-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.api-language-tabs button,
.api-response-tabs button {
  padding: 12px 0 10px;
  font-size: 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
}
.api-language-tabs button[aria-selected='true'],
.api-response-tabs button[aria-selected='true'] {
  border-bottom-color: var(--blue);
  color: var(--text);
  font-weight: 600;
}
.api-examples .code-block {
  background: var(--soft);
  border: 0;
  margin: 0;
  border-radius: 0;
}
.api-examples .code-block pre {
  padding: 16px;
  font-size: 11px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--text);
}
.api-examples .code-bar {
  justify-content: end;
  padding: 7px 12px 0;
  border: 0;
}
.api-examples .code-bar > span {
  display: none;
}
.api-examples .copy-control {
  background: transparent;
  border: 0;
  font-size: 10px;
  padding: 4px;
  color: var(--muted);
}
.api-examples .copy-control svg {
  width: 12px;
  height: 12px;
}
.api-try {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 14px 14px;
  padding: 9px 12px;
  width: calc(100% - 28px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
}
.api-try:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
}
.api-try svg {
  width: 14px;
  height: 14px;
}
.api-responses {
  margin-top: 26px;
}
.api-response-tabs {
  padding: 0;
  gap: 18px;
  overflow: auto;
}
.api-response-tabs button {
  padding-top: 0;
}
.api-response-description {
  font-size: 12px;
  color: var(--muted);
}
.api-response-description p {
  margin: 14px 0;
}
.api-responses .code-block {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.api-response-schema {
  margin-top: 12px;
}
.api-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.api-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 22px 44px;
}
.api-pagination button {
  padding: 6px 0;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-align: left;
  line-height: 1.6;
}
.api-pagination button:last-child {
  text-align: right;
}
.api-pagination button:hover:not(:disabled) {
  color: var(--blue);
}
.api-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.api-pagination > span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.api-transition-layer {
  position: absolute;
  left: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
  z-index: 2;
  contain: layout paint;
}
.api-examples pre.api-code-preview:not(.is-expanded) {
  max-height: 320px;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}
.api-code-expand {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  background: var(--soft);
  color: var(--blue);
  font-size: 11px;
  text-align: left;
}
.api-code-expand:hover {
  background: var(--surface);
}
.api-model-content {
  max-width: 850px;
  margin-top: 28px;
}
.api-intro-content {
  max-width: 840px;
}
.api-lead {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin: 22px 0 32px;
}
.api-intro-links {
  border-top: 1px solid var(--border);
}
.api-intro-links > a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}
.api-intro-links > a > svg {
  color: var(--blue);
  width: 22px;
  height: 22px;
}
.api-intro-links > a > svg:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.api-intro-links strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.api-intro-links div > span {
  font-size: 12px;
  color: var(--muted);
}
.api-intro-links a:hover strong {
  color: var(--blue);
}
.api-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 15px 18px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}
.api-base code {
  font: 12px var(--scalar-font-code);
  color: var(--text);
  overflow-wrap: anywhere;
}
.api-contract-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.api-contract-links a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.api-contract-links svg {
  width: 13px;
  height: 13px;
}
#api-mobile-menu {
  display: none;
}
.api-search,
.api-playground {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 80px #10151e33;
}
.api-search {
  width: min(620px, calc(100vw - 32px));
  max-height: 80dvh;
}
.api-search::backdrop,
.api-playground::backdrop {
  background: #10151e66;
  backdrop-filter: blur(2px);
}
.api-search-heading,
.api-playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.api-search h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.api-search-heading button,
.api-playground-header button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 5px;
  font-size: 11px;
}
.api-search input {
  width: calc(100% - 48px);
  margin: 16px 24px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  border-radius: 7px;
  outline-offset: 1px;
}
#api-search-results {
  padding: 0 12px 12px;
  max-height: 50dvh;
  overflow: auto;
}
#api-search-results > a {
  display: block;
  padding: 12px;
  border-radius: 7px;
}
#api-search-results > a:hover,
#api-search-results > a:focus {
  background: var(--soft);
}
#api-search-results strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
#api-search-results span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.api-playground {
  width: min(680px, calc(100vw - 28px));
  max-height: 90dvh;
  overflow: auto;
}
.api-playground h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.api-eyebrow {
  font-size: 11px;
  color: var(--muted);
}
.api-playground form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.api-request-address {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 11px/1.6 var(--scalar-font-code);
  overflow-wrap: anywhere;
}
.api-playground label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--muted);
}
.api-playground label a {
  color: var(--blue);
}
.api-playground input,
.api-playground select,
.api-playground textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--soft);
  color: var(--text);
  padding: 10px 12px;
  font-size: 12px;
  outline-offset: 1px;
}
.api-playground textarea {
  font: 11px/1.65 var(--scalar-font-code);
  resize: vertical;
}
.api-request-field {
  margin-bottom: 14px;
}
.api-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
}
.api-send:hover:not(:disabled) {
  background: #1d4ed8;
}
.api-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.api-send svg {
  width: 15px;
  height: 15px;
}
#api-live-response {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
#api-live-response pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: 11px/1.65 var(--scalar-font-code);
  max-height: 400px;
  overflow: auto;
}
#api-live-response summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}
.api-result-status {
  font-size: 12px;
  font-weight: 600;
}
.api-result-status[data-ok='true'] {
  color: var(--blue);
}
.api-result-status[data-ok='false'] {
  color: var(--muted);
}
@media (min-width: 1700px) {
  .api-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .api-view {
    padding: 28px 30px;
  }
  .api-operation-grid {
    gap: 30px;
  }
  .api-pagination {
    padding: 20px 30px;
  }
}
@media (max-width: 1000px) {
  .api-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .api-operation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .api-examples {
    position: static;
  }
  .api-title-line h1 {
    font-size: 27px;
  }
  .api-nav-children a {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .api-layout {
    display: block;
    height: calc(100dvh - 64px);
  }
  .api-main {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  #api-mobile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-size: 12px;
    width: 100%;
    flex-shrink: 0;
  }
  #api-mobile-menu > svg {
    width: 16px;
    height: 16px;
  }
  #api-mobile-menu > svg:last-child {
    margin-left: auto;
  }
  .api-sidebar {
    display: none;
    position: absolute;
    top: 107px;
    bottom: 0;
    left: 0;
    width: min(320px, 85vw);
    z-index: 15;
    box-shadow: 14px 0 30px #10151e1a;
  }
  .api-sidebar.is-open {
    display: flex;
  }
  .api-scroll {
    min-height: 0;
  }
  .api-view {
    padding: 24px 20px 30px;
  }
  .api-title-line h1 {
    font-size: 25px;
  }
  .api-operation-grid {
    margin-top: 23px;
  }
  .api-description {
    font-size: 13px;
  }
  .api-pagination {
    padding: 18px 20px;
    gap: 10px;
  }
  .api-pagination button {
    font-size: 11px;
  }
  .api-lead {
    font-size: 14px;
  }
  .api-playground-header {
    padding: 18px;
  }
  .api-playground form {
    padding: 18px;
  }
  #api-live-response {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .api-group-toggle svg {
    transition: none;
  }
}

.api-field-line > code,
.api-endpoint-line > code,
.api-card-heading > code {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.api-webhook-example h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
}
.api-webhook-example .code-block {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.api-operation-grid .api-model-content {
  margin-top: 0;
}
