:root { --ink: #161b22; --muted: #5c6a7d; --line: #e4e9f0; --accent: #12813d; --accent-deep: #0e6b32; --soft: #e8f5ec; --page: #f4f6f8; }
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #1fa652, #0e6b32); }
.brand small { margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--accent-deep); font-size: 11.5px; }
.top-actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .18s, border-color .18s, transform .12s; }
.btn:hover { background: #f4f6f8; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 80px; }
nav.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
nav.side h4 { margin: 18px 0 6px; color: var(--muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
nav.side a { display: block; padding: 6px 10px; border-radius: 8px; color: #3d4756; font-size: 14px; text-decoration: none; }
nav.side a:hover { background: var(--page); color: var(--ink); }
nav.side a.active { background: var(--soft); color: var(--accent-deep); font-weight: 600; }
main h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.15; letter-spacing: -.025em; }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
section { padding: 8px 0 26px; border-bottom: 1px solid var(--line); animation: rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
section:last-of-type { border-bottom: 0; }
h2 { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font-size: 22px; letter-spacing: -.01em; }
h2 .num { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: linear-gradient(135deg, #1fa652, #0e6b32); color: #fff; font-size: 14px; }
h3 { margin: 22px 0 8px; font-size: 17px; }
p, li { margin: 0 0 10px; max-width: 76ch; }
ul, ol { padding-left: 22px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { position: relative; padding: 0 0 12px 40px; }
ol.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.ui { padding: 1px 7px; border-radius: 6px; background: #eef2f6; font-weight: 600; font-size: .92em; white-space: nowrap; }
code { padding: 1px 6px; border-radius: 6px; background: #eef2f6; font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { margin: 10px 0 16px; padding: 14px 16px; overflow: auto; border-radius: 12px; background: #11161d; color: #e6edf3; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre code { padding: 0; background: none; color: inherit; }
.note { display: flex; gap: 12px; margin: 14px 0; padding: 14px 16px; border: 1px solid #abefc6; border-radius: 12px; background: #ecfdf3; font-size: 15px; }
.note.warn { border-color: #ffe08a; background: #fff8e1; }
.note b { display: block; margin-bottom: 2px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 8px; padding: 20px 22px; border: 1px solid #d9ecdf; border-radius: 16px; background: linear-gradient(120deg, #fff 0%, #f1f9f3 60%, #e3f3e8 100%); }
.cta b { font-size: 17px; }
.cta p { margin: 4px 0 0; color: var(--muted); }
table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.method { display: inline-block; min-width: 54px; padding: 2px 8px; border-radius: 6px; font: 700 12px ui-monospace, Menlo, monospace; text-align: center; }
.method.get { background: #e8f5ec; color: #0e6b32; }
.method.post { background: #fff1e0; color: #a3530b; }
details { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
footer { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
	.layout { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
	nav.side { position: static; max-height: none; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
	nav.side h4 { margin-top: 10px; }
	main h1 { font-size: 27px; }
	.cta { flex-direction: column; align-items: flex-start; }
	.top-actions .btn:not(.btn-primary) { display: none; }
}
@media (prefers-reduced-motion: reduce) { section { animation: none; } .btn:active { transform: none; } }
