@font-face {
  font-family: "Geist Sans";
  src: url("/assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --background: #fff;
  --foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #646464;
  --border: #e7e7e7;
  --border-strong: #c9c9c9;
  --header-background: #f8f8f8;
  --secondary-surface: #fcfcfc;
  --success: #23704b;
  --focus: #353535;
  --font-sans:
    "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: #000;
  --foreground: #eaeaea;
  --muted: #151515;
  --muted-foreground: #a0a0a0;
  --border: #242424;
  --border-strong: #454545;
  --header-background: #111;
  --secondary-surface: #080808;
  --success: #78c7a0;
  --focus: #ddd;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: #000;
    --foreground: #eaeaea;
    --muted: #151515;
    --muted-foreground: #a0a0a0;
    --border: #242424;
    --border-strong: #454545;
    --header-background: #111;
    --secondary-surface: #080808;
    --success: #78c7a0;
    --focus: #ddd;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font: 14px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: var(--background);
  background: var(--foreground);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 550;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
  margin: 28px 0 12px;
}
h4 {
  font-size: 14px;
}
p + p {
  margin-top: 8px;
}
code,
.mono,
pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
p code,
li code,
dd code {
  background: var(--muted);
  padding: 2px 4px;
}
pre {
  margin: 0;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
}
pre code {
  overflow-wrap: normal;
  white-space: pre;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--muted-foreground);
}
.icon-button:hover {
  color: var(--foreground);
  background: var(--muted);
}
.topbar {
  height: 48px;
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  background: var(--header-background);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.brand {
  height: 48px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font: 500 18px/1.5 var(--font-mono);
  letter-spacing: 0.05em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  height: 16.2px;
  width: auto;
  flex: none;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}
.machine-link {
  font: 11px var(--font-mono);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sun {
  display: none;
}
:root[data-theme="dark"] .sun {
  display: block;
}
:root[data-theme="dark"] .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .sun {
    display: block;
  }
  :root:not([data-theme]) .moon {
    display: none;
  }
}
main {
  padding: 48px 48px 0;
  min-width: 0;
}
.document {
  max-width: 1104px;
  margin: auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 0;
}
.page-intro {
  padding: 44px 28px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 40%;
  height: 140px;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(
    var(--border-strong) 0.7px,
    transparent 0.7px
  );
  background-size: 8px 8px;
  mask-image: linear-gradient(to left, #000, transparent);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font: 10px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
}
.title-line {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.version {
  font: 11px/1.6 var(--font-mono);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
}
.lead {
  font-size: 16px;
}
.intro-description {
  color: var(--muted-foreground);
  max-width: 660px;
  font-size: 13px;
  margin-top: 8px;
}
.intro-meta {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.intro-meta time {
  font-family: var(--font-mono);
}
.quick-start,
.doc-section {
  padding: 28px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading h2 > span {
  font: 10px var(--font-mono);
  color: var(--muted-foreground);
}
.small-label {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.quick-start > p,
.doc-section > p {
  color: var(--muted-foreground);
  font-size: 13px;
}
.quick-links {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.code-block {
  margin-top: 16px;
  border: 1px solid var(--border);
  min-width: 0;
  background: var(--secondary-surface);
}
.code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted-foreground);
  background: var(--background);
}
.code-top .icon-button {
  width: 28px;
  height: 28px;
}
.code-block pre {
  padding: 12px 16px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  font-weight: 500;
  font-size: 11px;
  background: var(--muted);
  border-bottom-color: var(--border-strong);
  white-space: nowrap;
}
tbody th {
  font-weight: 500;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.parameter-table {
  min-width: 640px;
}
.parameter-table th:first-child {
  width: 238px;
}
.parameter-table td:nth-child(2) {
  width: 80px;
}
.parameter-table th small {
  display: block;
  font: 10px var(--font-mono);
  color: var(--muted-foreground);
  margin-top: 5px;
}
.requirement {
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 2px 5px;
  white-space: nowrap;
}
.note {
  border-left: 2px solid var(--border-strong);
  background: var(--secondary-surface);
  padding: 12px 16px;
  margin-top: 24px;
  font-size: 12px;
}
.note strong {
  font-weight: 550;
}
.note p {
  color: var(--muted-foreground);
  margin-top: 5px;
}
.priority {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--secondary-surface);
  border: 1px solid var(--border);
  font-size: 12px;
}
.priority b {
  font-weight: 400;
  color: var(--muted-foreground);
}
.priority small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted-foreground);
}
.rules-list {
  padding-left: 20px;
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.rules-list li {
  padding-left: 4px;
  margin-bottom: 12px;
}
.rules-list li::marker {
  font: 11px var(--font-mono);
}
.sort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.sort-grid > div {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sort-grid span {
  font-size: 11px;
  color: var(--muted-foreground);
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  min-height: 36px;
  max-width: 340px;
  width: 100%;
  color: var(--muted-foreground);
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.search-field input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  height: 34px;
  background: transparent;
  font-size: 12px;
}
.search-field input:focus-visible {
  outline: 0;
}
#market-count {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.market-table {
  min-width: 650px;
}
.market-table th:first-child {
  width: 23%;
}
.market-table th:nth-child(2) {
  width: 23%;
}
.market-table td {
  vertical-align: middle;
}
.market-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.market-link span {
  font-size: 13px;
}
.market-link small {
  font: 10px var(--font-mono);
  color: var(--muted-foreground);
}
.app-cell {
  font-size: 10px;
  color: var(--muted-foreground);
}
.support {
  font-size: 11px;
  color: var(--success);
}
.unsupported {
  color: var(--muted-foreground);
}
.row-link {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.caption {
  font-size: 11px !important;
  margin-top: 16px;
  color: var(--muted-foreground);
}
.empty-state {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 12px;
}
.market-details {
  margin-top: 20px;
  border-top: 1px solid var(--border-strong);
}
.market-detail {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}
.market-detail summary {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.market-detail summary::-webkit-details-marker {
  display: none;
}
.detail-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.detail-name small {
  font: 10px var(--font-mono);
  color: var(--muted-foreground);
}
.detail-status {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 10px;
  white-space: nowrap;
}
.chevron {
  font: 18px var(--font-mono);
  color: var(--muted-foreground);
  width: 16px;
  text-align: center;
}
.market-detail[open] .chevron {
  transform: rotate(45deg);
}
.detail-body {
  padding: 4px 0 24px;
}
.detail-meta {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.detail-meta time {
  font-family: var(--font-mono);
}
.muted {
  color: var(--muted-foreground);
  font-size: 12px;
}
.notes {
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 16px 0;
}
.notes li {
  margin-bottom: 8px;
}
.mode-unavailable {
  padding: 8px 0;
  font-size: 11px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-foreground);
}
.route-rule {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 16px 0 24px;
}
.route-rule h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.route-rule h4 span {
  font-weight: 400;
  color: var(--muted-foreground);
}
.route-rule > p {
  font-size: 12px;
}
.route-rule > .text-link {
  margin-top: 12px;
}
.sort-rule {
  margin-top: 16px;
}
.label {
  font-size: 11px;
  color: var(--muted-foreground);
}
.sort-rule ul {
  padding-left: 18px;
  margin: 8px 0;
  font-size: 12px;
}
.sort-rule li {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.sort-rule p {
  margin-top: 6px;
}
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.sources a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sources .icon {
  width: 12px;
  height: 12px;
}
.endpoint-list > div,
.response-fields > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.endpoint-list p,
dd {
  color: var(--muted-foreground);
}
dd {
  margin: 0;
}
.response-fields {
  margin: 16px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
  font-size: 11px;
  color: var(--muted-foreground);
}
footer .mono {
  margin-left: 6px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  background: var(--foreground);
  color: var(--background);
  font-size: 12px;
  max-width: 90vw;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--foreground);
  color: var(--background);
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
@media (min-width: 1600px) {
  main {
    padding-inline: 64px;
  }
}
@media (max-width: 1100px) {
  main {
    padding-inline: 24px;
  }
  .page-intro,
  .quick-start,
  .doc-section {
    padding-inline: 24px;
  }
}
@media (max-width: 767px) {
  .topbar {
    height: 48px;
  }
  .brand {
    padding: 0 16px;
    font-size: 16px;
  }
  .brand-mark {
    height: 15px;
  }
  .header-tools {
    gap: 8px;
    padding: 0 8px;
  }
  .machine-link {
    font-size: 10px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  main {
    padding: 48px 16px 0;
  }
  .document {
    border: 0;
  }
  .page-intro {
    padding: 28px 0 24px;
  }
  .quick-start,
  .doc-section {
    padding: 24px 0;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 17px;
  }
  .lead {
    font-size: 15px;
  }
  .intro-description {
    font-size: 12px;
  }
  .intro-meta {
    gap: 8px 14px;
    font-size: 10px;
    margin-top: 20px;
  }
  .quick-links {
    gap: 12px 16px;
  }
  .sort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .priority {
    gap: 10px;
    font-size: 11px;
    padding: 12px;
  }
  .priority small {
    flex-basis: 100%;
    margin: 0;
  }
  .detail-name {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .market-detail summary {
    min-height: 64px;
  }
  .endpoint-list > div,
  .response-fields > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .search-field {
    min-height: 44px;
  }
  .search-field input {
    height: 42px;
    font-size: 16px;
  }
  .filter-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .code-top .icon-button {
    width: 44px;
    height: 44px;
  }
  .code-top {
    min-height: 44px;
  }
  .code-block pre {
    padding: 12px;
  }
  .parameter-table {
    min-width: 620px;
  }
  footer {
    padding: 24px 0;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
