.layout { max-width: 1260px; margin-inline: auto; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 96px); overflow: auto; background: #fff; border: 1px solid var(--line); padding: 12px 0; }
.side a { color: var(--muted); font-size: 13px; padding: 8px 16px; border-left: 2px solid transparent; line-height: 1.35; }
.side a:hover, .side a.on { color: var(--ink); font-weight: 600; background: #f7f7f9; border-left-color: #1d1d1f; }
.block { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 24px 26px 12px; margin: 0 0 14px; box-shadow: none; scroll-margin-top: 84px; }
.block h2 { margin: 0 0 10px; font-size: 21px; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.block p { margin: 10px 0 14px; font-size: 14px; line-height: 1.65; color: #2c2c2e; }
.endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 6px 10px; background: #f7f7f9; border: 1px solid var(--line); }
.verb { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 0; background: #1d1d1f; color: #fff; font-size: 11px; letter-spacing: .04em; font-weight: 650; }
#doc { min-width: 0; }
.endpoint code { overflow-wrap: anywhere; background: none; padding: 0; font-weight: 600; }
.endpoint code, .ctype { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ctype { margin: -4px 0 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafd; }
th { color: var(--muted); font-size: 12px; font-weight: 600; background: #f7f7f9; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
p code, td code, th code { background: #f2f2f4; padding: 2px 5px; border-radius: 0; }
.code { margin: 0 0 16px; border-radius: 0; overflow: hidden; background: #1d1d1f; color: #f5f5f7; border: 1px solid #1d1d1f; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); color: #a1a1a6; font-size: 11px; }
.code-bar button { background: none; border: 0; color: #d2d2d7; cursor: pointer; font-size: 12px; }
.code-bar button:hover { color: #fff; text-decoration: underline; }
.code pre { margin: 0; padding: 14px 16px; overflow: auto; font-size: 13px; line-height: 1.55; }
.code code { background: none; padding: 0; color: inherit; }
.loading { color: var(--muted); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .side { position: sticky; top: var(--nav-height); z-index: 5; flex-direction: row; gap: 6px; max-height: none; overflow: auto; padding: 6px; }
  .side a { white-space: nowrap; border-left: 0; padding: 6px 10px; }
  .block { padding: 20px 16px 8px; }
}
