
/* ===== Sefirah Castle – correctif contraste (FR / EN, clair / sombre) =====
   Les styles ajoutés pour les versions récentes remettaient des fonds sombres
   après les couleurs du mode clair. Ce bloc est volontairement en dernier. */
body:not(.light){color:#eee9dc}
body:not(.light) :is(.panel,.lot,.bview,.kc,dialog,#lotm-dialog,#v16-hub,#v16-update){color:#eee9dc}
body:not(.light) :is(input,textarea,select){color:#f0ebdf;caret-color:#e6c68c}
body:not(.light) :is(input,textarea)::placeholder{color:#a7adba;opacity:1}
body:not(.light) select option{background:#16202a;color:#f0ebdf}

/* Le mode clair doit garder des fonds réellement clairs, même dans les
   composants apparus dans les versions 1.4 à 1.6. */
body.light{
  --ink:#29261f;--mute:#655d50;--fog:#665e50;--bg:#f1ece1;
  --panel:#fffaf2;--glass:#00000008;--line:#695c493d;
  --gold:#8b692d;--gold2:#725522;
  background:#f1ece1!important;background-image:none!important;
  color:#29261f!important;color-scheme:light;
}
body.light::before,body.light::after{display:none}
body.light :is(header,nav,.panel,.lot,.bview,.kc,.dsc,#chat,#tuto,#dlg,#upd,#lotm-dialog,#v16-hub,#v16-update){
  background:#fffaf2!important;color:#29261f!important;border-color:#987d4e55;
}
body.light header{background:#f1ece1}
body.light nav button:not([aria-pressed="true"]){color:#514939!important}
body.light nav button[aria-pressed="true"]{color:#20190d!important}
body.light :is(.panel>b,.hsec h3,.steps h4,#v16-hub h2,#v16-hub h3,#v16-hub h4,#v16-update h2,#lotm-dialog h2){color:#61491f!important}
body.light :is(#v16-hub p,#v16-update p,#v16-hub label,#v16-hub th,#v16-hub td,#lotm-dialog p,#lotm-dialog label){color:#4e493f!important}
body.light :is(.v16-kicker,#v16-hub header small,#v16-update>small){color:#765720}
body.light :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
  background:#fffcf6!important;color:#29261f!important;caret-color:#29261f;
  border-color:#8e744b77;
}
body.light :is(input,textarea)::placeholder{color:#776c5d;opacity:1}
body.light select option{background:#fffcf6;color:#29261f}
body.light :is(#v16-hub,#v16-update,#lotm-dialog) :is(input,textarea,select){background:#fffcf6!important;color:#29261f!important;border-color:#8e744b77}
body.light :is(#v16-hub,#v16-update,#lotm-dialog) button:not(.card):not(.act.big){background:#eee5d4;color:#362b1b;border-color:#987d4e66}
body.light :is(.v16-seat,.v16-sequences article,.lotm-compare-grid article,.v16-community-meter){background:#f4eddf;color:#29261f;border-color:#9c83554a}
body.light .v16-seat p{color:#4e493f!important}
body.light .v16-sequences article span{color:#5f564a}
body.light .v16-public-profile:not(.bg-night):not(.bg-archives){background:#f6f0e5;color:#29261f}
body.light :is(.v16-public-profile.bg-night,.v16-public-profile.bg-archives,.v16-ritual,.lotm-ritual-header){color:#eee9dc}
body.light :is(.v16-public-profile.bg-night,.v16-public-profile.bg-archives,.v16-ritual,.lotm-ritual-header) :is(h2,h3,h4,p,label,span){color:inherit}
body.light .v16-profile-options label{color:#29261f}
body.light #v16-hub>nav{background:#fffaf2!important}
body.light #v16-hub>nav button:not([aria-pressed="true"]){color:#514939!important}
body.light #chlog{background:#f3ecdf}
body.light #chlog p{background:#fffaf2;color:#29261f}
body.light #chlog p.me{background:#e8dcc6}
body.light #lotm-save{color:#554c3c}
body.light #lotm-save b{color:#29261f}
body.light .lotm-tags span{color:#61491f}
body.light .lotm-summary-stats span{color:#5b5247}
body.light .lotm-summary-stats b{color:#674d22}
/* Les cartes elles-mêmes gardent leur contraste, quel que soit le thème. */
.card .plate .nm{color:#fff}
body.light .card .plate .nm{color:#28241d}
.card .plate .ds{color:#d4d2dc}
body.light .card .plate .ds{color:#51493b}
/* Si l'illustration distante manque, le dessin de secours SVG reste visible. */
.arch.img-fallback{background-color:#141a26}
.arch.img-fallback svg{display:block;opacity:1}
