/* Botón de tema */
.er-theme{all:unset;box-sizing:border-box;cursor:pointer;width:30px;height:30px;line-height:28px;text-align:center;border-radius:50%;border:1px solid currentColor;color:var(--gold2,#d4af37);font-size:16px;flex:none;align-self:center}
.er-theme-fixed{position:fixed;top:10px;right:10px;z-index:100;background:var(--panel,#141414)}
#erNav{align-items:center}
/* ===== Tema claro ===== */
html[data-theme=light]{--bg:#f6f3ea;--panel:#ffffff;--panel2:#f1ecdf;--line:#d9cfb6;--gold:#9a7412;--gold2:#7a5900;--txt:#1d1b16;--mut:#5d5646;--pos:#167a41;--neg:#b42318}
html[data-theme=light] body{background:var(--bg)!important;color:var(--txt)!important}
html[data-theme=light] header{background:linear-gradient(180deg,#fffdf7,#f6f3ea)!important}
html[data-theme=light] #tabs{background:#fffdf7!important}
html[data-theme=light] .note,html[data-theme=light] .warn{background:#fbf7ec!important}
html[data-theme=light] .warn{background:#fdecea!important}
html[data-theme=light] .chip,html[data-theme=light] .tag,html[data-theme=light] .tA{background:#f3e7c4!important}
html[data-theme=light] .tag.g,html[data-theme=light] .rs.WIN{background:#dcf3e4!important}
html[data-theme=light] .tag.r,html[data-theme=light] .tN,html[data-theme=light] .rs.LOST{background:#fbe1de!important}
html[data-theme=light] .rs.VOID{background:#ece9e2!important}
html[data-theme=light] .bd{background:#efe6cc!important}
html[data-theme=light] .badge.free{border-color:var(--mut)!important;color:var(--txt)!important}
html[data-theme=light] button.gold,html[data-theme=light] button.on,html[data-theme=light] .btn.gold,html[data-theme=light] .badge.paid,html[data-theme=light] .soon{background:linear-gradient(180deg,#9c7412,#7f5d0a)!important;color:#fff!important}
html[data-theme=light] button:not(.gold):not(.on):not(.er-theme),html[data-theme=light] .btn:not(.gold){background:var(--panel2)}
html[data-theme=light] textarea,html[data-theme=light] input,html[data-theme=light] select{background:#fff!important;color:var(--txt)!important;border-color:var(--line)!important}
html[data-theme=light] img{background:transparent}
html[data-theme=light] .ov{background:#0006!important}
html[data-theme=light] #erMe{color:var(--mut)!important}
html[data-theme=light] #erNav a{color:var(--gold2)!important}
html[data-theme=light] svg text[fill="#9a927f"]{fill:var(--mut)}
/* Páginas sin variables (login, admin) */
html[data-theme=light] .c,html[data-theme=light] .box{background:#fff!important;border-color:var(--line)!important;color:var(--txt)}
html[data-theme=light] h1,html[data-theme=light] a{color:var(--gold2)}
html[data-theme=light] #m{color:var(--mut)!important}
html[data-theme=light] th,html[data-theme=light] td{border-color:var(--line)!important}
html[data-theme=light] tr{border-color:var(--line)!important}
html[data-theme=light] button.s{background:#f3e7c4!important;color:var(--gold2)!important}
html[data-theme=light] .st-active{color:#167a41}html[data-theme=light] .st-paused{color:#8a5a00}html[data-theme=light] .st-denied{color:#b42318}
html[data-theme=light] .c button,html[data-theme=light] .box button:not(.s):not(.d){background:linear-gradient(180deg,#9c7412,#7f5d0a)!important;color:#fff!important}
html[data-theme=light] button.d{background:#b42318!important;color:#fff!important}
#erNav .er-theme{width:24px;height:24px;line-height:22px;font-size:13px}
