/* Proxion Chat-Assistent */
#pxchat{position:fixed;right:20px;bottom:20px;z-index:40;font:400 15px/1.5 var(--f);color:var(--ink)}
#pxchat *{box-sizing:border-box}
#pxchat button,#pxchat a{font:inherit;-webkit-tap-highlight-color:transparent}
.px-fab{width:58px;height:58px;border-radius:50%;border:0;background:var(--grad);color:#02112e;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 28px rgba(46,123,255,.45);transition:transform .15s}
.px-fab:hover{transform:scale(1.06)}
.px-fab svg{width:26px;height:26px;fill:currentColor}
.px-bubble{position:absolute;right:0;bottom:72px;width:min(270px,calc(100vw - 40px));background:#fff;color:#0a1630;border-radius:16px;padding:14px 38px 14px 16px;font-size:.92rem;box-shadow:0 10px 32px rgba(0,0,0,.4)}
.px-bubble::after{content:"";position:absolute;right:22px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg)}
.px-bubble button.px-x2{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:none;color:#0a1630;cursor:pointer;display:grid;place-items:center}
.px-bubble button.px-x2:hover{background:#e9eef8}
.px-x2 svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.px-fab .ic-x{fill:none;stroke:#02112e;stroke-width:2.4;stroke-linecap:round}
.px-bubble .px-open{all:unset;cursor:pointer;display:block}
.px-panel{position:absolute;right:0;bottom:72px;width:380px;max-width:calc(100vw - 40px);height:min(600px,calc(100vh - 120px));background:var(--bg2);border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 60px rgba(0,0,0,.6);display:flex;flex-direction:column;overflow:hidden}
.px-head{display:flex;align-items:center;gap:8px;padding:14px 14px 14px 18px;background:linear-gradient(160deg,#0b2557,#06173d);border-bottom:1px solid var(--line)}
.px-head h2{margin:0;font-size:1rem;font-weight:600;flex:1;line-height:1.3}
.px-head h2 small{display:block;font-size:.78rem;font-weight:400;color:var(--mut)}
.px-ic{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:var(--ink);cursor:pointer;display:grid;place-items:center;flex:none}
.px-ic:hover{background:rgba(255,255,255,.18)}
.px-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.px-body{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.px-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.px-item{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);cursor:pointer;text-decoration:none}
.px-item:hover{background:rgba(90,217,255,.12);border-color:rgba(90,217,255,.5)}
.px-item svg{width:24px;height:24px;flex:none}
#pxchat .ic-ai{fill:var(--cyan)}#pxchat .ic-wa{fill:#25d366}
#pxchat .ic-mail,#pxchat .ic-tel{fill:none;stroke:var(--cyan);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.px-btn svg{width:18px;height:18px;flex:none}
.px-item span{display:block;font-weight:500}
.px-item small{display:block;color:var(--mut);font-size:.8rem;line-height:1.35}
.px-note{font-size:.82rem;color:var(--mut);margin:0}
.px-note a{color:var(--cyan)}
.px-msg{max-width:88%;padding:10px 14px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.px-msg.bot{align-self:flex-start;background:rgba(255,255,255,.08);border-bottom-left-radius:5px}
.px-msg.me{align-self:flex-end;background:var(--grad);color:#02112e;border-bottom-right-radius:5px}
.px-msg.err{border:1px solid rgba(255,140,140,.5)}
.px-dots{align-self:flex-start;display:flex;gap:5px;padding:14px 16px;background:rgba(255,255,255,.08);border-radius:16px}
.px-dots i{width:7px;height:7px;border-radius:50%;background:var(--mut);animation:pxd 1s infinite ease-in-out}
.px-dots i:nth-child(2){animation-delay:.15s}.px-dots i:nth-child(3){animation-delay:.3s}
@keyframes pxd{0%,80%,100%{opacity:.3}40%{opacity:1}}
.px-chips{align-self:flex-start;display:flex;flex-wrap:wrap;gap:8px}
.px-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;border:1px solid rgba(90,217,255,.5);background:rgba(90,217,255,.1);color:var(--ink);text-decoration:none;cursor:pointer;font-size:.88rem}
.px-chip:hover{background:rgba(90,217,255,.22)}
.px-chip svg{width:16px;height:16px}
.px-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:rgba(2,11,34,.5)}
.px-form textarea{flex:1;resize:none;height:44px;max-height:110px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--ink);padding:10px 14px;font:inherit;font-size:16px}
.px-form textarea::placeholder{color:#8fa3c8}
.px-send{width:44px;height:44px;border-radius:50%;border:0;background:var(--grad);color:#02112e;cursor:pointer;display:grid;place-items:center;flex:none}
.px-send:disabled{opacity:.45;cursor:not-allowed}
.px-send svg{width:20px;height:20px;fill:currentColor}
.px-center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 4px}
.px-qr{width:200px;height:200px;border-radius:12px;background:#fff;padding:6px}
.px-big{font-size:1.4rem;font-weight:600;letter-spacing:.01em}
.px-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:99px;border:1px solid rgba(90,217,255,.5);background:rgba(90,217,255,.1);color:var(--ink);text-decoration:none;cursor:pointer;font-weight:500}
.px-btn:hover{background:rgba(90,217,255,.22)}
.px-btn.p{background:var(--grad);color:#02112e;border-color:transparent}
.px-stack{display:flex;flex-direction:column;gap:10px;width:100%}
.px-ok{color:var(--cyan);font-size:.85rem;min-height:1.2em}
.px-sr{position:absolute;left:-9999px}
@media (max-width:520px){
 #pxchat{right:12px;bottom:12px}
 .px-panel{position:fixed;right:10px;left:10px;bottom:10px;width:auto;max-width:none;height:min(78vh,640px)}
 .px-bubble{bottom:70px}
}
@media (prefers-reduced-motion:reduce){.px-fab{transition:none}.px-dots i{animation:none;opacity:.7}}
@media(max-width:640px){.px-bubble{width:min(230px,calc(100vw - 100px));right:68px;bottom:6px;font-size:.88rem}.px-bubble::after{right:-6px;bottom:20px}}
