:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
  background: #f5f8fa;
  font-synthesis: none;
  --ink: #102238;
  --muted: #718399;
  --line: #dfe7ed;
  --teal: #00866c;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: #006553; }
a:focus-visible, .table-wrap:focus-visible { outline: 3px solid #5bcdb5; outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 8px 16px; border-radius: 8px; background: white; }
.skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: auto; padding: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { display: block; flex: none; }
.brand-copy { display: flex; align-items: center; gap: 14px; }
.brand-copy strong { font-size: 18px; letter-spacing: -.4px; }
.brand-copy > span { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: #425971; font-size: 12px; white-space: nowrap; }
.back-link:hover { border-color: #9bd9c9; background: #f1fbf7; }
.back-link > span { font-size: 16px; color: var(--teal); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; max-width: 1200px; margin: 28px auto 0; padding: 0 24px 32px; }
.docs-sidebar { position: sticky; top: 98px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding: 16px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scrollbar-width: thin; scrollbar-color: #d5e2df transparent; }
.sidebar-heading { display: flex; flex-direction: column; gap: 3px; padding: 0 8px 14px; }
.sidebar-heading strong { color: #30475b; font-size: 14px; line-height: 1.4; }
.sidebar-heading > span { color: #92a0ad; font-size: 10px; }
.nav-group { margin-bottom: 14px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group-title { display: flex; align-items: center; gap: 10px; margin: 0 8px 7px; color: #8d9aa7; font-size: 10px; font-weight: 700; letter-spacing: .8px; line-height: 1.6; cursor: default; }
.nav-group-title::after { content: ""; flex: 1; height: 1px; background: #e8edf1; }
.nav-group a { display: flex; align-items: center; gap: 7px; min-height: 34px; margin: 3px 0; padding: 7px 8px; border: 1px solid #edf1f4; border-radius: 6px; background: #f8fafb; color: #435e73; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.nav-label { flex: 1; min-width: 0; }
.nav-chevron { flex: none; color: #849cae; font-size: 17px; line-height: 1; }
.nav-group a:hover, .nav-group a:focus-visible { border-color: #a9d6c9; background: #edf8f3; color: #00745e; }
.nav-group a:hover .nav-label { text-decoration: underline; text-underline-offset: 3px; }
.nav-method { display: inline-block; flex: none; min-width: 34px; padding: 2px 4px; border-radius: 4px; background: #eaf2ff; text-align: center; font-size: 8px; font-weight: 750; line-height: 1.5; }
.nav-method.get { background: #e7f5ee; }
body:not(.docs-scrollspy):not(:has(main :target)) .docs-sidebar a[href="#overview"],
body:not(.docs-scrollspy):has(#overview:target) .docs-sidebar a[href="#overview"],
body:not(.docs-scrollspy):has(#safety:target) .docs-sidebar a[href="#safety"],
body:not(.docs-scrollspy):has(#formats:target) .docs-sidebar a[href="#formats"],
body:not(.docs-scrollspy):has(#inspect:target) .docs-sidebar a[href="#inspect"],
body:not(.docs-scrollspy):has(#redeem:target) .docs-sidebar a[href="#redeem"],
body:not(.docs-scrollspy):has(#download:target) .docs-sidebar a[href="#download"],
body:not(.docs-scrollspy):has(#single-inspect:target) .docs-sidebar a[href="#single-inspect"],
body:not(.docs-scrollspy):has(#single-redeem:target) .docs-sidebar a[href="#single-redeem"],
body:not(.docs-scrollspy):has(#redownload:target) .docs-sidebar a[href="#redownload"],
body:not(.docs-scrollspy):has(#examples:target) .docs-sidebar a[href="#examples"],
.docs-sidebar a[aria-current="location"] { border-color: #b4dacd; background: #e7f5ee; color: #006c56; box-shadow: inset 3px 0 0 #079578; font-weight: 700; }
.post { color: #1769c2; }
.get { color: #00866c; }
.sidebar-note { margin: 18px 8px 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.sidebar-note strong { color: #486477; font-size: 11px; }
.sidebar-note p { margin: 6px 0 0; line-height: 1.85; }
main { min-width: 0; }
section { scroll-margin-top: 94px; margin-bottom: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
section:target { border-color: #a3d7cb; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
p { margin: 12px 0; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
p code, li code { font-size: .9em; color: #087763; }
.hero { background: linear-gradient(145deg, #f5fcf9 0, #fff 48%); }
.section-kicker { margin: 0 0 7px; color: #7a8fa2; font-size: 10px; font-weight: 750; letter-spacing: 1.2px; }
.hero .section-kicker { color: var(--teal); }
.hero-description { margin: 10px 0 22px; color: #718399; font-size: 13px; }
.quick-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.quick-steps a { display: flex; height: 100%; align-items: center; gap: 9px; padding: 12px 10px; border: 1px solid #dcebe5; border-radius: 9px; background: #fff; color: var(--ink); }
.quick-steps a:hover { border-color: #90cebb; background: #f7fcf9; }
.step-number { display: grid; flex: none; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e6f6ee; color: var(--teal); font-size: 11px; font-weight: 750; }
.quick-steps strong { display: block; font-size: 12px; }
.quick-steps small { display: block; margin-top: 3px; color: #7c8b9b; font-size: 10px; line-height: 1.5; }
.step-arrow { margin-left: auto; color: #a8b9b2; font-size: 15px; }
.base { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; padding: 13px 15px; border: 1px solid #dce7ed; border-radius: 9px; background: #f7f9fb; }
.base > span:first-child { color: #718399; font-size: 11px; }
.base code { color: #007c69; font-size: 13px; overflow-wrap: anywhere; }
.base-label { margin-left: auto; padding: 2px 7px; border-radius: 4px; background: #eaf0f4; color: #7d8b99; font-size: 10px; }
.base-note { margin: 10px 0 18px; font-size: 12px; line-height: 1.85; color: #6c7f92; overflow-wrap: anywhere; }
.auth-note { padding: 11px 14px; border-left: 3px solid #7bccb6; border-radius: 0 7px 7px 0; background: #f4faf7; }
.note-label { color: #2b6d5c; font-size: 12px; font-weight: 700; }
.auth-note p { margin: 4px 0 0; font-size: 12px; line-height: 1.9; color: #557366; }
.example-note { margin: 16px 0 0; color: #718396; font-size: 12px; line-height: 1.85; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.section-tag { padding: 3px 8px; border: 1px solid #e2e9ef; border-radius: 5px; color: #7c8d9f; font-size: 10px; }
.safety .section-kicker { color: #a47e36; }
.safety .section-tag { color: #9a712c; border-color: #eee1c6; background: #fffbf2; }
.safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.safety-grid li { padding: 15px; border: 1px solid #e7e9e9; border-radius: 9px; background: #fafbf9; }
.safety-grid strong { display: flex; align-items: baseline; gap: 9px; font-size: 12px; color: #354e5d; }
.safety-grid strong > span { color: #b8985d; font-size: 10px; }
.safety-grid p { margin: 7px 0 0; font-size: 12px; line-height: 1.9; color: #687763; overflow-wrap: anywhere; }
.section-description { margin: -5px 0 18px; color: #6e8093; font-size: 13px; }
.format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.format-grid > div { display: flex; flex-direction: column; gap: 5px; padding: 13px; border: 1px solid #e0e9ee; border-radius: 9px; background: #f9fbfc; min-width: 0; }
.format-grid code { color: #0a8871; font-size: 10px; overflow-wrap: anywhere; }
.format-grid strong { color: #374f64; font-size: 13px; }
.format-grid span { color: #8b98a6; font-size: 10px; }
.endpoint-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.endpoint-number { padding: 3px 7px; border-radius: 5px; background: #eff3f6; color: #94a3b2; font-size: 11px; }
.effect { margin-left: auto; padding: 3px 8px; border: 1px solid #d6eee4; border-radius: 5px; background: #f2faf6; color: #27856b; font-size: 10px; }
.effect.debit { border-color: #f0dfbf; background: #fffaf0; color: #a67828; }
.effect.consuming { border-color: #dbe8f5; background: #f3f8fd; color: #487ca3; }
.route { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #e0e8ee; border-radius: 8px; background: #f7f9fb; }
.method { flex: none; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 750; line-height: 1.7; }
.method.post { background: #eaf2ff; }
.method.get { background: #e7f7ef; }
.path { align-self: center; min-width: 0; overflow-wrap: anywhere; color: #40556c; font-size: 12px; line-height: 1.85; }
.endpoint-description { margin: 15px 0 22px; color: #6e8093; font-size: 13px; }
.subheading { margin: 22px 0 11px; font-size: 12px; font-weight: 700; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e0e7ed; border-radius: 8px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.8; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e9eef2; vertical-align: top; }
thead th { background: #f4f7fa; color: #8b99a9; font-size: 10px; font-weight: 500; }
tbody th { font-weight: 500; color: #315c74; }
tbody tr:last-child > * { border-bottom: 0; }
td:nth-child(2) { white-space: nowrap; color: #8a98a8; font-size: 10px; }
td:nth-child(3) { white-space: nowrap; }
td:last-child { min-width: 220px; color: #748396; }
.required { color: #3c8b74; }
.optional { color: #99a4ae; }
.endpoint-notes { margin: 0 0 22px; padding-left: 18px; font-size: 13px; line-height: 1.9; color: #657b91; }
.endpoint-notes li { padding-left: 2px; margin-bottom: 9px; overflow-wrap: anywhere; }
.endpoint-notes li::marker { color: #adbfcb; }
.code-example { overflow: hidden; margin-top: 18px; border: 1px solid #213747; border-radius: 9px; background: #132431; color: #d0e7df; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid #29404d; background: #1b303e; }
.code-heading h3 { margin: 0; color: #d1e5e1; font-size: 11px; font-weight: 500; }
.code-heading > span { color: #7f9aab; font-size: 10px; }
pre { max-width: 100%; margin: 0; overflow-x: auto; padding: 17px; font-size: 12px; line-height: 1.85; tab-size: 2; }
pre code { color: inherit; font-size: inherit; }
.shell-note { margin: 10px 0 0; color: #8a98a7; font-size: 10px; line-height: 1.9; }
footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 2px 4px; font-size: 11px; color: #91a0ae; }
footer p { margin: 0; }
footer a { flex: none; }
@media (min-width: 901px) and (max-height: 800px) {
  .sidebar-note { display: none; }
  .nav-group { margin-bottom: 12px; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 204px minmax(0, 1fr); gap: 24px; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-steps { grid-template-columns: 1fr; gap: 8px; }
  .quick-steps a { padding: 10px 12px; }
  .quick-steps small { display: inline; margin-left: 8px; }
  .quick-steps strong { display: inline; }
}
@media (max-width: 900px) {
  .layout { display: block; margin-top: 18px; }
  .docs-sidebar { position: static; max-height: none; padding: 0 0 12px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  aside nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 3px 2px 8px; scrollbar-width: none; }
  aside nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-group a { flex: none; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
  .nav-method { min-width: 30px; }
  .sidebar-heading, .nav-group-title, .sidebar-note { display: none; }
  .quick-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-steps strong { display: block; }
  .quick-steps small { display: block; margin-left: 0; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; padding: 12px 16px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-copy { display: block; }
  .brand-copy strong { display: block; font-size: 16px; line-height: 1.4; }
  .brand-copy > span { display: block; padding: 0; border: 0; font-size: 10px; }
  .back-link { gap: 4px; padding: 5px 8px; font-size: 10px; }
  .layout { padding: 0 12px 24px; margin-top: 12px; }
  section { padding: 20px 16px; margin-bottom: 16px; border-radius: 11px; scroll-margin-top: 88px; }
  h1 { font-size: 24px; letter-spacing: -.6px; }
  h2 { font-size: 18px; }
  .hero-description { font-size: 12px; }
  .quick-steps { grid-template-columns: 1fr; }
  .quick-steps a { padding: 10px 12px; }
  .quick-steps strong { display: inline; }
  .quick-steps small { display: inline; margin-left: 8px; }
  .step-arrow { font-size: 13px; }
  .base { gap: 6px 12px; padding: 11px 12px; }
  .base-label { display: none; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-grid li { padding: 13px; }
  .format-grid > div { padding: 11px; }
  .section-heading { gap: 9px; }
  .endpoint-heading { gap: 8px; margin-bottom: 14px; }
  .effect { margin-left: 0; font-size: 9px; }
  .route { gap: 8px; padding: 10px; }
  .path { font-size: 11px; }
  .code-heading { padding: 9px 12px; }
  pre { padding: 13px; font-size: 10px; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 10px; }
}
