:root {
  --bg: #fcfcfb; --ink: #0a0b0d; --muted: #7c7a74; --line: #e8e6e1;
  --accent: #b0740c; --paper: #fffaf0; --ok: #0e9f6e; --bad: #e11d48;
  --link: #2545e6; --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.skip { position: absolute; left: -999px; top: .5rem; background: #0a0b0d; color: #fff; padding: .4rem .7rem; z-index: 9; }
.skip:focus { left: .5rem; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.rail { border-right: 1px solid var(--line); padding: 1.2rem; background: #fff; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { font-weight: 800; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.banner { font-size: .8rem; color: var(--accent); background: var(--paper); padding: .4rem .6rem; border-radius: 8px; }
.search-wrap { display: block; margin: 1rem 0 .4rem; font-size: .8rem; color: var(--muted); }
.search-wrap input { width: 100%; margin-top: .25rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-wrap input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.rail nav a { display: flex; gap: .4rem; align-items: center; padding: .28rem 0; color: var(--ink); text-decoration: none; font-size: .88rem; }
.rail nav a.is-on { color: var(--accent); font-weight: 600; }
.rail nav a:focus-visible, .main a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.nav-label { margin: 1rem 0 .3rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-toggle { display: none; width: 100%; margin: .6rem 0; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; }
.main { padding: 2rem 2.2rem 4rem; max-width: 860px; min-width: 0; }
h1 { font-size: 1.8rem; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
h2 .link { margin-left: .35rem; font-size: .8rem; color: var(--muted); text-decoration: none; }
.lede { color: var(--muted); }
.ep-path { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; font-family: var(--mono); font-size: .88rem; }
code, pre { font-family: var(--mono); }
pre { background: #0a0b0d; color: #f6f5f2; padding: 1rem; border-radius: 10px; overflow-x: auto; font-size: .82rem; max-width: 100%; white-space: pre; }
.code-wrap { position: relative; }
.code-wrap .copy { position: absolute; top: .5rem; right: .5rem; font-size: .72rem; padding: .2rem .45rem; border-radius: 6px; border: 0; background: #2a2b2e; color: #fff; cursor: pointer; }
.tabs { display: flex; gap: .4rem; margin: 1rem 0 .4rem; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .3rem .7rem; cursor: pointer; }
.tabs button.is-on { background: var(--paper); border-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }
.badge { display: inline-block; min-width: 3.2rem; text-align: center; font-size: .7rem; font-weight: 700; padding: .12rem .35rem; border-radius: 6px; color: #fff; }
.badge-get { background: #0e9f6e; } .badge-post { background: #2545e6; }
.badge-patch { background: #b0740c; } .badge-put { background: #6d2e7a; } .badge-delete { background: #e11d48; }
.note { background: var(--paper); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 10px; }
.warn { background: #ffe9e9; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .45rem .3rem; text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.dl { font-size: .82rem; margin-top: 1.2rem; }
.dl a { color: var(--link); }
.results { margin: 0 0 .8rem; padding: .4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); max-height: 16rem; overflow: auto; }
.results a { display: block; padding: .28rem .2rem; color: var(--ink); text-decoration: none; font-size: .82rem; }
.results a:hover, .results a.is-hi { background: #fff; color: var(--link); }
.results .hit-m { font-size: .68rem; margin-right: .3rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.cta { display: inline-block; padding: .55rem .9rem; border-radius: 8px; text-decoration: none; font-weight: 600; background: #f0a31e; color: #0a0b0d; }
.cta.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { position: relative; padding: .7rem 0 .7rem 2.4rem; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #0a0b0d; color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.timeline { display: grid; gap: .7rem; }
.timeline article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; }
.k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
details.fold { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .85rem; margin: .8rem 0; background: #fff; }
details.fold summary { cursor: pointer; font-weight: 650; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { height: auto; position: relative; }
  .rail nav, .rail .dl { display: none; }
  .rail.is-open nav, .rail.is-open .dl { display: block; }
  .nav-toggle { display: block; }
  pre { overflow-x: auto; }
}
