:root {
  --bg: #fbfaf7; --panel: #ffffff; --text: #1d2420; --muted: #5b655f; --line: #e3e0d8;
  --accent: #2f5d50; --code-bg: #f1efe9; --get: #2f6f9f; --post: #2f7d55; --put: #9a6b16; --delete: #a23b3b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614; --panel: #181d1a; --text: #e6ebe7; --muted: #9aa59e; --line: #2a312d;
    --accent: #7fc0a8; --code-bg: #1f2622; --get: #79b4e0; --post: #79c79c; --put: #e0b25f; --delete: #e58b8b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
code, pre { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
nav { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 24px 16px 40px; border-right: 1px solid var(--line); }
nav .brand { display: block; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; margin-bottom: 16px; }
nav h5 { margin: 18px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav li a { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 5px; color: var(--text); text-decoration: none; font-size: 14px; }
nav li a:hover { background: var(--code-bg); }
nav .spec { margin-top: 24px; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
main { padding: 32px 40px 80px; min-width: 0; }
header h1 { margin: 0 0 8px; font-size: 32px; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.base { color: var(--muted); font-size: 14px; }
main > section, .group { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
h2 { font-size: 24px; margin: 0 0 8px; }
.endpoint { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 20px 0; }
.endpoint h3 { margin: 0 0 4px; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.endpoint h3 .path { background: none; padding: 0; font-size: 15px; }
.endpoint h4 { margin: 20px 0 8px; font-size: 14px; }
.summary { font-weight: 600; margin: 4px 0; }
.method { font: 700 11px/1 ui-monospace, monospace; color: #fff; padding: 5px 7px; border-radius: 5px; }
.method.get, .dot.get { background: var(--get); }
.method.post, .dot.post { background: var(--post); }
.method.put, .method.patch, .dot.put, .dot.patch { background: var(--put); }
.method.delete, .dot.delete { background: var(--delete); }
@media (prefers-color-scheme: dark) { .method { color: #0d110f; } }
table.fields { width: 100%; border-collapse: collapse; font-size: 14px; }
table.fields th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 6px 8px; }
table.fields td { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
table.fields td:first-child { white-space: nowrap; }
.type { color: var(--muted); font: 12.5px/1.5 ui-monospace, monospace; white-space: nowrap; }
.required { font-size: 11px; color: var(--delete); margin-left: 4px; }
.status { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
  .layout { display: block; }
  nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  nav ul { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  main { padding: 20px 16px 60px; }
  .endpoint { padding: 16px; }
  table.fields { display: block; overflow-x: auto; }
  table.fields td:first-child { white-space: normal; }
}
