@font-face{font-family:"Inter Fallback";src:local("Arial"),local("Liberation Sans"),local("Helvetica");size-adjust:107.64%;ascent-override:90.49%;descent-override:22.56%;line-gap-override:0%}
/* ===========================================================================
   iBatyr Docs — дизайн-система (Sphinx / sphinx_rtd_theme overlay)
   Токены — из дизайн-системы ibatyr.kz (светлая тема: --ink, --chalk, --hairline,
   --red-core…). Все концепции меняют ТОЛЬКО переменные ниже и несколько правил.
   Грузится ПОСЛЕ theme.css и custom.css.
   =========================================================================== */
:root {
  /* --- токены (значения по умолчанию = концепция 1) --- */
  --ib-primary:        #c9101c;   /* ibatyr.kz light: --red-core            */
  --ib-primary-hover:  #a60c16;   /* ibatyr.kz light: --red-core-hover      */
  --ib-primary-soft:   #c9101c12; /* ibatyr.kz light: --tint-red            */
  --ib-bg:             #ffffff;
  --ib-surface:        #ffffff;
  --ib-surface-2:      #f7f8fa;   /* боковая панель / hover                 */
  --ib-text:           #0b0d12;   /* --chalk (light)                        */
  --ib-text-2:         #434a58;   /* --fog (light)                          */
  --ib-text-3:         #5e6676;   /* --smoke (light)                        */
  --ib-heading:        #0b0d12;
  --ib-border:         #0b0d121a; /* --hairline                             */
  --ib-border-strong:  #0b0d1238; /* --hairline-strong                      */
  --ib-link:           var(--ib-primary);
  --ib-link-hover:     var(--ib-primary-hover);
  --ib-success:        #0b7a45;   /* --ok (light)                           */
  --ib-success-bg:     #0b7a4514;
  --ib-warning:        #8a5a00;
  --ib-warning-bg:     #f5a62414;
  --ib-error:          #c9101c;
  --ib-error-bg:       #c9101c12;
  --ib-info:           #434a58;
  --ib-info-bg:        #0b0d1209;
  --ib-code-bg:        #f1f3f7;   /* --ink-2 (light)                        */
  --ib-code-text:      #0b0d12;
  --ib-accent:         var(--ib-primary-fg); /* акцент продукта; в тёмной теме светлее (контраст) */

  --ib-font:  "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ib-mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ib-radius:    8px;
  --ib-radius-lg: 12px;
  --ib-shadow:    0 1px 2px #0b0d120a, 0 10px 24px -14px #0b0d1229; /* --shadow-card */
  --ib-top-h:     0px;   /* на десктопе шапки нет; на телефоне — полоса 52px (см. media) */
  --ib-side-w:    280px;
  --ib-measure:   820px;
  --ib-fs:        16px;
  --ib-lh:        1.65;
  --ib-h1:        clamp(1.75rem, 3.2vw, 2.4rem);
  --ib-pad:       clamp(1.25rem, 4vw, 3rem);   /* --gutter */
  --brand-accent: var(--ib-primary);           /* переопределяет custom.css */
  --ib-primary-fg:     var(--ib-primary); /* цвет акцентного ТЕКСТА (в тёмной теме светлее, для контраста) */
  --ib-veil:           #0b0d1209; /* --veil                                 */
  --ib-veil-2:         #0b0d1212; /* --veil-2                               */
  --ib-chalk:          #0b0d12;   /* --chalk                                */
  --ib-ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:lang(kk) { --ib-mono: var(--ib-font); }

/* ---------- база ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ib-top-h) + 16px); }
html body {
  font-family: var(--ib-font);
  font-size: var(--ib-fs); line-height: var(--ib-lh);
  color: var(--ib-text); background: var(--ib-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--ib-primary); color: #fff; }
html body .wy-body-for-nav, html body .wy-grid-for-nav { background: var(--ib-bg); }
body.wy-body-for-nav { overflow-x: hidden; }

/* ---------- мобильная полоса (только кнопка меню; логотипа, ссылок на продукты и поиска в шапке больше нет) ---------- */
.ib-top { display: none; }
.ib-burger {
  width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ib-text); cursor: pointer; border-radius: var(--ib-radius);
}
.ib-burger:hover { background: var(--ib-surface-2); }
.ib-burger svg { width: 22px; height: 22px; display: block; margin: auto; }

/* ---------- заголовок страницы + переключатель языка: одна композиция ---------- */
.ib-titlebar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.ib-lang { display: flex; align-items: center; gap: 8px; flex: none; font-family: var(--ib-font); }
.ib-langs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--ib-border); border-radius: 10px; box-sizing: border-box; }
.ib-lang a {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ib-text-3) !important; text-decoration: none !important;
  padding: 5px 9px; border-radius: 6px; min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.ib-lang a:hover { color: var(--ib-text) !important; background: var(--ib-surface-2); }
.ib-lang a[aria-current="true"] { color: var(--ib-primary-fg) !important; background: var(--ib-primary-soft); }
html body .rst-content .ib-titlebar { border-bottom: 1px solid var(--ib-border); padding-bottom: .55em; margin: .2em 0 .9em; }
html body .rst-content div[role=navigation] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
html body .rst-content div[role=navigation] > ul.wy-breadcrumbs { flex: 1 1 240px; min-width: 0; margin: 0; }
html body .rst-content div[role=navigation] > .ib-lang { margin: 0; }
html body .rst-content div[role=navigation] > hr { flex: 0 0 100%; }
html body .rst-content .ib-titlebar > h1 { flex: 1 1 260px; min-width: 0; margin: 0; padding: 0; border: 0; }

/* ---------- раскладка ---------- */
html body .wy-nav-side {
  top: var(--ib-top-h); width: var(--ib-side-w); height: auto; bottom: 0; z-index: 200;
  background: var(--ib-surface-2); color: var(--ib-text-2);
  border-right: 1px solid var(--ib-border); padding-bottom: 0;
}
html body .wy-side-scroll { width: 100%; padding-bottom: 40px; background: transparent; }
html body .wy-nav-content-wrap { margin-left: var(--ib-side-w); background: var(--ib-bg); padding-top: var(--ib-top-h); }
html body .wy-nav-content {
  max-width: var(--ib-measure); margin: 0 auto; background: transparent;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--ib-pad) 3rem; height: auto; min-height: calc(100vh - var(--ib-top-h));
}
html body .wy-nav-top { display: none !important; }

/* шапка сайдбара: название продукта + ссылка «назад» + поиск (сохранены как есть) */
html body .wy-side-nav-search {
  background: transparent; padding: 18px 20px 8px; margin: 0; width: 100%; box-sizing: border-box;
  border-bottom: 0; text-align: left;
}
html body .wy-side-nav-search > a, html body .wy-side-nav-search .icon-home {
  color: var(--ib-heading) !important; font: 700 1rem var(--ib-font); letter-spacing: -.02em; margin: 0; padding: 0; display: block;
}
html body .wy-side-nav-search > a:hover { background: transparent; }
html body .wy-side-nav-search > a:before, html body .wy-side-nav-search .icon-home:before { display: none; }
html body .ibatyr-back-wrapper { margin: 4px 0 0 !important; text-align: left !important; }
html body .ibatyr-back-menu-link {
  color: var(--ib-text-3) !important; font: 500 .8rem var(--ib-font) !important; text-decoration: none !important;
}
html body .ibatyr-back-menu-link:hover { color: var(--ib-primary-fg) !important; }
html body .ibatyr-back-menu-link:before { display: none; }
html body .wy-side-nav-search [role=search] { display: block; margin: 0 0 14px; order: -1; }
html body .wy-side-nav-search input[type=text] {
  width: 100%; height: 38px; border-radius: var(--ib-radius); padding: 0 12px; margin: 0;
  background: var(--ib-surface); border: 1px solid var(--ib-border); color: var(--ib-text); font: 400 .9rem var(--ib-font); box-shadow: none;
}
html body .wy-side-nav-search input[type=text]:focus { border-color: var(--ib-primary); box-shadow: 0 0 0 3px var(--ib-primary-soft); }

/* меню */
html body .wy-menu-vertical { padding: 8px 12px 0; width: 100%; box-sizing: border-box; }
html body .wy-menu-vertical li { margin: 0; }
html body .wy-menu-vertical a {
  color: var(--ib-text-2); font: 500 .88rem/1.4 var(--ib-font); padding: 7px 10px; border-radius: 6px; border: 0;
  background: transparent; display: block;
}
html body .wy-menu-vertical li.toctree-l1 > a { font-weight: 600; color: var(--ib-text); }
html body .wy-menu-vertical li.toctree-l2 > a, html body .wy-menu-vertical li.toctree-l3 > a, html body .wy-menu-vertical li.toctree-l4 > a { font-weight: 400; color: var(--ib-text-2); }
html body .wy-menu-vertical li.toctree-l2 > a { padding-left: 28px; }
html body .wy-menu-vertical li.toctree-l3 > a { padding-left: 44px; }
html body .wy-menu-vertical li.toctree-l4 > a { padding-left: 58px; }
html body .wy-menu-vertical li.toctree-l5 > a { padding-left: 70px; }
html body .wy-menu-vertical li.current, html body .wy-menu-vertical li.current > a,
html body .wy-menu-vertical li.toctree-l2.current > a, html body .wy-menu-vertical li.toctree-l3.current > a,
html body .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a { background: transparent; border: 0; }
html body .wy-menu-vertical li.current > a { color: var(--ib-text); }
html body .wy-menu-vertical li.current ul, html body .wy-menu-vertical li ul li a { background: transparent; }
html body .wy-menu-vertical a:hover, html body .wy-menu-vertical li.current > a:hover,
html body .wy-menu-vertical li.toctree-l2 > a:hover, html body .wy-menu-vertical li.toctree-l3 > a:hover {
  background: var(--ib-border) !important; color: var(--ib-text) !important;
}
html body .wy-menu-vertical li.current > a.current, html body .wy-menu-vertical li.toctree-l1.current > a,
html body .wy-menu-vertical a.current {
  color: var(--ib-accent) !important; background: var(--ib-primary-soft) !important;
}
html body .wy-menu-vertical li.toctree-l1.current > a { font-weight: 700; }
html body .wy-menu-vertical li.toctree-l1.current > a { background: transparent !important; color: var(--ib-text) !important; }
html body .wy-menu-vertical li.on a, html body .wy-menu-vertical li.current > a.current { background: var(--ib-primary-soft) !important; color: var(--ib-accent) !important; font-weight: 600; }
html body .wy-menu-vertical li > a:not(.current):not(:hover) { background: transparent !important; }
html body .wy-menu-vertical li span.toctree-expand { color: var(--ib-text-3); }
html body .wy-menu-vertical li span.toctree-expand:before { font-size: .75em; }
html body .wy-menu-vertical li.current > a span.toctree-expand { color: var(--ib-text-3); }
html body .wy-menu-vertical p.caption { color: var(--ib-text-3); font: 600 .72rem var(--ib-font); letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px 4px; }
html body .wy-side-scroll::-webkit-scrollbar { width: 8px; }
html body .wy-side-scroll::-webkit-scrollbar-thumb { background: var(--ib-border-strong); border-radius: 8px; }

/* ---------- хлебные крошки / подвал ---------- */
html body .wy-breadcrumbs { margin: 0 0 4px; font-size: .82rem; color: var(--ib-text-3); }
html body .wy-breadcrumbs li, html body .wy-breadcrumbs li a { color: var(--ib-text-3); }
html body .wy-breadcrumbs li a:hover { color: var(--ib-primary-fg); }
html body .rst-content div[role=navigation] > hr, html body .rst-content footer hr { border: 0; border-top: 1px solid var(--ib-border); margin: 14px 0; }
html body .rst-content footer { color: var(--ib-text-3); font-size: .85rem; margin-top: 2rem; }
html body .rst-content footer p { color: var(--ib-text-3); font-size: .85rem; }
html body .rst-footer-buttons { margin-top: 2rem; }
html body .btn, html body .btn-neutral {
  font: 600 .88rem var(--ib-font); box-shadow: none; text-shadow: none; line-height: 1.2;
  background: var(--ib-surface) !important; color: var(--ib-text) !important;
  border: 1px solid var(--ib-border-strong); border-radius: var(--ib-radius); padding: 9px 16px;
}
html body .btn:hover, html body .btn-neutral:hover { border-color: var(--ib-primary); color: var(--ib-primary-fg) !important; background: var(--ib-surface) !important; }
html body .btn:active { box-shadow: none; }

/* ---------- типографика текста ---------- */
html body .rst-content { color: var(--ib-text); font-size: 1em; line-height: var(--ib-lh); }
html body .rst-content p, html body .rst-content li { font-size: 1em; line-height: var(--ib-lh); color: var(--ib-text); }
html body .rst-content p { margin: 0 0 1.05em; }
html body .rst-content h1, html body .rst-content h2, html body .rst-content h3, html body .rst-content h4,
html body .rst-content h5, html body .rst-content h6, html body .rst-content p.caption, html body .rst-content legend {
  font-family: var(--ib-font); color: var(--ib-heading); letter-spacing: -.025em; text-wrap: balance; font-weight: 700;
}
html body .rst-content h1 { font-size: var(--ib-h1); line-height: 1.12; margin: .2em 0 .7em; letter-spacing: -.03em; }
html body .rst-content h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.1em 0 .6em; padding-top: 0; }
html body .rst-content h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.8em 0 .5em; }
html body .rst-content h4 { font-size: 1.02rem; margin: 1.5em 0 .4em; }
html body .rst-content h5, html body .rst-content h6 { font-size: .95rem; margin: 1.3em 0 .4em; }
html body .rst-content a, html body .rst-content a:visited { color: var(--ib-link); text-decoration: none; }
html body .rst-content a:hover { color: var(--ib-link-hover); text-decoration: underline; text-underline-offset: 3px; }
html body .rst-content .headerlink { color: var(--ib-text-3); }
html body .rst-content ul, html body .rst-content ol { margin: 0 0 1.05em; }
html body .rst-content li > p:last-child { margin-bottom: .4em; }
html body .rst-content strong { font-weight: 650; }
html body .rst-content hr { border: 0; border-top: 1px solid var(--ib-border); }
html body .rst-content blockquote { border-left: 3px solid var(--ib-border-strong); margin: 1em 0; padding: .1em 1em; color: var(--ib-text-2); background: transparent; }
html body .rst-content dl dt { background: var(--ib-surface-2); border: 0; border-left: 3px solid var(--ib-border-strong); color: var(--ib-text); }
html body .rst-content .toctree-wrapper ul { list-style: none; margin-left: 0; padding-left: 0; }
html body .rst-content .toctree-wrapper li { margin: 0; }
html body .rst-content .toctree-wrapper li.toctree-l1 { margin: 0 0 .5em; }
html body .rst-content .toctree-wrapper li.toctree-l1 > a { font-weight: 650; }
html body .rst-content .toctree-wrapper li.toctree-l2 { margin-left: 1.1em; }

/* ---------- код ---------- */
html body .rst-content div[class*="highlight-"] { background: transparent !important; border: 0 !important; margin: 1.1em 0 !important; padding: 0; overflow: visible; max-width: 100%; }
html body .rst-content div.highlight, html body div.highlight {
  background: var(--ib-code-bg) !important; border: 1px solid var(--ib-border) !important; border-radius: var(--ib-radius) !important;
  margin: 0 !important; position: relative; max-width: 100%; overflow: hidden;
}
html body .rst-content div.highlight pre, html body div.highlight pre {
  font: 400 .84rem/1.6 var(--ib-mono) !important; color: var(--ib-code-text); background: transparent !important;
  padding: 14px 16px !important; margin: 0 !important; white-space: pre !important; overflow-x: auto; -webkit-overflow-scrolling: touch; word-wrap: normal; tab-size: 4;
}
html body .rst-content code, html body .rst-content tt, html body .rst-content code.literal {
  font: 400 .86em var(--ib-mono) !important; color: var(--ib-text) !important; background: var(--ib-code-bg) !important;
  border: 1px solid var(--ib-border) !important; border-radius: 5px; padding: .1em .38em !important; white-space: normal; overflow-wrap: anywhere;
}
html body .rst-content div.highlight code, html body .rst-content pre code { border: 0 !important; padding: 0 !important; background: transparent !important; white-space: pre !important; overflow-wrap: normal; }
html body .rst-content pre.literal-block { background: var(--ib-code-bg); border: 1px solid var(--ib-border); border-radius: var(--ib-radius); font: 400 .84rem/1.6 var(--ib-mono); padding: 14px 16px; overflow-x: auto; white-space: pre; }
html body .rst-content kbd { font: 500 .8em var(--ib-mono); border: 1px solid var(--ib-border-strong); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; background: var(--ib-surface); }
/* кнопка копирования (sphinx-copybutton) */
html body button.copybtn {
  top: 8px !important; right: 8px !important; width: 30px; height: 30px; padding: 5px !important; box-sizing: border-box;
  background: var(--ib-surface) !important; border: 1px solid var(--ib-border-strong) !important; border-radius: 6px !important;
  color: var(--ib-text-3) !important; opacity: 0; transition: opacity .15s, color .15s, border-color .15s !important;
}
html body div.highlight:hover button.copybtn, html body button.copybtn:focus-visible, html body button.copybtn.success { opacity: 1; }
html body button.copybtn:hover { color: var(--ib-primary-fg) !important; border-color: var(--ib-primary) !important; background: var(--ib-surface) !important; }
html body button.copybtn.success { color: var(--ib-success) !important; border-color: var(--ib-success) !important; }
html body button.copybtn:after { background-color: var(--ib-text) !important; color: #fff !important; border-radius: 5px !important; font: 500 .75rem var(--ib-font) !important; }
html body button.copybtn:before { border-color: transparent transparent var(--ib-text) transparent !important; }
@media (hover: none) { html body button.copybtn { opacity: 1; } }

/* ---------- таблицы ---------- */
html body .wy-table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border: 1px solid var(--ib-border); border-radius: var(--ib-radius); }
html body .wy-table-responsive table { margin: 0 !important; border: 0 !important; }
html body .rst-content table.docutils, html body .rst-content table.align-default, html body .rst-content table.list-table {
  width: 100% !important; border: 1px solid var(--ib-border) !important; border-collapse: collapse !important; font-size: .9rem; margin: 1.2em 0 !important;
}
html body .rst-content table.docutils th, html body .rst-content table.docutils td, html body .rst-content table.align-default th, html body .rst-content table.align-default td {
  border: 0 !important; border-bottom: 1px solid var(--ib-border) !important; padding: 9px 14px !important; color: var(--ib-text);
  background: transparent !important; font-size: .9rem !important; line-height: 1.5 !important; vertical-align: top !important;
}
html body .rst-content table.docutils thead th, html body .rst-content table.docutils th, html body .rst-content table.align-default th {
  background: var(--ib-surface-2) !important; color: var(--ib-heading) !important; font-weight: 650 !important; border-bottom: 1px solid var(--ib-border-strong) !important; white-space: nowrap;
}
html body .rst-content table.docutils tr:nth-child(even), html body .rst-content table.align-default tr:nth-child(even) { background: transparent !important; }
html body .rst-content table.docutils tbody tr:hover, html body .rst-content table.align-default tbody tr:hover { background: var(--ib-surface-2) !important; }
html body .rst-content table.docutils tr:last-child td { border-bottom: 0 !important; }
html body .rst-content table p { margin: 0 !important; }

/* ---------- примечания ---------- */
html body .rst-content .admonition, html body .rst-content .note, html body .rst-content .warning, html body .rst-content .tip, html body .rst-content .important,
html body .rst-content .attention, html body .rst-content .caution, html body .rst-content .danger, html body .rst-content .hint, html body .rst-content .seealso, html body .rst-content .error {
  --_c: var(--ib-info); --_bg: var(--ib-info-bg);
  background: var(--_bg) !important; border: 1px solid var(--ib-border) !important; border-left: 3px solid var(--_c) !important;
  border-radius: var(--ib-radius) !important; box-shadow: none !important; padding: 12px 16px !important; margin: 1.3em 0 !important; overflow: visible;
}
html body .rst-content .admonition.tip, html body .rst-content .admonition.hint, html body .rst-content .admonition.important, html body .rst-content .tip, html body .rst-content .hint, html body .rst-content .important { --_c: var(--ib-success); --_bg: var(--ib-success-bg); }
html body .rst-content .admonition.warning, html body .rst-content .admonition.attention, html body .rst-content .admonition.caution, html body .rst-content .warning, html body .rst-content .attention, html body .rst-content .caution { --_c: var(--ib-warning); --_bg: var(--ib-warning-bg); }
html body .rst-content .admonition.danger, html body .rst-content .admonition.error, html body .rst-content .danger, html body .rst-content .error { --_c: var(--ib-error); --_bg: var(--ib-error-bg); }
html body .rst-content .admonition > *, html body .rst-content .admonition > p, html body .rst-content .admonition > ul, html body .rst-content .admonition > ol, html body .rst-content .admonition > div { padding: 0 !important; background: transparent !important; }
html body .rst-content .admonition p:last-child { margin-bottom: 0; padding-bottom: 0 !important; }
html body .rst-content .admonition .admonition-title, html body .rst-content .admonition > .admonition-title {
  background: transparent !important; color: var(--_c) !important; font: 650 .78rem var(--ib-font) !important; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 !important; margin: 0 0 6px !important;
}
html body .rst-content .admonition .admonition-title:before { content: none !important; display: none !important; }
html body .rst-content .admonition p, html body .rst-content .admonition li { color: var(--ib-text); }

/* ---------- изображения ---------- */
html body .rst-content figure img, html body .rst-content .figure img, html body .rst-content img.ibatyr-figure-img, html body .rst-content a.reference.internal > img.align-center {
  border: 1px solid var(--ib-border); border-radius: var(--ib-radius); max-width: 100% !important; height: auto !important;
}
html body .rst-content img { max-width: 100%; height: auto; }

/* ---------- поиск (search.html) ---------- */
html body .rst-content ul.search li { border-bottom: 1px solid var(--ib-border); padding: 12px 0; }
html body .rst-content ul.search li a { font-weight: 600; }
html body .rst-content .context { color: var(--ib-text-3); }
html body .rst-content .highlighted { background: var(--ib-primary-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- прочее ---------- */
html body .rst-content .wy-breadcrumbs-aside { display: none; }
html body .ibatyr-lightbox-overlay { z-index: 10000; }
html body .wy-alert, html body .rst-content .admonition-todo { border-radius: var(--ib-radius); }
html body footer, html body .rst-content footer { margin-top: 2.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ib-primary); outline-offset: 2px; }
:target { scroll-margin-top: calc(var(--ib-top-h) + 16px); }

/* ---------- адаптив ---------- */
@media (max-width: 768px) {
  :root { --ib-top-h: 52px; --ib-fs: 16px; }
  .ib-top { display: flex; align-items: center; position: fixed; inset: 0 0 auto 0; height: var(--ib-top-h); z-index: 300; padding: 0 12px; background: var(--ib-surface); border-bottom: 1px solid var(--ib-border); }
  /* язык — в верхней полосе справа от бургера (тот же блок, что и в крошках; на телефоне вынут из потока) */
  html body .rst-content div[role=navigation] > .ib-lang { position: fixed; top: calc((var(--ib-top-h) - 42px) / 2); right: 8px; z-index: 310; margin: 0; }
  html body .rst-content div[role=navigation] > ul.wy-breadcrumbs { flex-basis: 100%; }
  .ib-top > .ib-lang { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); margin: 0; }
  .ib-top > .ib-lang a { min-width: 40px; }
  html body .rst-content div[role=navigation] .ib-lang a { min-width: 40px; }
  html body .wy-nav-side { left: -300px; width: min(300px, 86vw); box-shadow: none; transition: left .2s; }
  html body .wy-nav-side.shift { left: 0; box-shadow: 0 30px 70px -28px #0b0d1252; width: min(300px, 86vw); }
  html body .wy-nav-content-wrap { margin-left: 0 !important; }
  html body .wy-nav-content-wrap.shift { left: 0; margin-left: 0; }
  html body .wy-nav-content { padding-top: 1.25rem; }
  html body .rst-content h2 { font-size: 1.3rem; }
  html body .rst-content h3 { font-size: 1.12rem; }
  html body .rst-content div.highlight pre { font-size: .8rem !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .001ms !important; animation-duration: .001ms !important; } }
@media print { .ib-top, .wy-nav-side { display: none !important; } html body .wy-nav-content-wrap { margin: 0; padding: 0; } }



html body .wy-menu-vertical li a, html body .wy-menu-vertical li ul, html body .wy-menu-vertical li.current > a { border: 0 !important; }

html body .wy-side-nav-search, html body .wy-side-nav-search img { background-color: transparent !important; }
html body .wy-side-nav-search input[type="text"] { border-color: var(--ib-border); }

/* ---------- главная страницы продукта: существующее оглавление карточками (только вёрстка) ---------- */
html body .rst-content .toctree-wrapper.compound > ul { display: block; columns: 2 300px; column-gap: 20px; margin: 1.4em 0 0; padding: 0; }
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1 {
  break-inside: avoid; margin: 0 0 20px; padding: 16px 18px 12px; background: var(--ib-surface); border: 1px solid var(--ib-border); border-radius: var(--ib-radius-lg);
}
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1 > a { display: block; font-size: 1.02rem; font-weight: 700; color: var(--ib-heading); margin-bottom: 4px; }
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1 > a:hover { color: var(--ib-link); text-decoration: none; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2 { margin: 0; padding: 0; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2 > a { display: block; padding: 3px 0; font-size: .92rem; color: var(--ib-text-2); font-weight: 400; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2 > a:hover { color: var(--ib-link); }
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1 > ul { margin: 0; padding: 6px 0 0; list-style: none; border-top: 1px solid var(--ib-border); }
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1:has(> ul > li:nth-child(13)) > ul { columns: 2 240px; column-gap: 20px; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2 > ul { margin: 0 0 0 14px; }
@media (max-width: 640px) { html body .rst-content .toctree-wrapper.compound > ul { columns: 1; } }
html body .rst-content .toctree-wrapper ul, html body .rst-content .toctree-wrapper li, html body .rst-content .toctree-wrapper li ul li, html body .rst-content .toctree-wrapper.compound li { list-style: none !important; margin-left: 0; margin-bottom: 0; }
html body .rst-content .toctree-wrapper.compound > ul > li.toctree-l1 { margin-bottom: 20px; }
html body .rst-content .toctree-wrapper li::marker { content: none; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2, html body .rst-content .toctree-wrapper.compound li.toctree-l2 > a { margin: 0 !important; line-height: 1.45; }
html body .rst-content .toctree-wrapper.compound li.toctree-l2 > a { padding: 4px 0; }
html body .rst-content .wy-breadcrumbs a { text-decoration: none; }
html body .wy-table-responsive table.docutils, html body .wy-table-responsive table.align-default { border: 0 !important; }

/* длинные пути и строки без пробелов не должны раздвигать страницу */
html body .rst-content p, html body .rst-content li, html body .rst-content dd, html body .rst-content dt, html body .rst-content strong,
html body .rst-content em, html body .rst-content a, html body .rst-content blockquote, html body .rst-content .line-block,
html body .rst-content h1, html body .rst-content h2, html body .rst-content h3, html body .rst-content h4, html body .rst-content .admonition { overflow-wrap: anywhere; }
html body .rst-content .line-block { max-width: 100%; }
html body .wy-nav-content, html body .rst-content, html body .document { min-width: 0; max-width: 100%; }

/* иконки FontAwesome подгружаются позже текста: резервируем им место, чтобы страница не прыгала (CLS) */
html body .wy-breadcrumbs li:first-child a.icon-home { display: inline-block; width: 16px; height: 1.2em; overflow: hidden; vertical-align: middle; text-align: left; }
html body .wy-breadcrumbs li:first-child a.icon-home:before { display: inline-block; width: 16px; }
html body .wy-menu-vertical li span.toctree-expand { display: inline-block; width: 1em; overflow: hidden; }

/* ===== Сайдбар: единая сетка отступов и иконок раскрытия =====
   Причина неровности: кнопка раскрытия (button.toctree-expand, её создаёт theme.js) обтекалась float'ом с отрицательным
   отступом в em, а отступ текста зависел от уровня и от наличия вложенного списка. Теперь у каждого уровня один
   отступ текста (--ib-pl), а кнопка — контейнер 20×20 с абсолютной позицией в «канавке» слева от текста:
   иконки стоят на одной вертикали внутри уровня и не зависят ни от длины названия, ни от языка. */
html body .wy-menu-vertical li.toctree-l1 { --ib-pl: 30px; }
html body .wy-menu-vertical li.toctree-l2 { --ib-pl: 46px; }
html body .wy-menu-vertical li.toctree-l3 { --ib-pl: 62px; }
html body .wy-menu-vertical li.toctree-l4 { --ib-pl: 78px; }
html body .wy-menu-vertical li.toctree-l5 { --ib-pl: 94px; }
html body .wy-menu-vertical li > a { position: relative; padding-right: 10px; }
/* одинаковый отступ текста на каждом уровне, в том числе у .current (темa задаёт их отдельными, более специфичными правилами) */
html body .wy-menu.wy-menu-vertical li.toctree-l1[class][class] > a,
html body .wy-menu.wy-menu-vertical li.toctree-l2[class][class] > a,
html body .wy-menu.wy-menu-vertical li.toctree-l3[class][class] > a,
html body .wy-menu.wy-menu-vertical li.toctree-l4[class][class] > a,
html body .wy-menu.wy-menu-vertical li.toctree-l5[class][class] > a { padding-left: var(--ib-pl); }
html body .wy-menu-vertical li > a button.toctree-expand {
  position: absolute; left: calc(var(--ib-pl, 30px) - 26px); top: 7px; float: none; margin: 0;
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  display: flex; align-items: center; justify-content: center; line-height: 1; cursor: pointer;
  color: var(--ib-text-3);
}
html body .wy-menu-vertical li > a button.toctree-expand:before { display: block; font-size: 13px; line-height: 1; width: 13px; text-align: center; }
html body .wy-menu-vertical li > a:hover button.toctree-expand, html body .wy-menu-vertical li > a button.toctree-expand:hover { color: var(--ib-text); background: var(--ib-border); }
html body .wy-menu-vertical li > a button.toctree-expand:focus-visible { outline: 2px solid var(--ib-primary); outline-offset: 0; }
html body .wy-menu-vertical li.current > a button.toctree-expand, html body .wy-menu-vertical li.on a button.toctree-expand { color: var(--ib-text-2); }
/* заголовок сайдбара — на одной вертикали с иконками первого уровня */
html body .wy-side-nav-search { padding-left: 18px; padding-right: 18px; }
html body .wy-menu-vertical { padding-left: 12px; padding-right: 12px; }

/* ===== Кнопка «Вернуться в главное» ===== */
html body .wy-side-nav-search .ibatyr-back-wrapper { margin: 0 0 12px !important; text-align: left !important; }
html body .wy-side-nav-search .ibatyr-back-wrapper .ibatyr-back-menu-link {
  display: inline-flex !important; align-items: center; gap: 7px; margin: 0;
  padding: 7px 15px 7px 11px; border: 1.5px solid var(--ib-primary); border-radius: 999px; background: transparent;
  color: var(--ib-primary-fg) !important; font: 600 .84rem/1.2 var(--ib-font) !important; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
html body .wy-side-nav-search .ibatyr-back-wrapper .ibatyr-back-menu-link:before {
  content: ""; display: inline-block !important; width: 15px; height: 15px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .wy-side-nav-search .ibatyr-back-wrapper .ibatyr-back-menu-link:hover { background: var(--ib-primary); border-color: var(--ib-primary); color: #fff !important; }
html body .wy-side-nav-search .ibatyr-back-wrapper .ibatyr-back-menu-link:active { background: var(--ib-primary-hover); border-color: var(--ib-primary-hover); color: #fff !important; transform: scale(.97); }
html body .wy-side-nav-search .ibatyr-back-wrapper .ibatyr-back-menu-link:focus-visible { outline: 3px solid var(--ib-primary-soft); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ib-primary); }
html body .wy-side-nav-search > a.icon-home { margin-top: 2px; }
html body .wy-side-nav-search .ibatyr-back-wrapper { order: -2; }

/* Концепция 1 — Minimal Corporate: белый фон, тёмные заголовки, тонкие разделители, акцент iBatyr */
:root { --ib-measure: 860px; --ib-side-w: 288px; }
html body .rst-content h1 { padding-bottom: .55em; border-bottom: 1px solid var(--ib-border); margin-bottom: .9em; }
html body .rst-content h2 { padding-top: .1em; }
html body .wy-nav-side { background: var(--ib-surface); }
html body .wy-menu-vertical li.toctree-l1.current > a { box-shadow: inset 2px 0 0 var(--ib-primary); border-radius: 0 6px 6px 0; }
/* вариант «синий» — по запросу в задании (в реальной палитре ibatyr.kz синего нет) */
html[data-accent="blue"] {
  --ib-primary: #1d4ed8; --ib-primary-hover: #1e40af; --ib-primary-soft: #1d4ed812;
  --ib-heading: #0b1f4d; --ib-link: #1d4ed8; --ib-link-hover: #1e40af;
}

/* ---------- контакты: кнопки мессенджеров ---------- */
html body .rst-content p.ib-msgr { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html body .rst-content a.ib-msgr-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; box-sizing: border-box;
  border: 1px solid var(--ib-border); border-radius: 999px; background: var(--ib-surface);
  color: var(--ib-text); font: 600 .9rem var(--ib-font); text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
html body .rst-content a.ib-msgr-btn:hover { background: var(--ib-surface-2); border-color: var(--ib-border-strong); color: var(--ib-text); text-decoration: none; }
html body .rst-content a.ib-msgr-btn:focus-visible { outline: 2px solid var(--ib-primary); outline-offset: 2px; }
html body .rst-content a.ib-msgr-btn:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
/* контакты на телефоне: подпись над значением, ничего не обрезается */
@media (max-width: 640px) {
  html body .rst-content table.docutils:has(.ib-msgr) colgroup { display: none; }
  html body .rst-content table.docutils:has(.ib-msgr), html body .rst-content table.docutils:has(.ib-msgr) tbody { display: block; width: 100%; }
  html body .rst-content table.docutils:has(.ib-msgr) tr { display: block; padding: 10px 0 12px; border-bottom: 1px solid var(--ib-border); }
  html body .rst-content table.docutils:has(.ib-msgr) tr:last-child { border-bottom: 0; }
  html body .rst-content table.docutils:has(.ib-msgr) td { display: block; width: auto !important; border: 0 !important; padding: 0 14px !important; white-space: normal; overflow-wrap: anywhere; }
  html body .rst-content table.docutils:has(.ib-msgr) td p { margin: 0 !important; }
  html body .rst-content table.docutils:has(.ib-msgr) td:first-child { padding-bottom: 4px !important; }
  html body .rst-content table.docutils:has(.ib-msgr) td:first-child p, html body .rst-content table.docutils:has(.ib-msgr) td:first-child strong { color: var(--ib-text-3); font-weight: 600; font-size: .8rem; }
}
/* иконки мессенджеров — как на ibatyr.kz */
html body .rst-content .ib-msgr-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
html body .rst-content .ib-msgr-ico svg { display: block; }
html body .rst-content .ib-msgr-ico-tg { background: #fff; color: #229ed9; }
html body .rst-content .ib-msgr-ico-tg svg { width: 26px; height: 26px; }
html body .rst-content .ib-msgr-ico-wa { background: #25d366; color: #fff; }
html body .rst-content .ib-msgr-ico-wa svg { width: 18px; height: 18px; }

/* ===========================================================================
   Переключатель темы — копия компонента ibatyr.kz (размер 40px, круг, рамка --hairline, фон --veil, значок 20px,
   солнце/луна на маске, лучи; те же кривая cubic-bezier(.16,1,.3,1) и длительности 650/420/300 мс).
   =========================================================================== */
.ib-theme { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0; box-sizing: border-box;
  border: 1px solid var(--ib-border); border-radius: 50%; background: var(--ib-veil); color: var(--ib-chalk); overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .3s, background-color .3s, border-color .3s; }
.ib-theme:hover { border-color: var(--ib-border-strong); background: var(--ib-veil-2); }
.ib-theme:focus-visible { outline: 2px solid var(--ib-primary); outline-offset: 2px; }
.ib-theme__tint { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: transparent; transition: background-color .3s; }
.ib-theme:hover .ib-theme__tint { background: var(--ib-primary-soft); }
.ib-theme svg { position: relative; display: block; width: 20px; height: 20px; overflow: visible; transition: transform 650ms var(--ib-ease-out-expo); transform: rotate(-55deg); }
.ib-theme__m { transform-box: view-box; transform-origin: center; transition: transform 650ms var(--ib-ease-out-expo); transform: translate(6px, -6px); }
.ib-theme__c { r: 9px; transition: r 650ms var(--ib-ease-out-expo); }
.ib-theme__r { transform-box: view-box; transform-origin: center; transition: opacity 420ms var(--ib-ease-out-expo), transform 650ms var(--ib-ease-out-expo); opacity: 0; transform: rotate(70deg) scale(.45); }
:root[data-theme="dark"] .ib-theme svg { transform: rotate(0deg); }
:root[data-theme="dark"] .ib-theme__m { transform: translate(16px, -16px); }
:root[data-theme="dark"] .ib-theme__c { r: 5px; }
:root[data-theme="dark"] .ib-theme__r { opacity: 1; transform: rotate(0deg) scale(1); }

/* плавная смена темы (как на ibatyr.kz): круговая волна через View Transitions, запасной вариант — theme-fade */
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation: none; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
.theme-fade, .theme-fade *, .theme-fade :before, .theme-fade :after { transition: background-color .45s var(--ib-ease-out-expo), border-color .45s var(--ib-ease-out-expo), color .45s var(--ib-ease-out-expo), fill .45s var(--ib-ease-out-expo), stroke .45s var(--ib-ease-out-expo), box-shadow .45s var(--ib-ease-out-expo) !important; }
@media (prefers-reduced-motion: reduce) { .ib-theme svg, .ib-theme__m, .ib-theme__c, .ib-theme__r { transition: none !important; } }

/* ===========================================================================
   Тёмная тема — токены ibatyr.kz (:root, тёмные значения): --ink #06070a, --ink-2 #0b0d12, --ink-3 #10131a, --ink-4 #171b24,
   --chalk #fff, --fog #c7ccd6, --smoke #8b93a3, --hairline #ffffff17 / #ffffff2e, --veil #ffffff09 / #ffffff14,
   --red-core #e11d2b, --red-core-hover #c9101c, --red #ff4b4b, --red-bright #ff6b6b, --tint-red #ff4b4b17, --ok #3ddc97.
   =========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ib-primary:        #e11d2b;   /* --red-core                             */
  --ib-primary-hover:  #c9101c;   /* --red-core-hover                       */
  --ib-primary-soft:   #ff4b4b17; /* --tint-red                             */
  --ib-bg:             #06070a;   /* --ink                                  */
  --ib-surface:        #0b0d12;   /* --ink-2                                */
  --ib-surface-2:      #10131a;   /* --ink-3                                */
  --ib-text:           #c7ccd6;   /* --fog                                  */
  --ib-text-2:         #c7ccd6;   /* --fog                                  */
  --ib-text-3:         #8b93a3;   /* --smoke                                */
  --ib-heading:        #ffffff;   /* --chalk                                */
  --ib-chalk:          #ffffff;
  --ib-border:         #ffffff17; /* --hairline                             */
  --ib-border-strong:  #ffffff2e; /* --hairline-strong                      */
  --ib-primary-fg:     #ff7a7a;   /* --red-glow: контраст ≥ 4.5 на всех фонах */
  --ib-link:           #ff7a7a;   /* --red-glow                             */
  --ib-link-hover:     #ff9a9a;
  --ib-success:        #3ddc97;   /* --ok                                   */
  --ib-success-bg:     #3ddc971a; /* --tint-ok                              */
  --ib-warning:        #f5b84b;
  --ib-warning-bg:     #f5a62414;
  --ib-error:          #ff6b6b;
  --ib-error-bg:       #ff4b4b17;
  --ib-info:           #c7ccd6;
  --ib-info-bg:        #ffffff09;
  --ib-code-bg:        #10131a;   /* --ink-3                                */
  --ib-code-text:      #e6e9ef;
  --ib-veil:           #ffffff09; /* --veil                                 */
  --ib-veil-2:         #ffffff14; /* --veil-2                               */
  --ib-shadow:         0 0 0 0 #0000; /* --shadow-card (тёмная тема)        */
  --brand-accent:      var(--ib-primary);
}

/* ---------- тёмная тема: компоненты, у которых цвета заданы вне токенов (theme.css / pygments.css / tabs.css / custom.css) ---------- */
:root[data-theme="dark"] body, :root[data-theme="dark"] body .wy-nav-content-wrap { background: var(--ib-bg); color: var(--ib-text); }
:root[data-theme="dark"] body .rst-content strong, :root[data-theme="dark"] body .rst-content b { color: var(--ib-heading); }
:root[data-theme="dark"] body .rst-content .toc-backref, :root[data-theme="dark"] body .rst-content a.toc-backref { color: var(--ib-text) !important; }
:root[data-theme="dark"] body .rst-content p.ibatyr-caption, :root[data-theme="dark"] body .rst-content p.ibatyr-table-caption { color: var(--ib-text-2) !important; }
/* вкладки (sphinx-tabs) */
:root[data-theme="dark"] body .sphinx-tabs-tab { background: var(--ib-surface-2) !important; color: var(--ib-text-2) !important; border-color: var(--ib-border) !important; }
:root[data-theme="dark"] body .sphinx-tabs-tab[aria-selected="true"] { background: var(--ib-surface) !important; color: var(--ib-heading) !important; border-color: var(--ib-border-strong) !important; border-bottom-color: var(--ib-surface) !important; }
:root[data-theme="dark"] body .sphinx-tabs-tab:hover { color: var(--ib-heading) !important; }
:root[data-theme="dark"] body .sphinx-tabs-panel { background: var(--ib-surface) !important; border-color: var(--ib-border-strong) !important; color: var(--ib-text) !important; }
:root[data-theme="dark"] body .sphinx-tabs-panel p, :root[data-theme="dark"] body .sphinx-tabs-panel li { color: var(--ib-text); }
:root[data-theme="dark"] body .sphinx-tabs { background: transparent; }
/* подсветка синтаксиса (pygments): палитра из токенов ibatyr.kz — --smoke, --red-bright, --ok, янтарный, --fog */
:root[data-theme="dark"] .highlight { color: #e6e9ef; }
:root[data-theme="dark"] .highlight .c, :root[data-theme="dark"] .highlight .c1, :root[data-theme="dark"] .highlight .cm, :root[data-theme="dark"] .highlight .cp, :root[data-theme="dark"] .highlight .cs, :root[data-theme="dark"] .highlight .ch, :root[data-theme="dark"] .highlight .cpf { color: #8b93a3; font-style: italic; }
:root[data-theme="dark"] .highlight .k, :root[data-theme="dark"] .highlight .kn, :root[data-theme="dark"] .highlight .kd, :root[data-theme="dark"] .highlight .kc, :root[data-theme="dark"] .highlight .kp, :root[data-theme="dark"] .highlight .kr, :root[data-theme="dark"] .highlight .kt, :root[data-theme="dark"] .highlight .ow { color: #ff6b6b; font-weight: 600; }
:root[data-theme="dark"] .highlight .s, :root[data-theme="dark"] .highlight .s1, :root[data-theme="dark"] .highlight .s2, :root[data-theme="dark"] .highlight .sb, :root[data-theme="dark"] .highlight .sc, :root[data-theme="dark"] .highlight .sd, :root[data-theme="dark"] .highlight .se, :root[data-theme="dark"] .highlight .sh, :root[data-theme="dark"] .highlight .si, :root[data-theme="dark"] .highlight .sx, :root[data-theme="dark"] .highlight .sr, :root[data-theme="dark"] .highlight .ss, :root[data-theme="dark"] .highlight .dl { color: #3ddc97; }
:root[data-theme="dark"] .highlight .m, :root[data-theme="dark"] .highlight .mi, :root[data-theme="dark"] .highlight .mf, :root[data-theme="dark"] .highlight .mh, :root[data-theme="dark"] .highlight .mo, :root[data-theme="dark"] .highlight .mb, :root[data-theme="dark"] .highlight .il { color: #f5b84b; }
:root[data-theme="dark"] .highlight .nb, :root[data-theme="dark"] .highlight .bp, :root[data-theme="dark"] .highlight .nf, :root[data-theme="dark"] .highlight .nc, :root[data-theme="dark"] .highlight .nn, :root[data-theme="dark"] .highlight .fm { color: #8ec8ff; }
:root[data-theme="dark"] .highlight .nt, :root[data-theme="dark"] .highlight .nd, :root[data-theme="dark"] .highlight .ne { color: #ff6b6b; }
:root[data-theme="dark"] .highlight .na, :root[data-theme="dark"] .highlight .nv, :root[data-theme="dark"] .highlight .vi, :root[data-theme="dark"] .highlight .vc, :root[data-theme="dark"] .highlight .vg, :root[data-theme="dark"] .highlight .nl, :root[data-theme="dark"] .highlight .no { color: #f5b84b; }
:root[data-theme="dark"] .highlight .o, :root[data-theme="dark"] .highlight .p, :root[data-theme="dark"] .highlight .n, :root[data-theme="dark"] .highlight .w { color: #c7ccd6; }
:root[data-theme="dark"] .highlight .gp, :root[data-theme="dark"] .highlight .go, :root[data-theme="dark"] .highlight .gt { color: #8b93a3; }
:root[data-theme="dark"] .highlight .gd { color: #ff6b6b; background: transparent; } :root[data-theme="dark"] .highlight .gi { color: #3ddc97; background: transparent; }
:root[data-theme="dark"] .highlight .gh, :root[data-theme="dark"] .highlight .gu, :root[data-theme="dark"] .highlight .gs { color: #ffffff; font-weight: 600; }
:root[data-theme="dark"] .highlight .err { color: #ff6b6b; background: transparent; border: 0; }
/* тёмная тема: результаты поиска и раскрывающиеся блоки */
:root[data-theme="dark"] body .rst-content ul.search li, :root[data-theme="dark"] body .rst-content .search li { border-color: var(--ib-border) !important; }
:root[data-theme="dark"] body .rst-content .highlighted, :root[data-theme="dark"] body .rst-content .search .context .highlighted { background: #f5a62440 !important; color: #ffffff !important; box-shadow: none !important; border: 0 !important; outline: 0 !important; }
:root[data-theme="dark"] body .rst-content .closeable, :root[data-theme="dark"] body .rst-content .closeable * { border-color: var(--ib-border-strong); }
