:root {
  color-scheme: light;
  --ink: #17283f;
  --muted: #63738a;
  --blue: #275fe8;
  --line: #e3e8f0;
  --surface: #f5f7fb;
  --green: #148063;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 14px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #85a6ff;
  outline-offset: 3px;
}
code,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
  background: #edf1f7;
  color: #345275;
  padding: 3px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  overflow-wrap: normal;
}
pre {
  white-space: pre;
  tab-size: 2;
  margin: 0;
}
.topbar {
  height: 76px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand,
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font: bold 21px/1 var(--mono);
  border-radius: 9px;
}
.brand strong {
  font-size: 16px;
  letter-spacing: 0.6px;
}
.brand strong span {
  font-weight: 450;
  color: #637087;
  letter-spacing: 0;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.version {
  font: 12px var(--mono);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--muted);
}
.protocol {
  font: 11px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.download {
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  background: #fff;
}
.download:hover {
  border-color: #a5b9e7;
  background: #f7f9ff;
}
.download span {
  margin-left: 12px;
}
.menu-toggle {
  display: none;
}
.layout {
  padding-top: 76px;
  max-width: 1680px;
  margin: auto;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}
.sidebar {
  height: calc(100dvh - 76px);
  position: sticky;
  top: 76px;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 30px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fcfdff;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
  color: var(--muted);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 12px;
  color: var(--ink);
}
.search kbd {
  font: 11px var(--mono);
  border: 1px solid var(--line);
  padding: 0 4px;
  border-radius: 3px;
}
nav .nav-label {
  margin: 26px 12px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8a97a9;
  font-weight: 650;
}
nav .nav-label:first-child {
  margin-top: 0;
}
nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  margin: 3px 0;
  color: #586a82;
  border-radius: 6px;
  line-height: 1.45;
  font-size: 13px;
}
nav a:hover {
  background: #f0f4fb;
  color: #234575;
}
nav a[aria-current="page"] {
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 650;
}
.method {
  font: 600 9px var(--mono);
  color: var(--green);
  letter-spacing: 0.2px;
  background: #e7f5ef;
  padding: 3px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.sidebar-footer {
  margin: auto 12px 0;
  padding-top: 30px;
  font-size: 12px;
  color: #52677f;
}
.sidebar-footer small {
  font-size: 10px;
  color: #8592a4;
  margin-left: 13px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31a585;
  margin-right: 7px;
}
.search-empty {
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.content {
  min-width: 0;
  padding: 42px 46px 90px;
  outline: none;
}
.breadcrumb {
  font-size: 12px;
  color: #8b98aa;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb b {
  font-weight: 500;
  color: #52667f;
}
.eyebrow {
  font: 11px var(--mono);
  letter-spacing: 2px;
  color: var(--blue);
  margin: 0 0 10px;
}
h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
  line-height: 1.4;
  margin: 30px 0 16px;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 16px;
}
.lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 770px;
}
.intro {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.pill {
  font-size: 11px;
  color: #62758c;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  background: #fafbfd;
}
.root-box {
  margin: 25px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.root-box .root-label {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.root-box code {
  background: none;
  color: #274369;
  font-size: 13px;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.copy {
  border: 1px solid #dce3ef;
  border-radius: 5px;
  background: #fff;
  padding: 4px 10px;
  color: #65768d;
  font-size: 11px;
  white-space: nowrap;
}
.copy:hover {
  border-color: #99b3ee;
  color: var(--blue);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.step {
  padding: 21px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.step-number {
  display: block;
  font: 11px var(--mono);
  color: var(--blue);
  margin-bottom: 14px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
  gap: 32px;
  align-items: start;
}
.endpoint-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 30px;
  align-items: start;
}
.endpoint-code {
  position: sticky;
  top: 102px;
  min-width: 0;
}
.endpoint-code h2:first-child {
  margin-top: 0;
}
.path-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.path-line code {
  background: none;
  font-size: 13px;
  padding: 0;
}
.path-line .method {
  font-size: 10px;
  padding: 5px 8px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 15px 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  background: #f6f8fc;
  color: #728198;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f6;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td p {
  margin: 5px 0 0;
}
td code {
  font-size: 11px;
  white-space: nowrap;
}
td .type {
  color: #8b98a8;
  font: 10px var(--mono);
  display: block;
  margin-top: 5px;
}
td:first-child {
  min-width: 120px;
}
.required {
  color: #b55b3c;
  font-size: 10px;
  white-space: nowrap;
}
.optional {
  color: #8b98a8;
  font-size: 10px;
}
.notice {
  border: 1px solid #dce6fc;
  border-left: 3px solid #678ff0;
  background: #f5f8ff;
  border-radius: 6px;
  padding: 15px 18px;
  font-size: 12px;
  color: #536884;
  margin: 20px 0;
  line-height: 1.9;
}
.notice strong {
  color: #314e77;
  font-weight: 600;
}
.notice.warn {
  background: #fffaf2;
  border-color: #f0e2cb;
  border-left-color: #d5a45f;
  color: #836642;
}
.code-card {
  border-radius: 8px;
  overflow: hidden;
  background: #152136;
  color: #d3deef;
  margin: 15px 0 24px;
  border: 1px solid #23314a;
}
.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  background: #1d2a40;
  border-bottom: 1px solid #2c3b54;
  gap: 10px;
}
.code-top .label {
  font: 10px var(--mono);
  color: #98abc6;
  letter-spacing: 0.6px;
}
.code-card .copy {
  background: #24334b;
  border-color: #344760;
  color: #c3d1e6;
}
.code-card pre {
  padding: 19px;
  font-size: 11px;
  line-height: 1.9;
  overflow: auto;
  max-height: 600px;
  scrollbar-width: thin;
}
.code-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.code-tabs button {
  border: 0;
  border-radius: 4px;
  color: #93a8c8;
  background: none;
  font: 11px var(--mono);
  padding: 5px 8px;
}
.code-tabs button[aria-selected="true"] {
  background: #33486a;
  color: #fff;
}
.flat-code {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f6f8fc;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 11px/1.9 var(--mono);
  color: #435c7c;
}
.inline-list {
  margin: 12px 0 22px;
  padding-left: 22px;
  color: #5d7089;
  font-size: 13px;
}
.inline-list li {
  padding: 5px 0;
}
.link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.action {
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  color: #465f82;
}
.action.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.section-footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.empty-schema {
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 7px;
}
.nested-details {
  font-size: 12px;
  margin: 16px 0;
}
.nested-details summary {
  cursor: pointer;
  color: #42658d;
  padding: 10px 0;
}
.loading {
  color: var(--muted);
}
.toast {
  position: fixed;
  z-index: 70;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #182b45;
  color: #fff;
  padding: 10px 18px;
  border-radius: 7px;
  box-shadow: 0 8px 30px #15243d26;
  font-size: 12px;
}
.clipboard-source {
  position: fixed;
  left: -10000px;
  top: 0;
  opacity: 0;
}
.skip-link {
  position: fixed;
  z-index: 80;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.nav-shade {
  display: none;
}
.muted {
  color: var(--muted);
}
@media (min-width: 1500px) {
  .content {
    padding-left: 62px;
    padding-right: 62px;
  }
}
@media (max-width: 1200px) {
  .content {
    padding: 34px 30px 70px;
  }
  .endpoint-columns,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .endpoint-code {
    position: static;
  }
  .code-card pre {
    max-height: 490px;
  }
  .quick-grid {
    gap: 10px;
  }
  .step {
    padding: 17px 14px;
  }
}
@media (max-width: 850px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .brand strong span {
    font-size: 12px;
    margin-left: 10px;
    padding-left: 10px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand,
  .header-actions {
    gap: 10px;
  }
  .version,
  .protocol {
    display: none;
  }
  .download {
    font-size: 10px;
    padding: 7px 9px;
  }
  .download span {
    margin-left: 4px;
  }
  .menu-toggle {
    display: block;
    font-size: 11px;
    background: #edf2fc;
    color: #416086;
    border: 0;
    padding: 7px 9px;
    border-radius: 5px;
  }
  .layout {
    padding-top: 64px;
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 25;
    left: 0;
    top: 64px;
    height: calc(100dvh - 64px);
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.15s;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .nav-shade:not([hidden]) {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    z-index: 24;
    background: #10203c66;
    border: 0;
  }
  .content {
    padding: 28px 20px 60px;
  }
  .breadcrumb {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 27px;
  }
  .lead {
    font-size: 14px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .step {
    display: block;
  }
  .step-number {
    margin: 0 0 10px;
  }
  .step h3 {
    margin: 0 0 4px;
  }
  .root-box {
    padding: 15px;
    gap: 10px;
  }
  .root-label {
    width: 100%;
  }
  .root-box code {
    font-size: 11px;
  }
  .path-line code {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .code-card pre {
    font-size: 10px;
    padding: 15px;
  }
  .section-footer {
    flex-direction: column;
    gap: 10px;
  }
  .table-wrap {
    margin-right: 0;
  }
  th,
  td {
    padding: 10px;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
