:root {
  color-scheme: light;
  --background: #f8f9fb;
  --surface: #fff;
  --surface-soft: #f1f4f8;
  --text: #161c27;
  --muted: #626f81;
  --border: #e0e5ed;
  --primary: #004fdf;
  --primary-light: #edf3ff;
  --success: #167449;
  --warning: #ab6814;
  --code: #101b2d;
  --code-text: #eaf0ff;
  --header-height: 68px;
  --sidebar-width: 258px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.64; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #75a2ff; outline-offset: 3px; }
code, pre, .eyebrow, .api-method, .version-tag, .shortcut { font-family: "IBM Plex Mono", Consolas, monospace; }
code { font-size: .9em; padding: .12em .34em; border-radius: 5px; background: #edf1f6; overflow-wrap: anywhere; }
pre code { font-size: 13px; padding: 0; background: none; overflow-wrap: normal; }
pre { margin: 0; overflow-x: auto; white-space: pre; line-height: 1.72; tab-size: 2; }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 100; background: #fff; padding: 10px; border-radius: 6px; }
.skip-link:focus { top: 6px; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); padding: 0 30px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.7px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border: 5px solid #004fdf; border-radius: 8px; transform: rotate(-12deg); display: inline-block; }
.brand-divider { border-left: 1px solid var(--border); height: 27px; margin: 0 5px; }
.brand-docs { color: #667487; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-link { color: #4c596a; font-size: 13px; font-weight: 600; }
.header-link:hover { color: var(--primary); }
.search-wrap { position: relative; min-width: 285px; }
.search-field { width: 100%; border: 1px solid var(--border); background: #f7f9fc; color: var(--text); padding: 9px 65px 9px 36px; border-radius: 9px; font-size: 13px; outline: none; }
.search-field:focus { border-color: #81a7ec; background: #fff; }
.search-icon { position: absolute; top: 9px; left: 12px; color: #8b98a8; font-size: 16px; }
.shortcut { position: absolute; right: 10px; top: 9px; color: #8894a5; font-size: 11px; }
.search-results { display: none; position: absolute; z-index: 100; top: calc(100% + 6px); left: 0; right: 0; max-height: min(430px,75vh); overflow-y: auto; background: white; border: 1px solid #dfe5ec; border-radius: 10px; box-shadow: 0 20px 50px rgba(32,41,59,.16); padding: 6px; }
.search-results.open { display: block; }
.search-result { display: block; padding: 10px 12px; border-radius: 7px; color: var(--text); font-size: 13px; line-height: 1.45; }
.search-result:hover, .search-result:focus-visible { background: var(--primary-light); text-decoration: none; }
.search-result small { display: block; color: var(--muted); }
.menu-toggle { display: none; background: none; color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; }
.docs-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); max-width: 1700px; min-height: calc(100vh - var(--header-height)); margin: 0 auto; }
.sidebar { position: sticky; top: var(--header-height); align-self: start; height: calc(100vh - var(--header-height)); overflow-y: auto; padding: 28px 15px 30px 28px; background: #fff; border-right: 1px solid var(--border); scrollbar-width: thin; }
.sidebar-section { margin-bottom: 27px; }
.sidebar-title { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; color: #8792a3; padding: 0 12px; margin: 0 0 10px; }
.sidebar-link { display: block; padding: 8px 12px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: #48576a; font-size: 13px; font-weight: 500; line-height: 1.45; }
.sidebar-link:hover { background: #f6f8fb; color: #192639; text-decoration: none; }
.sidebar-link[aria-current="page"] { color: #004fdf; border-left-color: #004fdf; background: var(--primary-light); font-weight: 700; }
.sidebar-note { margin: 22px 8px; border-top: 1px solid var(--border); padding: 18px 10px 0; font-size: 12px; color: var(--muted); }
.document-area { display: grid; grid-template-columns: minmax(0, 800px) 190px; gap: clamp(20px, 4vw, 72px); padding: 44px clamp(22px, 4.4vw, 80px) 90px; max-width: 1300px; width: 100%; margin: 0 auto; }
.document { min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--muted); margin: 0 0 23px; display: flex; gap: 10px; align-items: center; }
.breadcrumb span { color: #b3bfcc; }
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); }
h1 { font-size: clamp(32px, 4.2vw, 44px); letter-spacing: -.055em; line-height: 1.15; margin: 10px 0 18px; font-weight: 700; }
.lead { color: #5a6574; font-size: 17px; line-height: 1.7; margin: 0 0 31px; max-width: 690px; }
h2 { font-size: 25px; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 15px; }
h3 { font-size: 17px; line-height: 1.4; margin: 23px 0 10px; }
p { margin: 0 0 16px; }
.document ul, .document ol { margin: 10px 0 20px; padding-left: 22px; }
.document li { padding-left: 5px; margin: 6px 0; }
.doc-section { padding: 30px 0 35px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-height) + 20px); }
.doc-section:first-of-type { border-top: 0; padding-top: 0; }
.note { padding: 16px 18px; border: 1px solid #bcd1fb; border-left: 3px solid var(--primary); background: #f1f6ff; border-radius: 7px; font-size: 13px; margin: 22px 0; }
.note.warning { border-color: #ead5b0; border-left-color: var(--warning); background: #fff8ea; }
.note strong { display: block; color: #244374; margin-bottom: 5px; }
.note.warning strong { color: #86530b; }
.note p:last-child { margin-bottom: 0; }
.code-shell { margin: 18px 0 24px; border-radius: 10px; overflow: hidden; background: var(--code); border: 1px solid #243149; box-shadow: 0 6px 20px rgba(16,27,45,.06); }
.code-header { color: #afbed3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #2e3b53; font-size: 11px; }
.code-label { font-family: "IBM Plex Mono",monospace; }
.code-copy { background: #273750; color: #e4ebfc; border: 1px solid #395271; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 5px; }
.code-copy:hover { background: #344968; }
.code-shell pre { padding: 19px 21px 21px; color: var(--code-text); }
.code-shell code { color: inherit; }
.inline-path { white-space: nowrap; }
.api-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 12px 0; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.api-row code { background: none; padding: 0; font-weight: 600; }
.api-method { color: #0e7b52; background: #e8f7ee; padding: 4px 7px; font-size: 10px; border-radius: 4px; }
.api-method.post { color: #1a56d0; background: #eaf0ff; }
.table-wrap { overflow-x: auto; margin: 17px 0 24px; border: 1px solid var(--border); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: white; min-width: 430px; }
thead { background: #f3f6f9; }
th,td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 700; color: #344356; }
.toc { position: sticky; top: calc(var(--header-height) + 42px); height: max-content; padding-top: 3px; font-size: 12px; color: var(--muted); }
.toc-title { text-transform: uppercase; color: #8591a2; letter-spacing: .1em; font-size: 10px; font-weight: 700; margin-bottom: 13px; }
.toc a { display: block; border-left: 1px solid #d9e0e7; color: #697487; padding: 7px 12px; line-height: 1.4; }
.toc a:hover { color: var(--primary); text-decoration: none; border-left-color: var(--primary); }
.link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 21px 0 28px; }
.link-card { padding: 19px; border-radius: 10px; border: 1px solid var(--border); background: white; color: var(--text); transition: border-color .16s, box-shadow .16s; }
.link-card:hover { border-color: #93b4ff; box-shadow: 0 5px 16px rgba(23,43,84,.05); text-decoration: none; }
.link-card strong { display: block; margin-bottom: 6px; font-size: 14px; }
.link-card span { font-size: 12px; color: var(--muted); }
.status { display: inline-block; font-family: "IBM Plex Mono",monospace; font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 5px; background: #e5f5ec; color: var(--success); }
.status.private { color: #89550e; background: #fff1d4; }
.version-entry { padding: 22px 0; border-bottom: 1px solid var(--border); }
.version-entry h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version-meta { color: var(--muted); font-size: 12px; }
.doc-footer { margin-top: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; padding-top: 22px; }
.mobile-backdrop { display: none; }
@media(max-width:1240px) {
  .document-area { grid-template-columns: minmax(0,1fr); max-width: 850px; }
  .toc { display: none; }
}
@media(max-width:830px) {
  .site-header { padding: 0 16px; }
  .brand-divider,.brand-docs,.header-link,.shortcut { display: none; }
  .brand { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .search-wrap { min-width: 0; width: min(45vw,280px); }
  .search-field { padding-right: 9px; }
  .docs-layout { display: block; }
  .sidebar { position: fixed; z-index: 71; top: var(--header-height); left: 0; bottom: 0; width: min(310px,82vw); height: auto; transform: translateX(-105%); box-shadow: 12px 0 30px rgba(0,0,0,.09); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop.open { display: block; position: fixed; z-index: 70; inset: var(--header-height) 0 0; background: rgba(15,23,42,.28); }
  .document-area { padding: 34px 22px 65px; }
}
@media(max-width:510px) {
  .search-wrap { width: 42px; }
  .search-field { padding-left: 31px; }
  .search-field:not(:focus) { font-size: 0; }
  .search-field:focus { position: absolute; top: -19px; right: 0; width: min(75vw,330px); min-height: 40px; background: white; font-size: 13px; z-index: 5; }
  .search-results { width: min(85vw,360px); right: 0; left: auto; top: 30px; }
  .document-area { padding: 26px 17px 50px; }
  .link-grid { grid-template-columns: 1fr; }
  .lead { font-size: 15px; }
  .code-shell pre { padding: 14px 12px; }
  .brand-mark { width: 22px; height: 22px; border-width: 4px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; transition-duration:0s!important; animation-duration:0s!important; } }
