#xtree-chat{--xc-ink:#13213a;--xc-accent:#2449cc;--xc-paper:#f5f5f2;--xc-line:#dfe3ea;font-family:Manrope,Heebo,Arial,sans-serif;font-size:15px;line-height:1.5;color:var(--xc-ink)}
#xtree-chat *{box-sizing:border-box}
#xtree-chat div,#xtree-chat form,#xtree-chat p,#xtree-chat ul{margin:0;letter-spacing:normal}
#xtree-chat .xc-panel,#xtree-chat .xc-head{margin:0}
#xtree-chat button{font:inherit;cursor:pointer;touch-action:manipulation}
/* Physical right rail: the left rail holds the WhatsApp and accessibility buttons. */
.xc-launcher{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--consent-offset,0px) + var(--xc-lift,0px));z-index:9998;width:58px;height:58px;padding:0;border:2px solid #fff;border-radius:18px;box-shadow:0 6px 24px #0005;transition:transform .2s ease}
.xc-launcher:hover{transform:translateY(-2px)}
.xc-launcher{display:grid;place-items:center;background:#13213a}
.xc-launcher .xc-bot-icon{width:48px;height:48px}
.xc-avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#ffffff1a}
.xc-avatar .xc-bot-icon{width:32px;height:32px}
.xc-eye{transform-box:fill-box;transform-origin:center;animation:xc-wink 4.5s infinite}
.xc-antenna{animation:xc-glow 2.4s ease-in-out infinite}
.xc-dot{position:absolute;top:-4px;right:-4px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#2fbf71}
.xc-seen .xc-dot{display:none}
.xc-teaser{position:fixed;right:calc(max(18px,env(safe-area-inset-right)) + 70px);bottom:calc(max(18px,env(safe-area-inset-bottom)) + 12px + var(--consent-offset,0px) + var(--xc-lift,0px));z-index:9998;padding:9px 16px;border:1px solid var(--xc-line);border-radius:18px 18px 4px 18px;background:#fff;color:var(--xc-ink);font-weight:700;box-shadow:0 8px 28px #0002;animation:xc-pop .35s ease both}
.xc-panel{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 72px + var(--consent-offset,0px) + var(--xc-lift,0px));z-index:10001;display:flex;flex-direction:column;width:min(380px,calc(100vw - 24px));height:min(600px,calc(100dvh - 120px));overflow:hidden;background:var(--xc-paper);border:1px solid var(--xc-line);border-radius:24px;box-shadow:0 24px 80px #0004;animation:xc-up .25s ease both}
.xc-panel[hidden],.xc-teaser[hidden]{display:none}
.xc-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:var(--xc-ink);color:#fff}
.xc-id{flex:1;min-width:0;display:grid}
.xc-id strong{font-size:16px}
.xc-id span{font-size:12.5px;line-height:1.35;color:#c9d2e6}
.xc-icon{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:#fff}
.xc-icon:hover{background:#ffffff1f}
.xc-icon svg{width:20px;height:20px;fill:currentColor}
.xc-log{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.xc-msg{display:flex}
.xc-user{justify-content:flex-end}
.xc-bubble{max-width:86%;padding:10px 14px;border-radius:18px;background:#fff;border:1px solid var(--xc-line);white-space:pre-line;overflow-wrap:anywhere}
.xc-bot .xc-bubble{border-start-start-radius:6px}
.xc-user .xc-bubble{background:var(--xc-accent);border-color:var(--xc-accent);color:#fff;border-start-end-radius:6px}
.xc-bubble p{margin:0}
.xc-bubble p+p,.xc-bubble ul+p{margin-top:8px}
.xc-bubble ul{margin:8px 0 0;padding-inline-start:18px;display:grid;gap:6px}
.xc-bubble a{color:var(--xc-accent);font-weight:700;text-underline-offset:3px}
.xc-cta{display:inline-block;margin-top:10px;padding:8px 14px;border-radius:12px;background:var(--xc-ink);color:#fff!important;text-decoration:none}
.xc-typing .xc-bubble{display:flex;gap:5px;padding:14px 16px}
.xc-typing i{width:7px;height:7px;border-radius:50%;background:#8b94a7;animation:xc-blink 1.1s infinite ease-in-out}
.xc-typing i:nth-child(2){animation-delay:.15s}.xc-typing i:nth-child(3){animation-delay:.3s}
.xc-in{animation:xc-up .22s ease both}
.xc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 14px 10px}
.xc-chips:empty{display:none}
.xc-chip{min-height:36px;padding:6px 14px;border:1.5px solid var(--xc-accent);border-radius:18px;background:#fff;color:var(--xc-accent);font-weight:700;font-size:14px}
.xc-chip:hover{background:var(--xc-accent);color:#fff}
.xc-form{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--xc-line);background:#fff}
.xc-form input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid var(--xc-line);border-radius:14px;background:var(--xc-paper);font:inherit;font-size:16px;color:var(--xc-ink)}
.xc-form input:focus{outline:2px solid var(--xc-accent);outline-offset:1px}
.xc-send{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:14px;background:var(--xc-accent);color:#fff}
.xc-send svg{width:20px;height:20px;fill:currentColor}
[dir=rtl] .xc-send svg{transform:scaleX(-1)}
#xtree-chat :focus-visible{outline:3px solid #557cff;outline-offset:2px}
@media(max-width:520px){.xc-panel{right:12px;left:12px;width:auto;height:calc(100dvh - 104px - var(--consent-offset,0px) + var(--xc-lift,0px))}.xc-open .xc-teaser{display:none}}
@keyframes xc-wink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.12)}}
@keyframes xc-glow{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes xc-up{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes xc-pop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes xc-blink{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){#xtree-chat *{animation:none!important;transition:none!important}}
