/* Same graphite tokens and Geist fonts as site.css: the docs share the public site look. */
@font-face { font-family: Geist; src: url('/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; src: url('/fonts/geist-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root{--sh-font:Geist,system-ui,-apple-system,'Segoe UI',sans-serif;--sh-ink:#0b0c0e;--sh-secondary:#52525b;--sh-muted:#6b6b74;--sh-accent:#0b0c0e;--sh-accent-strong:#26272b;--sh-accent-soft:#f2f2f3;--sh-page:#f6f6f7;--sh-surface:#ffffff;--sh-field:#f2f2f3;--sh-line:#e6e6e9;--sh-control-line:#8a8a93;--sh-positive:#15803d;--sh-warning:#a15c07;--mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
:root{color-scheme:light;font-family:var(--sh-font,system-ui,sans-serif);color:var(--sh-ink,#172a3a);background:var(--sh-surface,#fff);font-synthesis:none;font-size:14px;line-height:1.65}
*{box-sizing:border-box}
body{margin:0}
a{color:var(--sh-accent,#3156d3);text-underline-offset:3px}
a:hover{color:var(--sh-accent-strong,#2443a9)}
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--sh-accent,#3156d3);outline-offset:4px}
.docs-header{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(1160px,calc(100% - 64px));min-height:72px;margin:auto}
.docs-brand{display:inline-flex;flex-shrink:0}
.docs-brand img{display:block;width:168px;height:40px}
.docs-header nav{display:flex;align-items:center;gap:24px;font-size:14px}
.docs-link{display:inline-flex;align-items:center;min-height:44px;color:var(--sh-ink,#172a3a);font-weight:500;text-decoration:none}
.docs-link:hover{color:var(--sh-ink,#172a3a);text-decoration:underline}
.docs-link[aria-current=page]{color:var(--sh-accent,#3156d3)}
.docs-menu{position:relative;display:none}
.docs-menu summary{display:inline-flex;align-items:center;min-height:44px;padding:8px;margin:0;font-size:14px;font-weight:500;list-style:none}
.docs-menu summary::-webkit-details-marker{display:none}
.docs-menu[open] summary{color:var(--sh-accent,#3156d3)}
.docs-menu>div{position:absolute;right:0;top:calc(100% + 8px);width:220px;max-width:calc(100vw - 32px);padding:8px;z-index:10;background:var(--sh-surface,#fff);border:1px solid var(--sh-line,#dfe4ea);border-radius:12px;box-shadow:0 8px 24px #172a3a0f}
.docs-menu>div a{display:block;padding:12px;border-radius:8px;color:var(--sh-ink,#172a3a);text-decoration:none;font-weight:500}
.docs-menu>div a:hover{background:var(--sh-page,#f6f7f9)}
.docs-menu{margin:0;border:0}
.docs-header label{display:flex;align-items:center;gap:8px;color:var(--sh-muted,#667383)}
#docs-language-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
select,button{font:inherit}
select{padding:8px 12px;min-height:40px;border:1px solid var(--sh-line,#dfe4ea);border-radius:8px;background:var(--sh-surface,#fff);color:var(--sh-ink,#172a3a)}
main{width:min(1160px,calc(100% - 64px));margin:32px auto 0}
@media(scripting:none){.docs-loading{display:none}}
h1{font-size:36px;line-height:1.15;font-weight:500;letter-spacing:-.03em;margin:0 0 16px}
h2{font-size:24px;line-height:1.35;font-weight:500;letter-spacing:0;margin:0 0 12px}
h3{font-size:16px;line-height:1.5;font-weight:500;margin:0 0 8px}
p{margin:8px 0 16px;overflow-wrap:anywhere}
.intro{max-width:72ch;color:var(--sh-secondary,#536475);font-size:16px;line-height:1.65;margin-bottom:32px}
.docs-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:40px;align-items:start}
.docs-aside{position:sticky;top:24px;max-height:calc(100vh - 48px);overflow-y:auto;padding:4px}
.docs-toc{margin:0;border:0}
.docs-toc>summary{display:none}
.docs-search{position:relative;margin-bottom:12px}
.docs-search input{width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--sh-control-line,#7b8794);border-radius:8px;background:var(--sh-surface,#fff);color:var(--sh-ink,#172a3a);font:inherit;font-size:13px}
.docs-results{list-style:none;margin:8px 0 0;padding:4px;border:1px solid var(--sh-line,#dfe4ea);border-radius:8px;background:var(--sh-surface,#fff);max-height:320px;overflow-y:auto}
.docs-results li{margin:0}
.docs-results a{display:block;padding:8px;border-radius:6px;color:var(--sh-ink,#172a3a);text-decoration:none;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.docs-results a:hover{background:var(--sh-field,#f0f2f5)}
.docs-results small{display:block;margin-top:2px;color:var(--sh-secondary,#536475);font-size:12px}
.docs-results-empty{padding:8px;color:var(--sh-secondary,#536475);font-size:13px}
.docs-index{display:flex;flex-direction:column;gap:4px;padding:4px 0}
.docs-index a{display:flex;align-items:center;min-height:36px;padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--sh-secondary,#536475);font-size:13px;line-height:20px}
.docs-index a:hover,.docs-index a:focus-visible{background:var(--sh-field,#f0f2f5);color:var(--sh-ink,#172a3a)}
.docs-content{min-width:0}
.docs-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 0 32px;padding:24px;background:var(--sh-page,#f6f7f9);border-radius:16px;scroll-margin-top:24px}
.docs-step{position:relative;min-width:0;padding:0;border:0}
.docs-step:not(:last-child)::after{content:"";height:1px;background:var(--sh-line,#dfe4ea);position:absolute;top:12px;left:36px;right:0}
.docs-step h2{margin:0 0 8px;font-size:16px;line-height:1.5}
.docs-step small{display:block;color:var(--sh-secondary,#536475);font-size:13px;line-height:1.65}
.docs-step span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--sh-line,#dfe4ea);background:var(--sh-surface,#fff);border-radius:50%;color:var(--sh-accent,#3156d3);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;margin-bottom:12px}
.docs-section{padding:32px 0;margin:0;border:0;border-top:1px solid var(--sh-line,#dfe4ea);scroll-margin-top:24px;min-width:0}
.docs-section>p,.docs-section>ul{max-width:80ch;color:var(--sh-secondary,#536475)}
.docs-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--sh-field,#f0f2f5);border-radius:10px;width:fit-content;max-width:100%;margin:24px 0 16px}
.docs-tabs button,.copy-code{border:1px solid transparent;background:transparent;color:var(--sh-secondary,#536475);border-radius:8px;padding:8px 12px;min-height:36px;cursor:pointer;font-size:13px;font-weight:500;transition:background-color 140ms ease-out,color 140ms ease-out,border-color 140ms ease-out}
.docs-tabs button:hover{background:var(--sh-surface,#fff)}
.docs-tabs button[aria-selected=true]{background:var(--sh-surface,#fff);border-color:var(--sh-line,#dfe4ea);color:var(--sh-accent,#3156d3)}
.docs-code{position:relative;min-width:0;margin:16px 0}
.copy-code{position:absolute;right:12px;top:12px;background:var(--sh-surface,#fff);border-color:var(--sh-line,#dfe4ea);color:var(--sh-ink,#172a3a);z-index:1}
.copy-code:hover{background:var(--sh-field,#f0f2f5)}
pre{margin:0;padding:64px 20px 20px;background:var(--sh-page,#f6f7f9);color:var(--sh-ink,#172a3a);border:1px solid var(--sh-line,#dfe4ea);border-radius:12px;overflow:auto;max-width:100%;font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}
code{font-family:var(--mono);font-size:.93em}
pre code{font:inherit}
details{margin-top:16px;border-top:1px solid var(--sh-line,#dfe4ea);padding:0}
summary{cursor:pointer;font-weight:500;font-size:14px;min-height:44px;padding:12px 0;color:var(--sh-ink,#172a3a)}
details>p{color:var(--sh-secondary,#536475);max-width:80ch}
.docs-content>details{margin:0 0 32px}
.docs-note{border-left:2px solid var(--sh-line,#dfe4ea);padding:4px 0 4px 16px;font-size:13px;line-height:1.65;background:transparent;border-radius:0;margin:16px 0}
.docs-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.docs-table th,.docs-table td{text-align:left;border-bottom:1px solid var(--sh-line,#dfe4ea);padding:12px 16px 12px 0;vertical-align:top;overflow-wrap:anywhere}
.docs-table th{font-weight:500;color:var(--sh-ink,#172a3a)}
.docs-table thead th{color:var(--sh-muted,#667383);font-size:12px}
.docs-table td{color:var(--sh-secondary,#536475)}
.docs-table th:first-child{width:34%}
ul{padding-left:20px}
li{margin:8px 0}
footer{width:min(1160px,calc(100% - 64px));margin:32px auto 0;padding:24px 0;font-size:12px;color:var(--sh-muted,#667383);display:flex;gap:24px;border-top:1px solid var(--sh-line,#dfe4ea)}
footer a{color:inherit}
.skip-link{position:absolute;top:-80px;left:16px;padding:12px 16px;background:var(--sh-surface,#fff);z-index:5}
.skip-link:focus{top:12px}
@media(max-width:900px){
 .docs-layout{grid-template-columns:1fr;gap:24px}
 .docs-aside{position:static;max-height:none;overflow:visible;padding:0}
 .docs-toc{border-block:1px solid var(--sh-line,#dfe4ea)}
 .docs-toc>summary{display:list-item}
 .docs-index{padding:0 0 8px}
 .docs-index a{min-height:44px}
 .docs-search input{font-size:16px;min-height:44px}
}
/* Same as the site header: below 1000px the Russian header keeps Quick start and drops How it works. */
@media(max-width:1000px){.docs-link[data-docs-nav=how]{display:none}}
@media(max-width:820px){
 .docs-link{display:none}
 .docs-menu{display:block}
 .docs-header nav{gap:8px}
 .docs-brand img{width:140px;height:auto}
 select{font-size:16px;min-height:44px}
}
@media(max-width:650px){
 .docs-header{width:calc(100% - 32px);min-height:68px;gap:8px}
 .docs-brand img{width:124px}
 main{width:calc(100% - 32px);margin-top:24px}
 footer{width:calc(100% - 32px)}
 h1{font-size:28px}
 h2{font-size:22px}
 .intro{font-size:14px;margin-bottom:24px}
 .docs-steps{grid-template-columns:1fr;gap:20px;padding:20px}
 .docs-step{padding-left:40px}
 .docs-step span{position:absolute;left:0;top:0;margin:0}
 .docs-step:not(:last-child)::after{top:32px;bottom:-12px;left:12px;right:auto;width:1px;height:auto}
 .docs-section{padding:24px 0}
 .docs-tabs{width:100%}
 .docs-tabs button{flex:1;min-height:44px;padding:8px}
 .copy-code{min-height:44px;top:8px;right:8px}
 pre{padding:64px 16px 16px}
 .docs-table th,.docs-table td{padding-right:12px}
 footer{padding:24px 0;margin-top:24px}
}
.api-group{margin-top:24px}
.api-group h3{margin-bottom:4px}
.api-op{margin-top:0}
.api-op>summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-weight:400;list-style:none}
.api-op>summary::-webkit-details-marker{display:none}
.api-method{flex:none;width:52px;font:500 11px/1.6 var(--mono)}
.api-method-get{color:var(--sh-positive,#16715a)}
.api-method-post{color:var(--sh-accent,#3156d3)}
.api-method-put,.api-method-patch{color:var(--sh-warning,#875b12)}
.api-method-delete{color:var(--sh-danger,#ac3f46)}
.api-path{font-size:13px;color:var(--sh-ink,#172a3a);overflow-wrap:anywhere;min-width:0}
.api-summary{flex:1 1 280px;min-width:0;font-size:13px;color:var(--sh-secondary,#536475)}
.api-op h4{margin:16px 0 4px;font-size:13px;font-weight:500}
.api-op>p{font-size:13px;color:var(--sh-secondary,#536475)}
.api-table small{display:block;margin-top:2px;color:var(--sh-warning,#875b12);font-size:11px;font-weight:400}
.api-responses{display:flex;flex-wrap:wrap;gap:8px}
.api-op{padding-bottom:0}
.api-op[open]{padding-bottom:16px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.docs-tabs button,.copy-code{transition:none}}
