:root {
  --sb-api-shell: min(1824px, calc(100% - 224px));
}

.sb-api-page {
  overflow: hidden;
  color: #111827;
  background: #ffffff;
  font-family: var(--sb-font-sans);
}

.sb-api-page .container {
  width: var(--sb-api-shell);
  max-width: none;
}

.sb-api-hero {
  padding: 74px 0 58px;
  background:
    linear-gradient(90deg, rgba(21, 114, 232, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(21, 114, 232, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 56px 56px;
}

.sb-api-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(520px, 0.56fr);
  gap: 72px;
  align-items: end;
}

.sb-api-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: #1572e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sb-api-page h1,
.sb-api-page h2,
.sb-api-page h3 {
  margin: 0;
  color: #111827;
  font-weight: 600;
  letter-spacing: 0;
}

.sb-api-page h1 {
  max-width: 780px;
  font-size: 58px;
  line-height: 1.04;
}

.sb-api-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #536174;
  font-size: 20px;
  line-height: 1.64;
}

.sb-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.sb-api-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 0.34s ease, border-color 0.18s ease, color 0.18s ease;
}

.sb-api-button:hover,
.sb-api-button:focus {
  text-decoration: none;
}

.sb-api-button-primary {
  color: #ffffff;
  background-image: linear-gradient(90deg, #073fb8 0 50%, #1572e8 50% 100%);
}

.sb-api-button-primary:hover,
.sb-api-button-primary:focus {
  color: #ffffff;
  background-position: 0 0;
}

.sb-api-button-secondary {
  border: 1px solid #dce5f1;
  color: #111827;
  background-image: linear-gradient(90deg, #eef2f7 0 50%, #ffffff 50% 100%);
}

.sb-api-button-secondary:hover,
.sb-api-button-secondary:focus {
  color: #1572e8;
  background-position: 0 0;
}

.sb-api-console {
  overflow: hidden;
  border: 1px solid #203047;
  background: #07111f;
  color: #d8e7ff;
}

.sb-api-console-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.sb-api-console-top span:last-child {
  color: #72ee76;
}

.sb-api-console pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.sb-api-console code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sb-api-code-muted {
  color: #8ea4c2;
}

.sb-api-code-green {
  color: #72ee76;
}

.sb-api-code-blue {
  color: #8dbdff;
}

.sb-api-code-orange {
  color: #f8c76a;
}

.sb-api-quickstart {
  border-top: 1px solid #dce5f1;
  border-bottom: 1px solid #dce5f1;
  background: #f5f8fc;
}

.sb-api-quickstart-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
}

.sb-api-quickstart-side {
  padding: 54px 42px 54px 0;
  border-right: 1px solid #dce5f1;
}

.sb-api-quickstart-side h2 {
  font-size: 36px;
  line-height: 1.1;
}

.sb-api-quickstart-side p {
  margin: 18px 0 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.62;
}

.sb-api-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
}

.sb-api-flow-step {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid #dce5f1;
}

.sb-api-flow-step:last-child {
  border-right: 0;
}

.sb-api-flow-step small {
  color: #1572e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sb-api-flow-step strong {
  display: block;
  margin-top: 34px;
  color: #111827;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.16;
}

.sb-api-flow-step p {
  margin: 12px 0 0;
  color: #536174;
  font-size: 15px;
  line-height: 1.56;
}

.sb-api-reference {
  padding: 78px 0;
  background: #ffffff;
}

.sb-api-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(380px, 0.4fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 30px;
}

.sb-api-section-head h2 {
  max-width: 720px;
  font-size: 42px;
  line-height: 1.1;
}

.sb-api-section-head p {
  margin: 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.62;
}

.sb-api-endpoint-table {
  border-top: 1px solid #dce5f1;
}

.sb-api-endpoint-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 0.55fr) minmax(0, 1fr) 150px;
  gap: 28px;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid #dce5f1;
}

.sb-api-method {
  width: 76px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.sb-api-post {
  color: #125f20;
  background: rgba(49, 206, 54, 0.14);
}

.sb-api-get {
  color: #155fb7;
  background: rgba(21, 114, 232, 0.12);
}

.sb-api-patch {
  color: #8a5700;
  background: rgba(248, 199, 106, 0.2);
}

.sb-api-path {
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.sb-api-endpoint-row p {
  margin: 0;
  color: #536174;
  font-size: 15px;
  line-height: 1.48;
}

.sb-api-tag {
  justify-self: end;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.sb-api-schemas {
  padding: 78px 0;
  background: #f5f8fc;
}

.sb-api-schema-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(520px, 0.65fr);
  gap: 58px;
  align-items: start;
}

.sb-api-schema-copy h2 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1.1;
}

.sb-api-schema-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.62;
}

.sb-api-schema-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #dce5f1;
  background: #dce5f1;
}

.sb-api-schema-card {
  min-height: 160px;
  padding: 24px;
  background: #ffffff;
}

.sb-api-schema-card strong {
  display: block;
  color: #111827;
  font-size: 19px;
  font-weight: 600;
}

.sb-api-schema-card p {
  margin: 12px 0 0;
  color: #536174;
  font-size: 14px;
  line-height: 1.52;
}

.sb-api-docs-cta {
  padding: 76px 0;
  background:
    linear-gradient(90deg, rgba(21, 114, 232, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(21, 114, 232, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 52px 52px;
}

.sb-api-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid #dce5f1;
  background: rgba(255, 255, 255, 0.82);
}

.sb-api-cta-box h2 {
  max-width: 720px;
  font-size: 38px;
  line-height: 1.12;
}

.sb-api-cta-box p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #536174;
  font-size: 16px;
  line-height: 1.58;
}

@media (max-width: 1099.98px) {
  :root {
    --sb-api-shell: calc(100% - 56px);
  }

  .sb-api-hero-grid,
  .sb-api-quickstart-grid,
  .sb-api-section-head,
  .sb-api-schema-grid,
  .sb-api-cta-box {
    grid-template-columns: 1fr;
  }

  .sb-api-quickstart-side {
    padding: 54px 0 28px;
    border-right: 0;
  }

  .sb-api-flow,
  .sb-api-schema-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sb-api-endpoint-row {
    grid-template-columns: 100px minmax(220px, 0.55fr) minmax(0, 1fr);
  }

  .sb-api-tag {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  :root {
    --sb-api-shell: calc(100% - 24px);
  }

  .sb-api-hero {
    padding: 54px 0 42px;
  }

  .sb-api-page h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .sb-api-lead {
    font-size: 17px;
  }

  .sb-api-actions {
    display: grid;
  }

  .sb-api-button {
    width: 100%;
  }

  .sb-api-flow,
  .sb-api-schema-list,
  .sb-api-endpoint-row {
    grid-template-columns: 1fr;
  }

  .sb-api-flow-step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #dce5f1;
  }

  .sb-api-endpoint-row {
    gap: 10px;
    padding: 18px 0;
  }

  .sb-api-quickstart-side h2,
  .sb-api-section-head h2,
  .sb-api-schema-copy h2,
  .sb-api-cta-box h2 {
    font-size: 30px;
  }
}
