/* Human Bot IA V95 | Apariencia por conversación, sin cambiar la interfaz principal. */
#conversation.hb95-chat-style{--hb95-bg:#0b1014;--hb95-panel:#11191f;--hb95-input:#20282d;--hb95-ink:#f1f3f5;--hb95-sub:#b7c1c5;--hb95-in:#202a30;--hb95-in-ink:#fff;--hb95-out:#C02362;--hb95-out-ink:#fff;--hb95-accent:#C02362;color-scheme:dark;}
#conversation.hb95-chat-style.hb95-light{--hb95-bg:#f9fafb;--hb95-panel:#fff;--hb95-input:#e8edf0;--hb95-ink:#17242b;--hb95-sub:#52616c;--hb95-in:#e1e7eb;--hb95-in-ink:#14252c;color-scheme:light;}
#conversation.hb95-chat-style .chat-head{background:var(--hb95-panel)!important;color:var(--hb95-ink)!important;border-bottom:1px solid color-mix(in srgb,var(--hb95-ink) 12%,transparent)}
#conversation.hb95-chat-style .chat-head .headname,
#conversation.hb95-chat-style .chat-head .back,
#conversation.hb95-chat-style .chat-head .head-actions button{color:var(--hb95-ink)!important}
#conversation.hb95-chat-style .chat-head .headsub{color:var(--hb95-sub)!important}
#conversation.hb95-chat-style .chatwall{background-color:var(--hb95-bg)!important;background-image:radial-gradient(color-mix(in srgb,var(--hb95-ink) 8%,transparent) .8px,transparent .8px)!important;color:var(--hb95-ink)!important;}
#conversation.hb95-chat-style .composer{background:var(--hb95-bg)!important;color:var(--hb95-ink)!important}
#conversation.hb95-chat-style .composebox{background:var(--hb95-input)!important;color:var(--hb95-ink)!important}
#conversation.hb95-chat-style .composebox textarea{color:var(--hb95-ink)!important}
#conversation.hb95-chat-style .composebox textarea::placeholder{color:var(--hb95-sub)!important}
#conversation.hb95-chat-style .composebtn{color:var(--hb95-sub)!important}
#conversation.hb95-chat-style .composer .mic{background:var(--hb95-accent)!important;color:var(--hb95-out-ink)!important}
#conversation.hb95-chat-style #messages>.msg:not(.out):not(.hb91-photo-msg):not(.hb91-video-msg):not(.hb58-audio-bubble){background:var(--hb95-in)!important;color:var(--hb95-in-ink)!important}
#conversation.hb95-chat-style #messages>.msg.out:not(.hb91-photo-msg):not(.hb91-video-msg):not(.hb58-audio-bubble){background:var(--hb95-out)!important;color:var(--hb95-out-ink)!important}
#conversation.hb95-chat-style #messages>.msg.out .msgfoot{color:var(--hb95-out-ink)!important;opacity:.85}
#conversation.hb95-chat-style #messages>.msg:not(.out) .msgfoot{color:var(--hb95-in-ink)!important;opacity:.7}
#conversation.hb95-chat-style #messages>.msg .msgfoot .tick-read{color:#71d0ff!important;opacity:1}
#conversation.hb95-chat-style .encryption,
#conversation.hb95-chat-style .datepill{background:var(--hb95-input)!important;color:var(--hb95-ink)!important}
#conversation.hb95-chat-style #messages>.msg.hb58-audio-bubble.out .hb58-voice{background:var(--hb95-out)!important;color:var(--hb95-out-ink)!important}
#conversation.hb95-chat-style #messages>.msg.hb58-audio-bubble:not(.out) .hb58-voice{background:var(--hb95-in)!important;color:var(--hb95-in-ink)!important}
#conversation.hb95-chat-style #messages>.msg.hb58-audio-bubble .hb58-voice button{color:inherit!important}
#conversation.hb95-chat-style #messages>.msg.hb58-audio-bubble .hb58-voice input[type=range]{accent-color:var(--hb95-accent)!important}
#conversation.hb95-chat-style .hb64-audio-msg.out .hb64-audio{color:var(--hb95-out-ink)!important}
#conversation.hb95-chat-style #messages>.msg.hb91-photo-msg,
#conversation.hb95-chat-style #messages>.msg.hb91-video-msg{background:transparent!important;}
/* Editor: accesible en móvil, botones seleccionables y colores sin desplazamiento horizontal. */
#hb95-style-overlay{display:none;position:fixed;inset:0;z-index:2147482000;align-items:center;justify-content:center;background:#000b;backdrop-filter:blur(3px);padding:env(safe-area-inset-top) 10px env(safe-area-inset-bottom)}
#hb95-style-overlay.hb95-open{display:flex}
#hb95-style-dialog{width:min(100%,510px);max-height:min(94dvh,860px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;background:#11191f;color:#f8f9fa;border-radius:18px;border:1px solid #334049;padding:19px 16px 16px;box-shadow:0 20px 65px #0008;}
#hb95-style-dialog h2{font-size:21px;margin:0 0 16px;line-height:1.3}
#hb95-style-dialog .hb95-header{display:flex;justify-content:space-between;align-items:center;gap:10px}
#hb95-style-dialog .hb95-x{width:40px;height:40px;border-radius:50%;background:#26333b;color:#fff;font-size:23px;flex:none}
#hb95-style-dialog .hb95-caption{font-size:13px;color:#c0c9ce;margin:0 0 15px;line-height:1.4}
#hb95-style-dialog .hb95-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:20px}
#hb95-style-dialog .hb95-mode button{background:#202c33;border:2px solid transparent;border-radius:12px;min-height:46px;color:#fff;font-size:13px;font-weight:600;padding:7px 4px}
#hb95-style-dialog .hb95-mode button[aria-pressed=true]{border-color:#f1f6fa;background:#34414a}
#hb95-style-dialog .hb95-colors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 8px;justify-items:center;margin:14px 0 20px}
#hb95-style-dialog .hb95-swatch{width:clamp(47px,15vw,64px);height:clamp(47px,15vw,64px);background:var(--swatch);border:3px solid transparent;border-radius:50%;position:relative;display:grid;place-items:center;color:white;box-shadow:inset 0 0 0 1px #0003}
#hb95-style-dialog .hb95-swatch[aria-pressed=true]{outline:2px solid white;outline-offset:3px}
#hb95-style-dialog .hb95-swatch[aria-pressed=true]::after{content:'✓';display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#121920;font-size:16px;font-weight:900}
#hb95-style-dialog .hb95-actions{position:sticky;bottom:-16px;display:flex;gap:10px;justify-content:flex-end;padding:12px 0 2px;background:#11191f}
#hb95-style-dialog .hb95-actions button{flex:1;min-height:47px;border-radius:12px;background:#30404b;color:#fff;font-size:14px;font-weight:700}
#hb95-style-dialog .hb95-actions button.hb95-save{background:#e91e63}
#hb95-style-dialog .hb95-actions button:disabled{opacity:.5}
#hb95-style-dialog :is(button,input):focus-visible{outline:3px solid #ff7da8;outline-offset:3px}
#hb95-style-dialog .hb95-preview{border-radius:12px;padding:13px 12px;display:grid;gap:9px;justify-items:end;background:#141c22}
#hb95-style-dialog .hb95-preview-msg{background:#e91e63;color:white;border-radius:12px;padding:9px 12px;max-width:90%;font-size:14px}
#hb95-style-dialog .hb95-error{min-height:18px;color:#ffc0d4;font-size:12px;margin:1px 0 0}
@media(max-width:365px){#hb95-style-dialog{padding:14px 12px}#hb95-style-dialog .hb95-colors{gap:12px 4px}}
