/* Mode sombre de Knowledge SH. GÉNÉRÉ par scripts/_kn_sombre_gen.py, ne pas retoucher à la main. Mêmes teintes que le Desk. */
html.theme-dark{color-scheme:dark;--bg:#0f2530;--card:#16333f;--card2:#1b3d4b;--sel:#22506b;--line:#2b4d5b;--line2:#24424f;--mut:#9db3be;--txt:#dbe8ed;--ink:#eaf3f7;
  --navy:#0e2731;--navy2:#173a49;--ia:#6d5ce0;--ia2:#8a6cf2;--ia-soft:rgba(138,108,242,.16);--ia-soft2:rgba(138,108,242,.30);--ia-ink:#c4b8ff;
  --k3-mark:#6a5a12;--k3-green:#58c98b;--k3-green-soft:rgba(88,201,139,.16);--k3-amber:#f0c36a;--k3-amber-soft:rgba(240,195,106,.15)}
html.theme-dark body{background:var(--bg);color:var(--txt)}
html.theme-dark .edbar.draft{background:#4c3f1f;border-color:#766432;color:#e8d9b0}
html.theme-dark .edbar.lock{background:#4c1f1f;border-color:#763232;color:#e7b1b1}
html.theme-dark .tb button:hover,html.theme-dark .tb label.b:hover{background:#293742}
html.theme-dark .tb button.on{border-color:#325076}
html.theme-dark .tb select{background:var(--card)}
html.theme-dark .tb input[type=color]{background:var(--card)}
html.theme-dark .kedfoot .sv b{color:#58c98b}
html.theme-dark .men{background:var(--card)}
html.theme-dark .ctx.kedside .lk .x:hover{color:#ff8a93}
html.theme-dark .vrow .a{color:#86b6f2}
html.theme-dark .dit.root{background:#243647}
html.theme-dark .dit .mk.vide{background:#2a3841}
html.theme-dark .dit .mk.dft{background:#4c3f1f;color:#e8d9b0}
html.theme-dark .dit .mk.use{background:#224931;color:#b0e8c9}
html.theme-dark .dit .act a:hover{background:#293842}
html.theme-dark .fnode.sel rect.hit{stroke:#86b6f2}
html.theme-dark .frow .x:hover{color:#ff8a93}
html.theme-dark .fsh{background:var(--card)}
html.theme-dark .fsh i{background:var(--card)}
html.theme-dark .fbar .sv b{color:#58c98b}
html.theme-dark .sug .r .ic{color:var(--ink)}
html.theme-dark .sug .more{color:#86b6f2}
html.theme-dark .top .who .av{background:var(--card);color:var(--ink)}
html.theme-dark .kicker{color:#ff8a93}
html.theme-dark .chip.a_verifier{background:#4c3e1f;border-color:#765f32;color:#e8d2b0}
html.theme-dark .chip.publiee{background:#1f4c33;border-color:#32764f;color:#b0e8cb}
html.theme-dark .chip.brouillon{background:#283443;border-color:#415167;color:#c4cbd4}
html.theme-dark .chip.archivee{background:#331f4c;border-color:#503276;color:#c7b0e8}
html.theme-dark .chip.auto{background:#1f324c;border-color:#325176;color:#b0c9e8}
html.theme-dark .bar{background:#2a3941}
html.theme-dark .tile img{background:var(--card)}
html.theme-dark .tbl td.t .ic{color:var(--ink)}
html.theme-dark .tbl tr.grp td{background:#283643}
html.theme-dark .acc{border:1px solid var(--line)}
html.theme-dark .acc>.ah:hover{background:#273744}
html.theme-dark .rule.ok{border-color:#32764f;background:#1f4c30}
html.theme-dark .mrow .ic{color:var(--ink)}
html.theme-dark .mrow.done .ic{color:#58c98b}
html.theme-dark .dlist .it .ic{color:var(--ink)}
html.theme-dark .tree .it .ic{color:var(--ink)}
html.theme-dark .warn{background:#4c3e1f;border:1px solid #765f32;color:#e8d2b0}
html.theme-dark .tree .it mark{background:#4c451f}
html.theme-dark .endnav .kk{color:#ff8a93}
html.theme-dark .endnav .row2 a:hover{color:#86b6f2}
html.theme-dark .lbx img{background:var(--card)}
html.theme-dark .body a{color:#86b6f2}
html.theme-dark .ctx .toc a:hover,html.theme-dark .ctx .lk a:hover{color:#86b6f2}
html.theme-dark .diag .q .go{color:#86b6f2}
html.theme-dark .cases .c a{color:#86b6f2}
html.theme-dark .auto{border:1px solid #325176;background:#1f334c}
html.theme-dark .auto h4{color:#b0c9e8}
html.theme-dark .pass label.on{border-color:#32764f;background:#1f4c30}
html.theme-dark .pass label.wait{border-color:#765f32;background:#4c3e1f}
html.theme-dark .drawer .dh .k{color:#ff8a93}
html.theme-dark .pal .r mark{background:#4c451f}
html.theme-dark .ctx .toc a.on{color:#ff8a93}
html.theme-dark .nextbar .bar i{background:var(--card)}
html.theme-dark .chip.jr{border-color:#324e76;color:var(--ink)}
html.theme-dark .mcard .trg .kk{color:#ff8a93}
html.theme-dark .mcard .pf{background:#4c3d1f}
html.theme-dark .it.dm.wk{color:#ff8a93}
html.theme-dark .dlist .it.wk{color:#ff8a93}
html.theme-dark .qi .ans{background:#254629;border:1px solid #377140}
html.theme-dark .qi .ans .k{color:#b4e4be}
html.theme-dark .qi .ans.new{background:#4c3e1f;border-color:#766132}
html.theme-dark .qi .ans.new .k{color:#e8d5b0}
html.theme-dark .quiz .qq .t .n{color:#ff8a93}
html.theme-dark .quiz label.ch.ok{background:#254629}
html.theme-dark .quiz label.ch.ko{background:#4c1f1f}
html.theme-dark .quiz .why{color:#e8d5b0;background:#4c3e1f;border:1px solid #766132}
html.theme-dark .quiz .res.ok{color:#b4e4be}
html.theme-dark .quiz .res.ko{color:#ff8a93}
html.theme-dark #kchat .m.a.no{border-color:#766132;background:#4c3e1f}
html.theme-dark .cite{background:var(--card);color:var(--ink)}
html.theme-dark #kchat .wr .qs{background:#4c3e1f;border:1px solid #766132}
html.theme-dark #kchat .wr .pc .body[contenteditable=true]{background:var(--card)}
html.theme-dark #kchat .wr .pc .body .kwnew{background:#1f4c32}
html.theme-dark #kchat .wr .pc .chg{color:#b0e8c0}
html.theme-dark .chip.qual.solide{background:#254629;border-color:#377140;color:#b4e4be}
html.theme-dark .chip.qual.consolider{background:#4c3e1f;border-color:#766132;color:#e8d5b0}
html.theme-dark .chip.qual.fragile{background:#4c1f1f;border-color:#763232;color:#ff8a93}
html.theme-dark .chip.late{background:#4c1f1f;border-color:#763232;color:#ff8a93}
html.theme-dark .ctx .toc a .trg{color:#86b6f2}
html.theme-dark .ctx .ctxtrg{color:#86b6f2}
html.theme-dark .mopctx .g>div.quand .kk{color:#ff8a93}
html.theme-dark .mopctx .v a{color:#86b6f2}
html.theme-dark .tree .it.fc .ic{color:#ff8a93}
html.theme-dark .pv-st{background:#4c3e1f;color:#e8d5b0}
html.theme-dark .pv-st.valide{background:#204b34;color:#b0e8cb}
html.theme-dark .pv-st.a_revoir{background:#4c1f21;color:#e8b0b4}
html.theme-dark .pv-st.modifiee{background:#1f2d4c;color:#b0c3e8}
html.theme-dark .pv-s::before{background:#273644}
html.theme-dark .pv-dec .q{background:#1f2e4c}
html.theme-dark .pv-dec .q b{color:var(--ink)}
html.theme-dark .pv-rail>span{color:var(--ink)}
html.theme-dark .pv-rail em{color:#58c98b}
html.theme-dark .pv-notes{border:1px solid #766032;background:#4c3d1f}
html.theme-dark .pv-notes summary{color:#e8d5b0}
html.theme-dark .pv-ed input,html.theme-dark .pv-ed textarea{background:var(--card)}
html.theme-dark .chn-m{background:var(--card)}
html.theme-dark .chn-m.client{background:#283643}
html.theme-dark .chn-m a{color:#86b6f2}
html.theme-dark .chn-col h4{color:var(--ink)}
html.theme-dark .chn-mi{background:var(--card)}
html.theme-dark .mwm a .ic{color:var(--ink)}
html.theme-dark .hcard>.h .r{color:#86b6f2}
html.theme-dark .hli:hover b{color:#86b6f2}
html.theme-dark .tagm{background:#4c3e1f;color:#e8d5b0}
html.theme-dark .tagm.g{background:#1f4c32;color:#b0e8c9}
html.theme-dark .bd.vh{background:#1f4c32;color:#b0e8c9}
html.theme-dark .bd.pa{background:#1f2d4c;color:#b0c3e8}
html.theme-dark .cl4 .lg>.L{color:#86b6f2}
html.theme-dark .ov3 .offer{background:#4c3f1f;border:1px solid #766332}
html.theme-dark .ov3 .offer b{color:#e8d6b0}
html.theme-dark .ov3 .scope a{color:#86b6f2}
html.theme-dark .mk3:hover .t{color:#86b6f2}
html.theme-dark .mk3.cli .d{background:var(--card);color:var(--ink)}
html.theme-dark .mk3.on .t{color:#86b6f2}
html.theme-dark .leg3 i.o{background:var(--card)}
html.theme-dark .rty .mkf{background:#1f2d4c;color:#b0c3e8}
html.theme-dark .mc .wy{color:#c3cfd5}
html.theme-dark .mc .tg .go{color:#86b6f2}
html.theme-dark .nextbar.top3{background:#1f2c4c;border:1px solid #324b76}
html.theme-dark .pv-flow.v3 .pv-s:hover .t{color:#86b6f2}
html.theme-dark .pv-flow.v3 .pv-s.on .t{color:#86b6f2}
html.theme-dark .pv-det{background:#1f304c;border:1px solid #324b76}
html.theme-dark .pv-det.mp{background:var(--card);border:1px solid #324b76}
html.theme-dark .pv-det.mp .mp-hd{background:#1f304c;border-bottom:1px solid #324a76}
html.theme-dark .pv-det.mp .mp-k{color:#86b6f2}
html.theme-dark .pv-det.mp .mp-acts{border-top:1px solid #324d76}
html.theme-dark .mc .tgx b{color:#c3cfd5}
html.theme-dark .mk4 .d{background:var(--card);color:var(--ink)}
html.theme-dark .mk4.cli .s{color:#e8cab0}
html.theme-dark .pc .hero{background:var(--card)}
html.theme-dark .pc .hero .who b{color:var(--ink)}
html.theme-dark .pc .big b{color:var(--ink)}
html.theme-dark .pc .tog{color:var(--ink)}
html.theme-dark .pc .sw:after{background:var(--card)}
html.theme-dark .pc h2.pch{color:var(--ink)}
html.theme-dark .pc h3.pch{color:var(--ink)}
html.theme-dark .pc .gcard{background:var(--card)}
html.theme-dark .pc .gcard b{color:var(--ink)}
html.theme-dark .pc .mrow{background:var(--card)}
html.theme-dark .pc .mrow.mm{border-color:#34754c;background:#214a31}
html.theme-dark .pc .mtit{color:var(--ink)}
html.theme-dark .pc .st{background:#2c363f}
html.theme-dark .pc .lnk{color:#86b6f2}
html.theme-dark .pc .b-ok{background:var(--card)}
html.theme-dark .pc .b-ok:hover{background:#1f4c31}
html.theme-dark .pc .b-un{background:var(--card)}
html.theme-dark .pc .mx{background:var(--card)}
html.theme-dark .pc .mx th{color:var(--ink)}
html.theme-dark .pc .mx tr.grp td{color:var(--ink);background:#2b3940}
html.theme-dark .pc .mx .cell .x:hover{color:#ff8a93}
html.theme-dark .pcv .seq .t{color:var(--ink)}
html.theme-dark .k3-seg a.on{background:var(--card);color:#b1d6e7}
html.theme-dark .k3-lien{color:#86b6f2}
html.theme-dark .k3-bar{background:var(--card)}
html.theme-dark .k3-bar input{color:#bbd2dd}
html.theme-dark .k3-bar kbd{color:#c6cdd2;border:1px solid var(--line)}
html.theme-dark .k3-la a{color:#86b6f2}
html.theme-dark .k3-err{color:#e8b3b0}
html.theme-dark .k3-pc .e.ko{color:#e8b3b0}
html.theme-dark .kv-ban{border:1px solid #766432;color:#e8d9b0}
html.theme-dark .kv-ban .k3-chip.a{border-color:#766432}
html.theme-dark .kv-ban .n{color:#ded5ba}

/* retouches */
html.theme-dark .btn.p,html.theme-dark .k3-btn.p{background:#2b5a70;border-color:#2b5a70;color:#fff}
html.theme-dark .btn.p:hover,html.theme-dark .k3-btn.p:hover{background:#346a84;color:#fff}
html.theme-dark .k3-btn.r,html.theme-dark .k3-btn.ia,html.theme-dark .k3-nouveau{color:#fff}
html.theme-dark .k3-hero{background-color:#0b1f29}
html.theme-dark mark{background:var(--k3-mark);color:#fff5cc}
html.theme-dark input,html.theme-dark textarea,html.theme-dark select{background:var(--card2);color:var(--txt);border-color:var(--line)}
html.theme-dark input::placeholder,html.theme-dark textarea::placeholder{color:var(--mut)}
html.theme-dark .k3-seg a.on{background:#eaf3f7;color:#143240}
html.theme-dark .who .av{background:#eaf3f7;color:#143240}
/* le corps des fiches : le texte collé garde parfois ses couleurs d'origine */
html.theme-dark #view .bd [style*="color"],html.theme-dark #view .body [style*="color"],html.theme-dark .pg-body [style*="color"],html.theme-dark .ked .ed [style*="color"],html.theme-dark #k3FB [style*="color"]{color:inherit!important}
html.theme-dark #view .bd [style*="background"],html.theme-dark #view .body [style*="background"],html.theme-dark .pg-body [style*="background"],html.theme-dark .ked .ed [style*="background"],html.theme-dark #k3FB [style*="background"]{background:transparent!important}
html.theme-dark #view img{background:#fff}
