/* Блок «API» на страницах инструментов и вкладка «API инструментов» в /docs/ (tools/api_docs.py, _tool_api*.html) */
.api-sec{padding-top:8px}
.api-sec h2{margin:12px 0 10px}
.api-intro{margin:0 0 16px;font-size:15.5px;line-height:1.6;color:#55555C;max-width:820px}
.api-h3{margin:34px 0 8px;font-size:19px;font-weight:800;color:#19191C}
.api-docs>.api-h3:first-of-type{margin-top:22px}
.api-card{margin:0 0 8px;padding:20px 22px;border:1px solid #ECE8E2;border-radius:16px;background:#fff;overflow:hidden}
.api-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:14px}
.api-card .api-m{color:#fff!important}
.api-m{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:6px;background:#19191C;color:#fff;font-size:12px;font-weight:800;letter-spacing:.03em}
.api-line code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;font-weight:700;color:#F25A1C;overflow-wrap:anywhere}
.api-params{width:100%;margin:0 0 16px;border-collapse:collapse;font-size:14px;line-height:1.5}
.api-params th{padding:8px 10px;border-bottom:1px solid #ECE8E2;text-align:left;font-size:12px;font-weight:800;color:#77777F;text-transform:uppercase;letter-spacing:.04em}
.api-params td{padding:9px 10px;border-bottom:1px solid #F1EEE9;vertical-align:top;color:#2A2A2F}
.api-params tr:last-child td{border-bottom:0}
.api-params td:first-child{white-space:nowrap}
.api-params code,.api-notes code{padding:2px 6px;border-radius:5px;background:#F6F3EE;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;color:#19191C}
.api-cap{display:block;margin:14px 0 6px;font-size:12px;font-weight:800;color:#77777F;text-transform:uppercase;letter-spacing:.04em}
.api-pre{margin:0;padding:14px 16px;border-radius:12px;background:#19191C;color:#EDEDF0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55;overflow:auto;white-space:pre}
.api-notes{margin:16px 0 0;padding:0 0 0 20px;font-size:14px;line-height:1.55;color:#55555C}
.api-notes li+li{margin-top:6px}
.api-more{margin:16px 0 0;font-size:14px;color:#77777F}
.api-more a{color:#F25A1C;font-weight:700}
@media(max-width:700px){.api-card{padding:16px 14px}.api-params td:first-child{white-space:normal}.api-params thead{display:none}.api-params td:nth-child(2)::before{content:"Обязательный: ";color:#77777F}}
