/* ---------- тёмная тема (подключается после portal.css) ---------- */
html[data-theme=dark]{color-scheme:dark;--bg:#0b1322;--card:#121c30;--soft:#0f1829;--ink:#e8eef9;--text:#c4d0e4;--muted:#8a9bb8;--faint:#6b7d9c;--line:#243350;--line2:#33466a;--brand:#4f7cf0;--brand-d:#6b93f5;--brand-l:#16264a;
  --ok:#3ecf8e;--ok-l:#0f2d22;--warn:#f0b35a;--warn-l:#33270f;--err:#ff7b72;--err-l:#341a1a;--info:#7da2ff;--info-l:#16264a;--sh:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.25);--sh2:0 10px 34px rgba(0,0,0,.55)}
html[data-theme=dark] body,html[data-theme=dark] body.pub,html[data-theme=dark] .auth-page{background:var(--bg)}
html[data-theme=dark] .site-head{background:rgba(11,19,34,.92)}
html[data-theme=dark] .main-nav a:hover,html[data-theme=dark] .main-nav a.on{background:#1a2744}
html[data-theme=dark] .tbl tbody tr:hover td{background:#16223a}
html[data-theme=dark] .b-mute,html[data-theme=dark] .b-plan,html[data-theme=dark] .pill{background:#1c2a47;color:#b4c3dc}
html[data-theme=dark] .p-pro{background:#0c3550;color:#7dd3fc}html[data-theme=dark] .p-business{background:#16264a;color:#9db8ff}html[data-theme=dark] .p-enterprise{background:#2a4673;color:#fff}
html[data-theme=dark] .a-ok{color:#7fe3b4;border-color:#1e5a42}html[data-theme=dark] .a-err{color:#ffb0aa;border-color:#6b2b2b}html[data-theme=dark] .a-info{color:#a9c1ff;border-color:#2c4a8a}
html[data-theme=dark] .choice:has(input:checked),html[data-theme=dark] .choice.on{background:#14244a}
html[data-theme=dark] .meter,html[data-theme=dark] .upl .bar,html[data-theme=dark] .pw-meter{background:#1c2a47}
html[data-theme=dark] .thumb .pic,html[data-theme=dark] .mod-card .pic{background:repeating-conic-gradient(#16223a 0 25%,#0f1829 0 50%) 0 0/16px 16px}
html[data-theme=dark] .input,html[data-theme=dark] .select,html[data-theme=dark] .textarea,html[data-theme=dark] #langsel{background:#0f1829;color:var(--ink)}
html[data-theme=dark] .input[readonly]{background:#0b1322}
html[data-theme=dark] .btn-ghost{background:transparent;color:var(--ink)}html[data-theme=dark] .btn-ghost:hover{background:#16223a;border-color:#5b7db4}
html[data-theme=dark] .btn-dark{background:#2a4673}html[data-theme=dark] .btn-dark:hover{background:#355a91}
html[data-theme=dark] .compare .grp td{background:#16223a}
html[data-theme=dark] .spec .box{color:#9db8ff}
html[data-theme=dark] .section-alt{background:#0e182b}
html[data-theme=dark] .avatar,html[data-theme=dark] .uc .fi{background:#2a4673}
html[data-theme=dark] .logo{color:var(--ink)}html[data-theme=dark] .logo b{color:var(--sky)}
html[data-theme=dark] .errpage .ec{color:#6b93f5}
html[data-theme=dark] .swagger-ui,html[data-theme=dark] .swagger-ui .info .title,html[data-theme=dark] .swagger-ui .opblock-tag,html[data-theme=dark] .swagger-ui table thead tr td,html[data-theme=dark] .swagger-ui table thead tr th,html[data-theme=dark] .swagger-ui .opblock .opblock-summary-description,html[data-theme=dark] .swagger-ui .parameter__name,html[data-theme=dark] .swagger-ui .tab li,html[data-theme=dark] .swagger-ui .response-col_status,html[data-theme=dark] .swagger-ui label,html[data-theme=dark] .swagger-ui .opblock-description-wrapper p,html[data-theme=dark] .swagger-ui .opblock-section-header h4,html[data-theme=dark] .swagger-ui .model-title,html[data-theme=dark] .swagger-ui .model,html[data-theme=dark] .swagger-ui section.models h4,html[data-theme=dark] .swagger-ui .info p,html[data-theme=dark] .swagger-ui .info li,html[data-theme=dark] .swagger-ui .markdown p,html[data-theme=dark] .swagger-ui .renderedMarkdown p{color:var(--text)}
html[data-theme=dark] .swagger-ui .scheme-container,html[data-theme=dark] .swagger-ui .opblock-section-header{background:var(--card)}
html[data-theme=dark] .swagger-ui input,html[data-theme=dark] .swagger-ui select,html[data-theme=dark] .swagger-ui textarea{background:#0f1829;color:var(--ink)}
.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;border:1px solid var(--line2);background:transparent;color:var(--text);cursor:pointer;padding:0}
.theme-btn:hover{border-color:var(--ink)}.theme-btn .ic{width:18px;height:18px}.theme-btn .i-sun{display:none}
html[data-theme=dark] .theme-btn .i-sun{display:inline}html[data-theme=dark] .theme-btn .i-moon{display:none}
