:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --text: #14161f;
  --text-muted: #5b5f70;
  --border: #e6e8f0;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #14b8a6;
  --code-bg: #10121b;
  --code-text: #e6e8f0;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-alt: #151824;
    --text: #eef0f6;
    --text-muted: #a2a6ba;
    --border: #262a3a;
    --card: #171a26;
    --code-bg: #05060a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); }
.container { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }
header.topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; }
.back-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.doc-hero { padding: 48px 0 24px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.doc-hero p.lead { color: var(--text-muted); font-size: 16px; max-width: 620px; }
h2 { font-size: 22px; margin: 44px 0 14px; padding-top: 8px; border-top: 1px solid var(--border); }
h2:first-of-type { border-top: none; }
h3 { font-size: 16px; margin: 24px 0 8px; }
p { color: var(--text); }
code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
pre {
  background: var(--code-bg); color: var(--code-text); padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13px; line-height: 1.55;
}
pre code { background: none; padding: 0; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.method {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; margin-right: 8px;
}
.method.post { background: #16a34a; }
.method.get { background: #2563eb; }
.method.delete { background: #dc2626; }
.method.patch { background: #d97706; }
.endpoint-title { display: flex; align-items: center; gap: 4px; font-family: ui-monospace, monospace; font-size: 14px; margin: 28px 0 6px; flex-wrap: wrap; }
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--bg-alt);
  border-radius: 0 10px 10px 0; padding: 14px 16px; font-size: 14px; margin: 20px 0;
}
.callout.warn { border-left-color: #d97706; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
footer.docfooter { text-align: center; color: var(--text-muted); font-size: 13px; padding: 40px 0 0; }
