:root {
  --ink: #111827;
  --muted: #68758c;
  --line: #e5e9f0;
  --soft: #f6f8fb;
  --blue: #1268f3;
  --blue-soft: #edf5ff;
  --green: #11845b;
  --warning: #9b5c00;
  --header-height: 104px;
  --sidebar-width: 274px;
  --toc-width: 224px;
  --content-width: 820px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
code, pre, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--blue); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.docs-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-height); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-primary { height: 64px; max-width: 1560px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 560px) minmax(260px, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.brand strong { color: var(--ink); font-size: 18px; letter-spacing: -.35px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: linear-gradient(145deg,#0959ed,#23adff); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 7px 18px rgba(18,104,243,.2); }
.search-trigger { height: 40px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #d9dee8; border-radius: 10px; background: #f7f8fa; color: #7a8496; cursor: pointer; text-align: left; }
.search-trigger span:nth-child(2) { flex: 1; }
.search-trigger kbd { padding: 2px 7px; border: 1px solid #d8dde6; border-radius: 6px; background: #fff; font-size: 11px; }
.search-trigger:hover { border-color: #bdc6d5; background: #fff; }
.header-links { justify-self: end; display: flex; align-items: center; gap: 22px; color: #4e5a6e; font-size: 14px; }
.header-links a:hover { color: var(--ink); }
.header-links .console-link { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.04); }
.mobile-menu { display: none; width: 38px; height: 38px; border: 0; background: transparent; font-size: 21px; cursor: pointer; }
.category-nav { height: 40px; max-width: 1560px; margin: 0 auto; padding: 0 28px; display: flex; align-items: stretch; gap: 27px; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a { position: relative; display: grid; place-items: center; flex: 0 0 auto; color: #596579; font-size: 14px; }
.category-nav a:hover, .category-nav a.active { color: var(--ink); }
.category-nav a.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--ink); border-radius: 2px; }

.docs-layout { max-width: 1560px; min-height: 100vh; margin: 0 auto; padding: var(--header-height) 28px 0; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)) var(--toc-width); justify-content: center; gap: 58px; }
.docs-sidebar, .docs-toc { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); }
.docs-sidebar { border-right: 1px solid var(--line); margin-left: -28px; padding-left: 28px; }
.sidebar-scroll { height: 100%; overflow-y: auto; padding: 30px 24px 70px 0; scrollbar-width: thin; }
.docs-sidebar section + section { margin-top: 28px; }
.docs-sidebar h2 { margin: 0 0 8px; color: #313b4c; font-size: 13px; font-weight: 700; }
.docs-sidebar a { position: relative; display: block; margin: 2px 0; padding: 7px 10px; border-radius: 7px; color: #6b7484; font-size: 14px; line-height: 1.42; }
.docs-sidebar a:hover { color: var(--ink); background: var(--soft); }
.docs-sidebar a.active { color: var(--ink); background: #f0f1f3; font-weight: 600; }
.docs-sidebar a.active::before { content: ""; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 2px; background: var(--blue); border-radius: 2px; }

.docs-main { min-width: 0; padding: 35px 0 96px; outline: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #8a93a2; font-size: 13px; }
.breadcrumbs a:hover { color: var(--blue); }
.article-header { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 27px 0 30px; border-bottom: 1px solid var(--line); }
.article-heading { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 650; }
h1 { margin: 0; color: #12161e; font-size: clamp(34px, 4vw, 44px); line-height: 1.13; letter-spacing: -1.5px; }
.lead { max-width: 700px; margin: 18px 0 0; color: #636d7e; font-size: 17px; line-height: 1.8; }
.article-actions { display: flex; gap: 7px; align-self: start; }
.article-actions button, .doc-feedback button { min-height: 36px; padding: 0 13px; border: 1px solid #dfe3e9; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.article-actions button:hover, .doc-feedback button:hover { border-color: #aeb8c7; background: var(--soft); }
.article-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #8a93a2; font-size: 12px; }
.article-meta span:first-child { color: var(--green); }

.article-content { color: #333d4c; font-size: 15px; line-height: 1.82; }
.article-content section { padding-top: 34px; }
.article-content h2 { margin: 0 0 18px; color: #181d25; font-size: 25px; line-height: 1.3; letter-spacing: -.45px; }
.article-content h3 { margin: 0; color: #242b36; font-size: 15px; line-height: 1.65; }
.article-content p { margin: 12px 0; }
.article-content ul:not(.check-list) { padding-left: 23px; }
.article-content li + li { margin-top: 8px; }
.article-content code:not(pre code) { padding: 2px 6px; border: 1px solid #e4e8ee; border-radius: 5px; background: #f7f8fa; color: #194fa4; font-size: .9em; overflow-wrap: anywhere; }
.callout { margin: 30px 0 0; padding: 17px 19px; border: 1px solid #cfe0f8; border-left: 3px solid var(--blue); border-radius: 8px; background: #f7fbff; }
.callout strong { display: block; color: #174b9c; font-size: 14px; }
.callout p { margin: 5px 0 0; color: #53657e; font-size: 14px; }
.callout-warning { border-color: #f0dfbd; border-left-color: #c17b16; background: #fffaf1; }
.callout-warning strong { color: var(--warning); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 14px; min-height: 60px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: 0; left: 15px; width: 1px; background: var(--line); }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #cfdae9; border-radius: 50%; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 11px; padding: 12px 14px; border-radius: 7px; background: var(--soft); }
.check-list span { color: var(--green); font-weight: 800; }
.code-block { margin: 18px 0; overflow: hidden; border: 1px solid #242c3d; border-radius: 10px; background: #101726; color: #d6deee; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.code-tabs { margin-top: 18px; }
.code-tab-list { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.code-tab-list button { position: relative; padding: 8px 1px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.code-tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.code-tab-list button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--blue); }
.code-tab-panel[hidden] { display: none; }
.code-tab-panel .code-block { margin-top: 12px; }
.code-toolbar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #283247; color: #9aa9c2; font-size: 12px; }
.code-toolbar button { border: 0; background: transparent; color: #b9c6db; cursor: pointer; }
.code-toolbar button:hover { color: #fff; }
.code-block pre { margin: 0; padding: 19px; overflow-x: auto; font-size: 13px; line-height: 1.7; white-space: pre; }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.method { padding: 3px 7px; border-radius: 5px; background: #dff7ea; color: #08764c; font-size: 11px; font-weight: 800; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7f8fa; color: #555f70; font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-row div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.metric-row strong { display: block; color: var(--blue); font-size: 22px; overflow-wrap: anywhere; }
.metric-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.source-note { color: var(--muted); font-size: 13px; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.definition-grid div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
.definition-grid span, .definition-grid strong { display: block; }
.definition-grid span { color: var(--muted); font-size: 12px; }
.definition-grid strong { margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 3px; cursor: pointer; color: #202733; font-weight: 650; }
.faq-list p { padding: 0 3px 18px; color: var(--muted); }

.doc-feedback { margin-top: 54px; padding: 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; }
.doc-feedback p { margin: 0; font-size: 14px; font-weight: 600; }
.doc-feedback div { display: flex; gap: 7px; }
.pagination { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pagination a { min-height: 77px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 9px; }
.pagination a.next { text-align: right; }
.pagination a:hover { border-color: #a9c7f5; background: #fafcff; }
.pagination span { color: var(--muted); font-size: 11px; }
.pagination strong { margin-top: 4px; font-size: 14px; }

.docs-toc { padding: 34px 0 70px; overflow-y: auto; }
.docs-toc strong { display: block; margin-bottom: 10px; color: #4e5868; font-size: 12px; }
.docs-toc a { display: block; padding: 5px 0 5px 13px; border-left: 1px solid var(--line); color: #8a93a2; font-size: 12px; line-height: 1.45; }
.docs-toc a:hover, .docs-toc a.active { border-left-color: var(--blue); color: var(--ink); }

.search-dialog { width: min(680px, calc(100% - 32px)); margin-top: 10vh; padding: 0; border: 1px solid #d6dce6; border-radius: 13px; background: #fff; box-shadow: 0 30px 80px rgba(15,23,42,.24); }
.search-dialog::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(3px); }
.search-panel { max-height: 70vh; overflow: hidden; }
.search-input { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.search-input input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; }
.search-input button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); cursor: pointer; font-size: 11px; }
.search-results { max-height: calc(70vh - 58px); padding: 10px; overflow-y: auto; }
.search-results > p { margin: 20px; color: var(--muted); text-align: center; }
.search-results a { display: block; padding: 12px 13px; border-radius: 8px; }
.search-results a:hover, .search-results a:focus { background: var(--soft); outline: none; }
.search-results strong, .search-results span { display: block; }
.search-results strong { font-size: 14px; }
.search-results span { margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results small { color: var(--blue); font-size: 11px; }
.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 11px 15px; border-radius: 8px; background: #18202e; color: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.2); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .18s ease; }
.toast.visible { opacity: 1; transform: none; }
body.docs-loading .docs-main { opacity: .45; transition: opacity .12s; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 250px; }
  .docs-layout { grid-template-columns: var(--sidebar-width) minmax(0, 780px); gap: 42px; }
  .docs-toc { display: none; }
  .header-primary { grid-template-columns: minmax(220px, 1fr) minmax(280px, 500px) minmax(220px, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-height: 105px; }
  .header-primary { grid-template-columns: 1fr auto auto; gap: 8px; padding: 0 16px; }
  .brand span:last-child { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  .header-links { display: none; }
  .mobile-menu { display: block; }
  .category-nav { padding: 0 16px; gap: 23px; }
  .docs-layout { display: block; padding: var(--header-height) 20px 0; }
  .docs-sidebar { position: fixed; z-index: 45; top: var(--header-height); bottom: 0; left: 0; width: min(320px, 88vw); height: auto; margin: 0; padding-left: 20px; background: #fff; box-shadow: 20px 0 50px rgba(15,23,42,.15); transform: translateX(-110%); transition: transform .2s ease; }
  body.sidebar-open::after { content: ""; position: fixed; z-index: 44; inset: var(--header-height) 0 0; background: rgba(15,23,42,.32); }
  body.sidebar-open .docs-sidebar { transform: none; }
  .sidebar-scroll { padding-right: 20px; }
  .docs-main { max-width: 760px; margin: 0 auto; padding-top: 27px; }
}

@media (max-width: 560px) {
  .docs-layout { padding-left: 16px; padding-right: 16px; }
  .article-header { grid-template-columns: 1fr; padding-top: 22px; }
  h1 { font-size: 34px; }
  .lead { margin-top: 13px; font-size: 15px; }
  .article-actions { grid-row: 3; }
  .article-meta { grid-column: auto; }
  .article-content h2 { font-size: 22px; }
  .metric-row, .definition-grid { grid-template-columns: 1fr; }
  .doc-feedback { align-items: flex-start; gap: 12px; flex-direction: column; }
  .pagination { grid-template-columns: 1fr; }
  .pagination a.next { text-align: left; }
  .code-block { margin-left: -4px; margin-right: -4px; }
  .code-block pre { padding: 16px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
