/* Ночная тема. Файл собран автоматически: /root/tools/learn-theme/gen-dark.py — руками не править. 2026-10-10 15:37 */
html[data-theme="dark"]{color-scheme:dark;
--bg:#07070A;--surface:#111116;--ink:#F4F4F8;--muted:#9E9EAB;--line:#23232C;--line-2:#2D2D38;--faint:#1A1A21;
--tint:#1A1330;--indigo:#6D28FF;--indigo-dark:#5A12F0;--indigo-2:#9A5CFF;--lavender:#C9A7FF;
--indigo-text:#B594FF;--inv-bg:#6D28FF;--ok:#3DDC97;--warn:#F5A524;
--shadow:0 1px 2px rgba(0,0,0,.5),0 10px 30px rgba(0,0,0,.55);
--silver-1:#1D1D25;--silver-2:#14141A;--silver-3:#24242E;--silver-4:#30303C}
html[data-theme="dark"],html[data-theme="dark"] body{background:#07070A}
/* кнопка «солнце / луна» — видна в обеих темах */
.theme-t{flex:none;position:relative;width:32px;height:32px;border-radius:10px;border:0;background:none;color:#A1A1AA;display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}
.theme-t:hover{background:var(--faint,#F1F1F4);color:var(--ink,#111114)}
.theme-t svg{grid-area:1/1;transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .25s}
.theme-t .theme-t__sun{opacity:0;transform:rotate(-70deg) scale(.5)}
.side__top .theme-t{margin-left:auto}
.mobtop .theme-t{margin-left:auto;width:38px;height:38px}
html[data-theme="dark"] .theme-t{color:#C9A7FF}
html[data-theme="dark"] .theme-t:hover{background:rgba(201,167,255,.12);color:#fff}
html[data-theme="dark"] .theme-t .theme-t__moon{opacity:0;transform:rotate(70deg) scale(.5)}
html[data-theme="dark"] .theme-t .theme-t__sun{opacity:1;transform:none}
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .35s ease,color .35s ease,border-color .35s ease,box-shadow .35s ease,fill .35s ease,stroke .35s ease!important}
@media(prefers-reduced-motion:reduce){html.theme-anim,html.theme-anim *{transition:none!important}.theme-t svg{transition:none}}
.side__top:has(.theme-t){display:flex;align-items:center;gap:6px}
.side__top:has(.theme-t) .wordmark{min-width:0}
/* свёрнутое меню: кнопка темы по центру, как остальные значки */
.app.rail .side__top:has(.theme-t){gap:12px}
.app.rail .side__top .theme-t{margin-left:0}

/* --- inline --- */
html[data-theme="dark"] .nav a.on{background-color:#1F1433;color:var(--indigo-text)}
html[data-theme="dark"] .nav a.on svg{stroke:var(--indigo-text)}
html[data-theme="dark"] .side__credit a:hover{color:var(--indigo-text)}
@media(max-width:900px){
html[data-theme="dark"] .side{box-shadow:0 0 40px rgba(0,0,0,0.548)}
}
html[data-theme="dark"] .search input{background-color:#131317;box-shadow:0 8px 28px rgba(0,0,0,0.292)}
html[data-theme="dark"] .search input:focus{border-color:#403069}
html[data-theme="dark"] .trow{background-color:#131317}
html[data-theme="dark"] .trow:hover{box-shadow:0 6px 22px rgba(0,0,0,0.26);border-color:#412D6C}
html[data-theme="dark"] .t-name{color:var(--indigo-text)}
html[data-theme="dark"] .tcard{background-color:#131317;box-shadow:0 24px 70px rgba(0,0,0,0.72)}
html[data-theme="dark"] .tcard .short{color:#CDCDD2}
html[data-theme="dark"] .tcard .body{color:#CDCDD2}
html[data-theme="dark"] .tcard .body code{background-color:#1E1731}
html[data-theme="dark"] .cont-fab{background-image:linear-gradient(154deg,#131317 0%,#151F2E 15%,#212835 33%,#131317 50%,#1F2734 64%,#343840 82%,#1F1638 100%);color:#F1F1F3;box-shadow:0 1px 0 rgba(255,255,255,0.067) inset,0 -1.5px 0 rgba(76,0,204,.10) inset,0 0 0 1px rgba(0,0,0,0.388),0 6px 18px rgba(0,0,0,0.548)}
/* --- /side-foot.css --- */
html[data-theme="dark"] .side__foot{border-top:1px solid var(--line,#2F2F3A)}
html[data-theme="dark"] .sf-me{color:var(--ink,#F1F1F3);background-image:linear-gradient(135deg,#1D1331,#16151A)}
html[data-theme="dark"] .sf-t span{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .sf-up{background-image:linear-gradient(135deg,#372E15,#1F1433);border:1px solid #786835;color:#F8D677}
html[data-theme="dark"] .sf-up--vip{border-color:#756739}
html[data-theme="dark"] .side__credit{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .side__credit a{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .side__credit a:hover{color:var(--ink,#F1F1F3)}
html[data-theme="dark"] .side__credit:last-child a{color:var(--ink,#F1F1F3)}
html[data-theme="dark"] .sf-more>summary{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .sf-more>summary:hover{color:var(--ink,#F1F1F3)}
html[data-theme="dark"] .nav-free{color:#7DF2C2;background-color:#1A3727;border:1px solid #3E5B4D}
html[data-theme="dark"] .nav-stu{color:#A977F8;background-color:#1F1433;border:1px solid #423861}
html[data-theme="dark"] .sf-t .sf-tier--vip{color:#F8D677;background-image:linear-gradient(135deg,#403819,#5C4F24)}
html[data-theme="dark"] .sf-t .sf-tier--pro{color:#A777F8;background-color:#221638;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.07)}
html[data-theme="dark"] .sf-out:hover{background-color:rgba(19,19,23,0.85);color:#EB8484}
html[data-theme="dark"] .sf-out:focus-visible{outline:2px solid #442673}
html[data-theme="dark"] .sf-out.arm{background-color:#3A1717;color:#EB8484}
html[data-theme="dark"] .sf-links{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .sf-links a{color:var(--muted,#A7A7AE)}
html[data-theme="dark"] .sf-links a:hover{color:var(--ink,#F1F1F3)}
html[data-theme="dark"] .sf-by a{color:var(--ink,#F1F1F3)!important}
/* --- /ai-label.css --- */
html[data-theme="dark"] .ai-mark{text-shadow:0 1px 2px rgba(0,0,0,0.72),0 0 8px rgba(0,0,0,0.72)}
html[data-theme="dark"] .ai-mark--light{color:rgba(173,162,206,0.74);text-shadow:0 0 6px rgba(255,255,255,0.053)}
@media print{
html[data-theme="dark"] .ai-mark{color:#F4F4F4}
}
/* --- ручные правки --- */
html[data-theme="dark"] .burger svg{stroke:#F4F4F8}
html[data-theme="dark"] .wordmark svg path{stroke:#E9E9F2}
html[data-theme="dark"] ::selection{background:rgba(139,61,255,.45);color:#fff}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#2D2D38}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#6F6F7C}
/* 10 окт: закрытые разделы в мобильном меню — в ночной теме тоже приглушённые */
html[data-theme="dark"] .mm-t--off{color:#6F6F7C}
html[data-theme="dark"] .mm-t--off .mm-ic{color:#8A8A98}
html[data-theme="dark"] .mm-t--off .mm-ic{box-shadow:none}
