/* WTF!! — vistas (temas). Cada tema solo cambia variables y unos retoques; «neon» es la base de futuro.css */
/* ===== Medianoche: grafito + azul, sobrio ===== */
html[data-theme=oscuro]{--bg:#07090d;--bg0:#07090d;--bg1:#0d1117;--card:#11161d;--ink:#e8edf5;--ink2:#c4cfdd;--mut:#8b98aa;--line:#222b38;--p1:#4f8cff;--p2:#2563eb;--p3:#14d4c4;--p1r:79,140,255;--p2r:37,99,235;--p3r:20,212,196;--hot:#ff5c7a;--grad:linear-gradient(120deg,#2563eb,#3b82f6 55%,#14d4c4);--glr:255,255,255;--shr:0,0,0;--hdr:13,17,23;--sh1r:22,30,44;--sh2r:10,13,18;--bub:linear-gradient(135deg,#1d4ed8,#2563eb 60%,#0ea5a4);--bubsh:rgba(37,99,235,.6);--g1:#fff;--g2:#cfe0ff;--g3:#9ff3ea}
html[data-theme=oscuro] body #chat{--hd:#0d1117;--bg:#07090d;--out:#1d4ed8;--in:#161c26;--bar:#0d1117;--send:#2563eb;--tx:#e8edf5;--sub:#8b98aa;--tick:#14d4c4;--chip:#161c26;--ln:#222b38}
html[data-theme=oscuro] #auth{background:radial-gradient(60% 40% at 15% 0%,rgba(37,99,235,.35),transparent 70%),radial-gradient(50% 40% at 90% 10%,rgba(20,212,196,.2),transparent 70%),#07090d!important}
/* ===== Luz ===== */
html[data-theme=luz]{--bg:#f3f5f9;--bg0:#f3f5f9;--bg1:#ffffff;--card:#ffffff;--ink:#111827;--ink2:#374151;--mut:#667085;--line:#dfe4ec;--p1:#2563eb;--p2:#0ea5e9;--p3:#10b981;--p1r:37,99,235;--p2r:14,165,233;--p3r:16,185,129;--hot:#e11d48;--grad:linear-gradient(120deg,#2563eb,#0ea5e9 60%,#10b981);--glr:17,24,39;--shr:15,23,42;--hdr:255,255,255;--sh1r:255,255,255;--sh2r:246,248,252;--bub:linear-gradient(135deg,#2563eb,#0ea5e9);--bubsh:rgba(37,99,235,.35);--g1:#2563eb;--g2:#0ea5e9;--g3:#10b981;color-scheme:light}
html[data-theme=luz] body #chat{--hd:#fff;--bg:#eef1f6;--out:#2563eb;--in:#fff;--bar:#fff;--send:#2563eb;--tx:#111827;--sub:#667085;--tick:#10b981;--chip:#e8edf5;--ln:#dfe4ec}
html[data-theme=luz] body,html[data-theme=luz] #splash,html[data-theme=luz] #auth{background:#f3f5f9!important}
html[data-theme=luz] #auth{background:radial-gradient(60% 40% at 15% 0%,rgba(37,99,235,.14),transparent 70%),radial-gradient(50% 40% at 90% 10%,rgba(16,185,129,.12),transparent 70%),#f3f5f9!important}
/* ===== Shine: negro y oro con destello ===== */
html[data-theme=shine]{--bg:#0a0805;--bg0:#0a0805;--bg1:#15110a;--card:#1a140c;--ink:#fff8e6;--ink2:#f0dfae;--mut:#b8a56e;--line:#3a2d12;--p1:#ffd54a;--p2:#e0a100;--p3:#fff1b8;--p1r:255,213,74;--p2r:224,161,0;--p3r:255,241,184;--hot:#ff6a4a;--grad:linear-gradient(120deg,#b8860b,#ffd54a 45%,#fff1b8 65%,#e0a100);--glr:255,225,140;--shr:6,4,0;--hdr:21,17,10;--sh1r:44,33,12;--sh2r:18,13,5;--bub:linear-gradient(135deg,#b8860b,#f5c542 55%,#ffe58a);--bubsh:rgba(245,197,66,.55);--g1:#fff6d0;--g2:#ffd54a;--g3:#e0a100;--onacc:#2a1d00}
html[data-theme=shine] body #chat{--hd:#15110a;--bg:#0a0805;--out:#b8860b;--in:#1d160b;--bar:#15110a;--send:#e0a100;--tx:#fff8e6;--sub:#b8a56e;--tick:#ffd54a;--chip:#241a0b;--ln:#3a2d12}
html[data-theme=shine] #auth{background:radial-gradient(60% 40% at 15% 0%,rgba(224,161,0,.35),transparent 70%),radial-gradient(50% 40% at 90% 10%,rgba(255,241,184,.18),transparent 70%),#0a0805!important}
html[data-theme=shine] .chM.me .chB{color:#1b1200!important}html[data-theme=shine] .chM.me .chB *{color:inherit}
html[data-theme=shine] .auBtn.pri,html[data-theme=shine] .btns .pri,html[data-theme=shine] .btns .ok,html[data-theme=shine] button.ok,html[data-theme=shine] .pyBt,html[data-theme=shine] #chSend,html[data-theme=shine] #chMic{color:#2a1d00!important}
html[data-theme=shine] #chSend svg,html[data-theme=shine] #chMic svg{stroke:#2a1d00;fill:#2a1d00}
html[data-theme=shine] .auWord,html[data-theme=shine] .wtfWord{background:linear-gradient(100deg,#b8860b,#ffe58a 40%,#fff6d0 50%,#e0a100 70%)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;background-size:200% 100%!important;animation:thShine 4s linear infinite}
@keyframes thShine{0%{background-position:0 0}100%{background-position:-200% 0}}
html[data-theme=shine] .auBtn.pri::after,html[data-theme=shine] .btns .ok::after,html[data-theme=shine] #chSend::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.65) 50%,transparent 60%);background-size:250% 100%;animation:thGlint 3.2s ease-in-out infinite;pointer-events:none}
@keyframes thGlint{0%{background-position:150% 0}60%,100%{background-position:-50% 0}}
/* ===== Funny: colorido y juguetón ===== */
html[data-theme=funny]{--bg:#fff6e5;--bg0:#fff6e5;--bg1:#fffdf7;--card:#ffffff;--ink:#2b1b3d;--ink2:#4b3563;--mut:#8a6f9e;--line:#ffd9a8;--p1:#ff4d8d;--p2:#ff9a3c;--p3:#2bb8ff;--p1r:255,77,141;--p2r:255,154,60;--p3r:43,184,255;--hot:#ff3366;--grad:linear-gradient(120deg,#ff4d8d,#ff9a3c 45%,#ffd23f 70%,#2bb8ff);--glr:90,50,120;--shr:60,30,80;--hdr:255,253,247;--sh1r:255,255,255;--sh2r:255,246,229;--bub:linear-gradient(135deg,#ff4d8d,#ff9a3c);--bubsh:rgba(255,77,141,.4);--g1:#ff4d8d;--g2:#ff9a3c;--g3:#2bb8ff;color-scheme:light}
html[data-theme=funny] body #chat{--hd:#fffdf7;--bg:#fff1d6;--out:#ff4d8d;--in:#fff;--bar:#fffdf7;--send:#ff4d8d;--tx:#2b1b3d;--sub:#8a6f9e;--tick:#2bb8ff;--chip:#ffe9c2;--ln:#ffd9a8}
html[data-theme=funny] body,html[data-theme=funny] #splash{background:#fff6e5!important}
html[data-theme=funny] #auth{background:radial-gradient(40% 30% at 12% 6%,rgba(255,77,141,.3),transparent 70%),radial-gradient(40% 30% at 92% 12%,rgba(43,184,255,.28),transparent 70%),radial-gradient(50% 35% at 50% 100%,rgba(255,210,63,.45),transparent 70%),#fff6e5!important}
html[data-theme=funny] .chB{border-radius:22px!important}
html[data-theme=funny] .auBtn,html[data-theme=funny] .btns button,html[data-theme=funny] .btns a,html[data-theme=funny] .pyBt{box-shadow:0 4px 0 rgba(43,27,61,.18)!important}
html[data-theme=funny] .auBtn:active,html[data-theme=funny] .btns button:active,html[data-theme=funny] #sheet button:active{transform:translateY(3px) scale(.98);box-shadow:0 1px 0 rgba(43,27,61,.18)!important}
html[data-theme=funny] .th:hover,html[data-theme=funny] .th:active{background:rgba(255,154,60,.14)}
html[data-theme=funny] .auWord,html[data-theme=funny] .wtfWord{animation:thWob 2.6s ease-in-out infinite;display:inline-block}
@keyframes thWob{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2.5deg) scale(1.04)}}
html[data-theme=funny] .chM:nth-child(3n) .chB{transform:rotate(-.6deg)}html[data-theme=funny] .chM:nth-child(3n+1) .chB{transform:rotate(.5deg)}
/* ===== Simple: plano, sin efectos ===== */
html[data-theme=simple]{--bg:#f7f7f8;--bg0:#f7f7f8;--bg1:#ffffff;--card:#ffffff;--ink:#1c1c1e;--ink2:#3a3a3c;--mut:#6e6e73;--line:#e3e3e6;--p1:#0b7a65;--p2:#0b7a65;--p3:#0b7a65;--p1r:11,122,101;--p2r:11,122,101;--p3r:11,122,101;--hot:#d92d20;--grad:#0b7a65;--glr:0,0,0;--shr:0,0,0;--hdr:255,255,255;--sh1r:255,255,255;--sh2r:255,255,255;--bub:#d6f5e6;--bubsh:transparent;--g1:#0b7a65;--g2:#0b7a65;--g3:#0b7a65;color-scheme:light}
html[data-theme=simple] body #chat{--hd:#fff;--bg:#efefef;--out:#d6f5e6;--in:#fff;--bar:#fff;--send:#0b7a65;--tx:#1c1c1e;--sub:#6e6e73;--tick:#0b7a65;--chip:#ececee;--ln:#e3e3e6}
html[data-theme=simple] body,html[data-theme=simple] #splash,html[data-theme=simple] #auth{background:#f7f7f8!important;animation:none!important}
html[data-theme=simple] *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;text-shadow:none!important;filter:none!important}
html[data-theme=simple] #fxTrail,html[data-theme=simple] .fxWrap{display:none!important}
html[data-theme=simple] .auBtn,html[data-theme=simple] .btns button,html[data-theme=simple] .btns a,html[data-theme=simple] .fxRow,html[data-theme=simple] .fxClose,html[data-theme=simple] .pyBt,html[data-theme=simple] #sheet,html[data-theme=simple] .chB,html[data-theme=simple] .pyCard{box-shadow:none!important}
html[data-theme=simple] .chM.me .chB{color:#1c1c1e!important}html[data-theme=simple] .chM.me .chB *{color:inherit}
html[data-theme=simple] #sheet::before,html[data-theme=simple] #sheet::after{display:none}
html[data-theme=simple] #sheet{border-radius:16px 16px 0 0!important}
html[data-theme=simple] .auWord,html[data-theme=simple] .wtfWord{background:none!important;color:#0b7a65!important;-webkit-text-fill-color:#0b7a65!important}

/* ===== comunes a los temas claros (Luz, Funny, Simple) ===== */
html[data-theme=luz] #sheet,html[data-theme=funny] #sheet,html[data-theme=simple] #sheet{background:#fff!important;color:var(--ink);box-shadow:0 -10px 40px -12px rgba(15,23,42,.25)}
html[data-theme=luz] #sheetBg,html[data-theme=funny] #sheetBg,html[data-theme=simple] #sheetBg{background:rgba(15,23,42,.4)!important}
html[data-theme=luz] #sheet::after,html[data-theme=funny] #sheet::after,html[data-theme=simple] #sheet::after{background:rgba(15,23,42,.2)}
html[data-theme=luz] .in,html[data-theme=funny] .in,html[data-theme=simple] .in,
html[data-theme=luz] select,html[data-theme=funny] select,html[data-theme=simple] select,
html[data-theme=luz] textarea,html[data-theme=funny] textarea,html[data-theme=simple] textarea,
html[data-theme=luz] #sheet input:not([type=checkbox]):not([type=range]),html[data-theme=funny] #sheet input:not([type=checkbox]):not([type=range]),html[data-theme=simple] #sheet input:not([type=checkbox]):not([type=range]),
html[data-theme=luz] #auth input,html[data-theme=funny] #auth input,html[data-theme=simple] #auth input{background:#fff!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=luz] .btns button:not(.pri):not(.ok),html[data-theme=funny] .btns button:not(.pri):not(.ok),html[data-theme=simple] .btns button:not(.pri):not(.ok),
html[data-theme=luz] .auBtn:not(.pri),html[data-theme=funny] .auBtn:not(.pri),html[data-theme=simple] .auBtn:not(.pri){background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}
html[data-theme=luz] .fxRow,html[data-theme=funny] .fxRow,html[data-theme=simple] .fxRow,html[data-theme=luz] .fxClose,html[data-theme=funny] .fxClose,html[data-theme=simple] .fxClose{background:#f6f7fb!important;border-color:var(--line)!important;color:var(--ink)!important;box-shadow:none!important}
html[data-theme=luz] .fxRow.dan,html[data-theme=funny] .fxRow.dan,html[data-theme=simple] .fxRow.dan{background:#fff1f2!important;border-color:#fecdd3!important}
html[data-theme=luz] .fxRow.dan .t b,html[data-theme=funny] .fxRow.dan .t b,html[data-theme=simple] .fxRow.dan .t b{color:#e11d48}
html[data-theme=luz] .fxIc,html[data-theme=funny] .fxIc,html[data-theme=simple] .fxIc{background:#fff;box-shadow:0 2px 8px -3px rgba(15,23,42,.25)}
html[data-theme=luz] .fxRow .ch,html[data-theme=funny] .fxRow .ch,html[data-theme=simple] .fxRow .ch{stroke:#98a2b3}
html[data-theme=luz] .wtfHd button,html[data-theme=funny] .wtfHd button,html[data-theme=simple] .wtfHd button,
html[data-theme=luz] #chHd button,html[data-theme=funny] #chHd button,html[data-theme=simple] #chHd button,
html[data-theme=luz] #chHd,html[data-theme=funny] #chHd,html[data-theme=simple] #chHd{color:var(--ink)!important}
html[data-theme=luz] .wtfHd button,html[data-theme=funny] .wtfHd button,html[data-theme=simple] .wtfHd button{background:rgba(15,23,42,.06)}
html[data-theme=luz] .wtfHd small,html[data-theme=funny] .wtfHd small,html[data-theme=simple] .wtfHd small,
html[data-theme=luz] #chHd small,html[data-theme=funny] #chHd small,html[data-theme=simple] #chHd small{color:var(--mut)!important}
html[data-theme=luz] .chM:not(.me) .chB,html[data-theme=funny] .chM:not(.me) .chB,html[data-theme=simple] .chM:not(.me) .chB{background:#fff!important;border:1px solid var(--line)!important;box-shadow:0 1px 2px rgba(15,23,42,.06)!important;color:var(--ink)!important;backdrop-filter:none}
html[data-theme=luz] .chM.me .chB,html[data-theme=funny] .chM.me .chB{color:#fff!important}
html[data-theme=luz] #chList,html[data-theme=funny] #chList,html[data-theme=simple] #chList,html[data-theme=luz] body #chat #chList,html[data-theme=funny] body #chat #chList,html[data-theme=simple] body #chat #chList{background:var(--bg1)!important;color:var(--ink)}
html[data-theme=luz] body #chat #chList .th,html[data-theme=funny] body #chat #chList .th,html[data-theme=simple] body #chat #chList .th{border-color:var(--line)}
html[data-theme=luz] #chIn,html[data-theme=funny] #chIn,html[data-theme=simple] #chIn,html[data-theme=luz] #chTx,html[data-theme=funny] #chTx,html[data-theme=simple] #chTx{background:#fff!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=luz] #toast,html[data-theme=funny] #toast,html[data-theme=simple] #toast{background:#111827!important;color:#fff}
html[data-theme=luz] .fxChip,html[data-theme=funny] .fxChip,html[data-theme=simple] .fxChip{color:var(--ink2)}
html[data-theme=luz] .pyCard,html[data-theme=funny] .pyCard,html[data-theme=simple] .pyCard{background:#fff!important;color:var(--ink);border-color:var(--line)}
html[data-theme=luz] .pyCard small,html[data-theme=funny] .pyCard small,html[data-theme=simple] .pyCard small{color:var(--mut)}
html[data-theme=luz] .pyBig input,html[data-theme=funny] .pyBig input,html[data-theme=simple] .pyBig input{color:var(--ink)!important}
html[data-theme=luz] .fxRp,html[data-theme=funny] .fxRp,html[data-theme=luz] .fxGl b,html[data-theme=funny] .fxGl b,html[data-theme=luz] .fxGl i,html[data-theme=funny] .fxGl i{mix-blend-mode:normal}
/* selector de vistas */
.thGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.thCard{position:relative;border-radius:18px;padding:8px;border:2px solid transparent!important;background:rgba(var(--glr),.06)!important;text-align:left!important;color:var(--ink)!important;box-shadow:none!important}
.thCard.on{border-color:var(--p1)!important;background:rgba(var(--p1r),.1)!important}
.thCard b{display:block;font-size:14px;margin:7px 2px 0}.thCard small{display:block;font-size:11.5px;color:var(--mut);margin:1px 2px 2px;font-weight:400}
.thPv{height:78px;border-radius:12px;position:relative;overflow:hidden;border:1px solid rgba(128,128,128,.25)}
.thPv i{position:absolute;display:block;height:16px;border-radius:9px}
.thCard .thOk{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;background:var(--p1);color:var(--onacc,#fff);display:none;place-items:center;font-size:13px;font-weight:700}.thCard.on .thOk{display:grid}
/* retoques tras revisar capturas */
html[data-theme=oscuro] body #chat #chList,html[data-theme=shine] body #chat #chList{background:var(--bg1)!important}
html[data-theme=luz] .auBtn svg,html[data-theme=funny] .auBtn svg,html[data-theme=simple] .auBtn svg{stroke:var(--p1)!important}
html[data-theme=luz] #sheet .shBack,html[data-theme=funny] #sheet .shBack,html[data-theme=simple] #sheet .shBack{background:rgba(15,23,42,.08)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme=luz] #sheet .shBack svg,html[data-theme=funny] #sheet .shBack svg,html[data-theme=simple] #sheet .shBack svg{stroke:var(--ink)!important}
html[data-theme=luz] #sheet h2,html[data-theme=funny] #sheet h2,html[data-theme=simple] #sheet h2,html[data-theme=luz] #sheet h3,html[data-theme=funny] #sheet h3,html[data-theme=simple] #sheet h3{color:var(--ink)}
