
:root { color-scheme: dark; }
html, body { background: #0B0B0C; }
.swagger-ui, .swagger-ui .opblock-tag, .swagger-ui .info .title, .swagger-ui .info p, .swagger-ui .info li, .swagger-ui .info table,
.swagger-ui .opblock .opblock-summary-description, .swagger-ui .btn, .swagger-ui label, .swagger-ui select, .swagger-ui input, .swagger-ui textarea,
.swagger-ui .parameter__name, .swagger-ui .parameter__type, .swagger-ui .response-col_status, .swagger-ui .response-col_description,
.swagger-ui .renderedMarkdown p, .swagger-ui .markdown p, .swagger-ui .tab li, .swagger-ui table thead tr th, .swagger-ui table thead tr td,
.swagger-ui .model-title, .swagger-ui .model, .swagger-ui section.models h4, .swagger-ui .scheme-container .schemes-title,
.swagger-ui .servers-title, .swagger-ui .opblock-section-header h4, .swagger-ui .opblock-description-wrapper p, .swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5, .swagger-ui .dialog-ux .modal-ux-header h3, .swagger-ui .dialog-ux .modal-ux-content h4,
.swagger-ui .dialog-ux .modal-ux-content p, .swagger-ui .auth-container input, .swagger-ui .response-control-media-type__accept-message,
.swagger-ui .opblock-summary-path, .swagger-ui .opblock-summary-path__deprecated, .swagger-ui .parameter__in, .swagger-ui .prop-type,
.swagger-ui .prop-format, .swagger-ui .property.primitive, .swagger-ui .info .base-url, .swagger-ui .loading-container .loading::after,
.swagger-ui .errors-wrapper .errors h4, .swagger-ui .errors-wrapper .errors small, .swagger-ui .no-margin, .swagger-ui .opblock-title_normal {
  color: #F5F5F0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.swagger-ui .wrapper { max-width: 1120px; }
.swagger-ui .info { margin: 36px 0 24px; }
.swagger-ui .info .title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.swagger-ui .info .title small { background: #222; border-radius: 999px; padding: 4px 10px; top: -6px; }
.swagger-ui .info .title small pre { color: #F5F5F0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; }
.swagger-ui .info .title small.version-stamp { background: #D7FF00; }
.swagger-ui .info .title small.version-stamp pre { color: #0B0B0C; }
.swagger-ui .info a, .swagger-ui .info a:visited, .swagger-ui .renderedMarkdown a, .swagger-ui .markdown a { color: #D7FF00; }
.swagger-ui .info .description p, .swagger-ui .info p, .swagger-ui .info li { color: #9a9a94; font-size: 15px; line-height: 1.55; }
.swagger-ui .info .description p strong { color: #F5F5F0; }
.swagger-ui .info hgroup.main a, .swagger-ui .info .base-url { color: #6b6b66; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code, .swagger-ui .info code { color: #D7FF00; background: #191919; border: 1px solid #262626; border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* верхняя полоса: логотип (ссылка на сайт) + наши ссылки, без строки Explore */
.swagger-ui .topbar { background: #0B0B0C; border-bottom: 1px solid #262626; padding: 12px 0; }
.swagger-ui .topbar .download-url-wrapper, .swagger-ui .topbar .dark-mode-toggle { display: none; }
.swagger-ui .topbar .topbar-wrapper { display: flex; align-items: center; gap: 18px; }
.swagger-ui .topbar a.link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.swagger-ui .topbar a.link img { height: 34px; width: auto; }
/* у Swagger есть .swagger-ui .topbar a { flex:1; font-size:1.5em } — перебиваем той же специфичностью */
.swagger-ui .topbar .hp-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.swagger-ui .topbar .hp-nav a { display: inline-flex; flex: 0 0 auto; color: #9a9a94; font: 600 13px/1 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; text-decoration: none; padding: 9px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.swagger-ui .topbar .hp-nav a:hover { color: #F5F5F0; background: #191919; }
.swagger-ui .topbar .hp-nav a.hp-cta { color: #0B0B0C; background: #D7FF00; }
.swagger-ui .topbar .hp-nav a.hp-cta:hover { background: #e4ff66; color: #0B0B0C; }
@media (max-width: 640px) { .swagger-ui .topbar .topbar-wrapper { flex-wrap: wrap; } .swagger-ui .topbar .hp-nav { margin-inline-start: 0; justify-content: flex-start; } }

/* серверы + Authorize */
.swagger-ui .scheme-container { background: #191919; border-top: 1px solid #262626; border-bottom: 1px solid #262626; box-shadow: none; padding: 20px 0; }
.swagger-ui .servers > label select, .swagger-ui select { background: #0B0B0C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a9a94' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid #383838; border-radius: 10px; color: #F5F5F0; box-shadow: none; }
.swagger-ui .btn { border: 1px solid #383838; border-radius: 999px; box-shadow: none; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.swagger-ui .btn:hover { border-color: #5a5a5a; }
.swagger-ui .btn.authorize { color: #D7FF00; border-color: #D7FF00; background: transparent; }
.swagger-ui .btn.authorize svg { fill: #D7FF00; }
.swagger-ui .btn.execute { background: #D7FF00; border-color: #D7FF00; color: #0B0B0C; }
.swagger-ui .btn.cancel { color: #F5F5F0; border-color: #383838; }
.swagger-ui .btn.try-out__btn { color: #F5F5F0; }
.swagger-ui .btn.try-out__btn.cancel { color: #ff7b7b; border-color: #ff7b7b; }

/* разделы и операции */
.swagger-ui .opblock-tag { border-bottom: 1px solid #262626; padding: 12px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.swagger-ui .opblock-tag small { color: #9a9a94; font-size: 14px; font-weight: 400; }
.swagger-ui .opblock-tag:hover { background: transparent; }
.swagger-ui .opblock-tag svg, .swagger-ui .expand-operation svg, .swagger-ui .opblock-summary-control svg, .swagger-ui .arrow { fill: #9a9a94; }
.swagger-ui .opblock { background: #191919; border: 1px solid #262626; border-radius: 14px; box-shadow: none; margin: 0 0 10px; }
.swagger-ui .opblock .opblock-summary { border: 0; padding: 8px 12px; }
.swagger-ui .opblock .opblock-summary-method { border-radius: 8px; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-weight: 700; min-width: 72px; }
.swagger-ui .opblock .opblock-summary-path { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
.swagger-ui .opblock .opblock-summary-description { color: #9a9a94; }
.swagger-ui .opblock.opblock-get { background: rgba(97, 175, 254, .06); border-color: rgba(97, 175, 254, .28); }
.swagger-ui .opblock.opblock-post { background: rgba(73, 204, 144, .06); border-color: rgba(73, 204, 144, .28); }
.swagger-ui .opblock.opblock-delete { background: rgba(249, 62, 62, .06); border-color: rgba(249, 62, 62, .28); }
.swagger-ui .opblock.opblock-put, .swagger-ui .opblock.opblock-patch { background: rgba(252, 161, 48, .06); border-color: rgba(252, 161, 48, .28); }
.swagger-ui .opblock .opblock-section-header { background: #222; box-shadow: none; border-radius: 0; }
.swagger-ui .opblock-body pre.microlight, .swagger-ui .highlight-code > .microlight { background: #0B0B0C !important; border: 1px solid #262626; border-radius: 10px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.swagger-ui .opblock-body pre.microlight span { color: inherit; }
.swagger-ui .copy-to-clipboard { background: #383838; border-radius: 6px; }
.swagger-ui .copy-to-clipboard button { background-color: #383838; }
.swagger-ui table tbody tr td, .swagger-ui table thead tr th, .swagger-ui table thead tr td { border-bottom: 1px solid #262626; color: #F5F5F0; }
.swagger-ui .parameter__name.required::after, .swagger-ui .parameter__name.required span { color: #ff7b7b; }
.swagger-ui .parameter__in, .swagger-ui .parameter__type, .swagger-ui .prop-format, .swagger-ui .parameter__extension { color: #9a9a94; }
.swagger-ui input[type=text], .swagger-ui input[type=password], .swagger-ui input[type=search], .swagger-ui input[type=email], .swagger-ui input[type=file], .swagger-ui textarea {
  background: #0B0B0C; border: 1px solid #383838; border-radius: 10px; color: #F5F5F0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.swagger-ui input[type=text]:focus, .swagger-ui textarea:focus { border-color: #D7FF00; outline: none; }
.swagger-ui .tab li { color: #9a9a94; }
.swagger-ui .tab li.active, .swagger-ui .tab li button.tablinks { color: #F5F5F0; }
.swagger-ui .response-col_links, .swagger-ui .response-col_description__inner p { color: #9a9a94; }
.swagger-ui .responses-inner { background: transparent; }
.swagger-ui .response .response-col_status { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.swagger-ui .model-box, .swagger-ui .model-container, .swagger-ui section.models .model-container { background: #222; border-radius: 10px; }
.swagger-ui section.models { border: 1px solid #262626; border-radius: 14px; }
.swagger-ui section.models.is-open h4 { border-bottom: 1px solid #262626; }
.swagger-ui .model-toggle::after { filter: invert(1); }
.swagger-ui .model .property, .swagger-ui .model .property.primitive { color: #9a9a94; }
.swagger-ui .model-title { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.swagger-ui .markdown pre, .swagger-ui .renderedMarkdown pre { background: #0B0B0C; border: 1px solid #262626; border-radius: 10px; }

/* окно Authorize */
.swagger-ui .dialog-ux .backdrop-ux { background: rgba(0, 0, 0, .72); }
.swagger-ui .dialog-ux .modal-ux { background: #191919; border: 1px solid #383838; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.swagger-ui .dialog-ux .modal-ux-header { border-bottom: 1px solid #262626; }
.swagger-ui .dialog-ux .modal-ux-header .close-modal svg { fill: #9a9a94; }
.swagger-ui .auth-container { border-bottom: 1px solid #262626; }
.swagger-ui .auth-container h4, .swagger-ui .auth-container h6, .swagger-ui .auth-container code { color: #F5F5F0; }
.swagger-ui .auth-container .wrapper p, .swagger-ui .auth-container p { color: #9a9a94; }
.swagger-ui .authorization__btn svg { fill: #9a9a94; }
.swagger-ui .authorization__btn.locked svg { fill: #D7FF00; }
.swagger-ui .scheme-container .auth-wrapper .authorize { margin-right: 0; }
::selection { background: rgba(215, 255, 0, .35); }
@media (max-width: 640px) {
  .swagger-ui .info .title { font-size: 26px; }
  .hp-nav a { padding: 8px 10px; font-size: 12px; }
}
