:root {
  color-scheme: light dark;
  --page: #f5f6f8;
  --paper: #fff;
  --ink: #12161f;
  --muted: #4a5363;
  --line: #dfe3ea;
  --blue: #1f3fa6;
  --blue-ink: #fff;
  --blue-soft: #e6ebfa;
  --notice: #edf0f8;
  --code-bg: #151d31;
  --code-line: #31405c;
  --code-text: #eef1fb;
  --header-height: 65px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1117;
    --paper: #171b23;
    --ink: #edeff4;
    --muted: #a6aebd;
    --line: #2a303c;
    --blue: #a7b8ff;
    --blue-ink: #131a31;
    --blue-soft: #222e55;
    --notice: #191f30;
    --code-bg: #111826;
    --code-line: #34405a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
a { color: var(--blue); text-underline-offset: .16em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { font: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.75rem, 6vw, 4.65rem); letter-spacing: -.062em; font-weight: 790; line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); letter-spacing: -.045em; font-weight: 750; line-height: 1.15; margin-bottom: 15px; }
h3 { font-size: 1.11rem; font-weight: 720; letter-spacing: -.016em; line-height: 1.3; margin: 30px 0 8px; }
code { font: .88em/1.4 var(--mono); }
:not(pre) > code { border-radius: 4px; padding: .11em .35em; background: var(--blue-soft); color: var(--blue); overflow-wrap: anywhere; }
.wrap { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; left: 10px; top: 10px; background: var(--paper); padding: 10px; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .header-links, .brand { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: calc(var(--header-height) - 1px); gap: 12px; }
.brand { flex-shrink: 0; gap: 10px; color: var(--ink); font-weight: 750; text-decoration: none; line-height: 1.15; }
.brand img { border-radius: 9px; display: block; }
.brand small { color: var(--muted); font-size: .84rem; font-weight: 570; margin-left: .38rem; }
.header-links { gap: 16px; font-size: .9rem; font-weight: 620; }
.header-links a { text-decoration: none; white-space: nowrap; display: flex; align-items: center; min-height: 44px; gap: .4em; }
.header-links a:hover { text-decoration: underline; }

.layout { display: grid; grid-template-columns: 216px minmax(0, 760px); gap: clamp(30px, 6.6vw, 100px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-height) + 34px); padding: 0 14px 0 0; margin-top: 50px; max-height: calc(100vh - var(--header-height) - 55px); overflow: auto; }
.sidebar nav { display: grid; gap: 3px; }
.nav-title { margin: 0 0 6px 12px; color: var(--muted); font-size: .76rem; font-weight: 710; }
.sidebar a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 7px 12px; border-radius: 7px; color: var(--muted); font-size: .9rem; font-weight: 550; line-height: 1.25; text-decoration: none; }
.sidebar a:hover { background: var(--paper); color: var(--ink); }
.sidebar a[aria-current] { color: var(--blue); background: var(--blue-soft); font-weight: 690; }
.sidebar .nav-external { border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 10px; }
main { min-width: 0; padding-top: 48px; }
.hero { padding: clamp(24px, 4vw, 52px) 0 34px; }
.version { display: inline-block; font: 600 .76rem/1.25 var(--mono); background: var(--blue-soft); color: var(--blue); border-radius: 5px; padding: 5px 8px; margin-bottom: 14px; }
.lead { margin: 18px 0 23px; max-width: 51ch; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.24rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; gap: .6em; align-items: center; min-height: 48px; border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; font-size: .92rem; font-weight: 680; text-decoration: none; line-height: 1.3; }
.button-primary { background: var(--blue); color: var(--blue-ink); }
.button-primary:hover { filter: brightness(.91); }
.button-secondary { background: var(--paper); border-color: var(--line); }
.button-secondary:hover { border-color: var(--blue); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 10px; background: var(--notice); border: 1px solid var(--line); border-radius: 10px; padding: 14px 17px; line-height: 1.5; margin-bottom: 42px; font-size: .93rem; }
.notice-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; margin-top: .48em; }
.notice p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }

.doc-section { padding-bottom: 40px; margin-block-end: 37px; border-bottom: 1px solid var(--line); }
.doc-section > p { color: var(--muted); }
.doc-section p strong { color: var(--ink); }
.access-options { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; margin: 20px 0; }
.access-options > div { padding: 18px; }
.access-options > div + div { border-left: 1px solid var(--line); }
.access-options h3 { margin: 0 0 7px; }
.access-options p { margin: 0; color: var(--muted); font-size: .94rem; }
.endpoint { display: flex; gap: 8px; align-items: baseline; margin-bottom: 9px; }
.endpoint > code { background: transparent; padding: 0; color: var(--muted); }
.method { display: inline-block; border-radius: 4px; padding: 3px 7px; font: 700 .74em/1.4 var(--mono); }
.method.get { color: #18623e; background: #d9efe3; }
.method.put { color: #744012; background: #fce8cc; }
@media (prefers-color-scheme: dark) {
  .method.get { color: #a9ebc4; background: #173b2a; }
  .method.put { color: #ffdda7; background: #442d19; }
}

.code-block { background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-line); border-radius: 10px; margin: 17px 0 22px; }
.code-head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; border-bottom: 1px solid var(--code-line); padding: 0 12px 0 16px; font-size: .79rem; color: #c2cbe1; font-weight: 660; }
.code-head button { color: inherit; background: transparent; border: 1px solid transparent; border-radius: 5px; min-height: 40px; padding: 0 6px; cursor: pointer; }
.code-head button:hover { color: white; }
.code-head button:focus-visible, pre:focus-visible { outline-color: #a7b8ff; outline-offset: -3px; }
pre { margin: 0; padding: 15px 16px 17px; overflow: auto; line-height: 1.45; tab-size: 2; }
pre code { font-size: .87rem; line-height: 1.6; }
.syntax-string { color: #addeb9; }
.syntax-keyword { color: #beceff; }
.syntax-comment { color: #aab6d1; }
.fields-label { margin-bottom: 7px; }
.fields { margin: 0 0 14px; }
.fields > div { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 8px 14px; border-top: 1px solid var(--line); padding: 9px 1px; }
.fields > div:last-child { border-bottom: 1px solid var(--line); }
.fields dd { margin: 0; color: var(--muted); }
.fields dt { min-width: 0; }
table { width: 100%; text-align: left; border-collapse: collapse; line-height: 1.5; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); }
tbody th { width: 165px; font-weight: 640; }
tbody th code { display: inline-block; margin-top: 2px; }
tbody td { color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: 42px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 17px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .layout { display: block; }
  .sidebar { position: static; margin-top: 16px; padding: 0; max-height: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
  .sidebar .nav-title { flex-basis: 100%; margin: 0 0 0 7px; }
  .sidebar a { min-height: 44px; padding-inline: 7px; }
  .sidebar .nav-external { border: 0; margin: 0; gap: .3em; }
  main { padding-top: 0; }
  .hero { padding-top: 24px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .brand small { display: block; margin: 2px 0 0; }
  .header-links a:first-child { display: none; }
  .access-options { grid-template-columns: 1fr; }
  .access-options > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .fields > div { grid-template-columns: 1fr; gap: 3px; }
  th, td { padding-inline: 5px; }
  tbody th { width: 115px; }
}
