:root {
    color-scheme: light;
    --canvas: oklch(0.965 0.012 252);
    --surface: oklch(0.995 0.004 252);
    --surface-muted: oklch(0.935 0.018 252);
    --navy: oklch(0.225 0.055 258);
    --ink: oklch(0.225 0.03 256);
    --muted: oklch(0.49 0.025 254);
    --line: oklch(0.87 0.018 252);
    --accent: oklch(0.43 0.16 257);
    --accent-soft: oklch(0.92 0.05 252);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); -webkit-font-smoothing: antialiased; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; color: white; background: var(--navy); border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 5; min-height: 68px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: color-mix(in oklch, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 750; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: oklch(0.84 0.11 243); border-radius: var(--radius-sm); font-family: "DIN Alternate", "Arial Narrow", sans-serif; font-size: 20px; font-weight: 800; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 13px; line-height: 1.2; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 650; }
.brand-label-short { display: none; }
.public-pill { padding: 5px 9px; color: oklch(0.36 0.09 156); background: oklch(0.93 0.055 156); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.doc-shell { width: min(1360px, 100%); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.doc-nav { position: sticky; top: 68px; height: calc(100vh - 68px); padding: 42px 24px; display: grid; align-content: start; gap: 4px; overflow-y: auto; border-right: 1px solid var(--line); }
.doc-nav p { margin: 0 0 14px; color: var(--muted); font: 700 10px/1 "DIN Alternate", monospace; letter-spacing: .12em; text-transform: uppercase; }
.doc-nav a { padding: 10px 12px; color: var(--muted); border-radius: var(--radius-sm); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, transform 120ms ease; }
.doc-nav a span { display: inline-block; min-width: 22px; color: var(--accent); font: 750 10px/1 "DIN Alternate", monospace; }
.doc-nav a:active { transform: scale(.96); }
@media (hover:hover) { .doc-nav a:hover { color: var(--accent); background: var(--accent-soft); } }
.doc-content { min-width: 0; padding: clamp(34px, 6vw, 76px) clamp(22px, 7vw, 92px) 100px; }
.intro { max-width: 900px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 750 11px/1 "DIN Alternate", monospace; letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { max-width: 12ch; margin: 0 0 22px; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.022em; text-wrap: balance; }
.intro > p:not(.eyebrow) { max-width: 68ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; text-wrap: pretty; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
p code, td code { padding: 2px 5px; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .9em; }
.endpoint-meta { margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(20,48,92,.1); }
.endpoint-meta div { padding: 16px; background: var(--surface); }
.endpoint-meta dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.endpoint-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.doc-section { max-width: 980px; padding: 54px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.doc-section h3 { margin: 34px 0 13px; color: var(--navy); font-size: 16px; letter-spacing: -.012em; }
.section-title { margin-bottom: 24px; display: flex; align-items: flex-start; gap: 16px; }
.section-title > span { margin-top: 5px; color: var(--accent); font: 750 11px/1 "DIN Alternate", monospace; }
.section-title h2 { margin: 0 0 7px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.022em; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.6; }
.callout { margin-bottom: 16px; padding: 18px; display: grid; gap: 9px; background: var(--accent-soft); border-radius: var(--radius-md); }
.callout code { color: var(--accent); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.callout span { color: var(--muted); font-size: 12px; line-height: 1.6; }
pre { margin: 0; padding: 18px; overflow-x: auto; color: oklch(0.9 0.02 252); background: var(--navy); border-radius: var(--radius-md); font-size: 12px; line-height: 1.75; box-shadow: 0 12px 30px rgba(20,48,92,.13); }
.endpoint-section { padding-top: 68px; }
.endpoint-heading { margin-bottom: 30px; }
.endpoint-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.endpoint-heading h2 { margin: 14px 0 8px; color: var(--navy); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.022em; text-wrap: balance; }
.endpoint-heading p { max-width: 68ch; margin: 0; color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.endpoint-index { color: var(--accent); font: 750 11px/1 "DIN Alternate", monospace; }
.method.multipart { background: oklch(0.51 0.13 185); }
.field-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(20,48,92,.12); }
.field-table { min-width: 720px; box-shadow: none; }
.field-table th:first-child, .field-table td:first-child { width: 24%; }
.field-table td { vertical-align: top; line-height: 1.65; }
.field-table td:nth-child(2), .field-table td:nth-child(3) { white-space: nowrap; }
.required, .optional { display: inline-flex; min-height: 22px; padding: 3px 7px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 750; }
.required { color: oklch(0.38 0.12 28); background: oklch(0.93 0.045 28); }
.optional { color: oklch(0.4 0.045 252); background: var(--surface-muted); }
.example-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.code-sample { min-width: 0; margin-top: 16px; overflow: hidden; background: var(--navy); border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(20,48,92,.13); }
.example-grid .code-sample { margin-top: 0; }
.code-heading { min-height: 46px; padding: 0 10px 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: oklch(0.79 0.025 252); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 700; }
.copy-button { min-width: 52px; min-height: 34px; padding: 0 10px; color: oklch(0.9 0.02 252); background: rgba(255,255,255,.08); border: 0; border-radius: var(--radius-sm); font: inherit; cursor: pointer; touch-action: manipulation; transition: background-color 160ms ease, transform 120ms ease; }
.copy-button:active { transform: scale(.96); }
.copy-button:focus-visible, .doc-nav a:focus-visible, .brand:focus-visible { outline: 3px solid oklch(0.76 0.12 243); outline-offset: 2px; }
@media (hover:hover) { .copy-button:hover { background: rgba(255,255,255,.15); } }
.code-sample pre { border-radius: 0; box-shadow: none; }
.response-sample { margin-top: 18px; }
.copy-status { position: fixed; right: 20px; bottom: 20px; z-index: 8; padding: 11px 14px; color: white; background: var(--accent); border-radius: var(--radius-sm); box-shadow: 0 10px 24px rgba(20,48,92,.2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 160ms ease, transform 160ms cubic-bezier(.16,1,.3,1); }
.copy-status.visible { opacity: 1; transform: translateY(0); }
.api-card { margin-top: 12px; padding: 20px; background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(20,48,92,.12), 0 10px 28px rgba(20,48,92,.05); }
.api-card header { display: grid; grid-template-columns: auto minmax(0, max-content) 1fr; align-items: center; gap: 10px; }
.api-card header b { justify-self: end; font-size: 13px; }
.method { display: inline-flex; min-height: 24px; padding: 3px 7px; align-items: center; justify-content: center; color: white; background: var(--accent); border-radius: var(--radius-sm); font: 750 10px/1 "DIN Alternate", monospace; }
.method.multipart { background: oklch(0.51 0.13 185); }
.api-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.api-card pre { box-shadow: none; }
.api-card.compact { display: grid; gap: 0; }
.api-table { overflow: hidden; background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(20,48,92,.12); }
.api-row { min-height: 86px; padding: 15px 17px; display: grid; grid-template-columns: auto minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.api-row:last-child { border-bottom: 0; }
.api-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
table { width: 100%; overflow: hidden; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(20,48,92,.12); font-size: 13px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: var(--surface-muted); font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
footer { padding: 28px; color: var(--muted); background: var(--surface-muted); border-top: 1px solid var(--line); font-size: 11px; text-align: center; }
@media (max-width: 780px) {
    .site-header { min-height: 60px; }
    .brand { max-width: 72%; font-size: 12px; }
    .brand-copy strong { max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-copy small { display: none; }
    .brand-label-long { display: none; }
    .brand-label-short { display: inline; white-space: nowrap; }
    .public-pill { font-size: 10px; }
    .doc-shell { grid-template-columns: 1fr; }
    .doc-nav { position: static; height: auto; padding: 12px 18px; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .doc-nav p { display: none; }
    .doc-nav a { min-width: max-content; }
    .doc-content { padding: 42px 18px 70px; }
    .endpoint-meta { grid-template-columns: 1fr; }
    .example-grid { grid-template-columns: 1fr; }
    .endpoint-heading > div { align-items: flex-start; }
    .endpoint-heading > div > code { width: calc(100% - 76px); overflow-wrap: anywhere; }
    .field-table { min-width: 650px; }
    .code-heading { min-height: 50px; }
    .copy-button { min-height: 40px; }
    .api-card header { grid-template-columns: auto minmax(0, 1fr); }
    .api-card header b { grid-column: 1 / -1; justify-self: start; }
    .api-row { grid-template-columns: auto minmax(0, 1fr); }
    .api-row p { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
