.ipt-chat{position:fixed;right:20px;bottom:20px;z-index:9999;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.ipt-chat-fab{position:relative;display:grid;place-items:center;width:62px;height:62px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#1ec8ff,#1e6fff);color:#fff;box-shadow:0 12px 28px rgba(30,111,255,.45);cursor:pointer;transition:transform .15s;animation:iptpulse 2.6s ease-out infinite}
.ipt-chat-fab:hover{transform:translateY(-2px) scale(1.04)}
.ipt-chat-fab svg{width:34px;height:34px;fill:#fff}
.ipt-chat-fab svg .d{fill:#1e8fff}
@keyframes iptpulse{0%{box-shadow:0 12px 28px rgba(30,111,255,.45),0 0 0 0 rgba(30,200,255,.55)}70%{box-shadow:0 12px 28px rgba(30,111,255,.45),0 0 0 14px rgba(30,200,255,0)}100%{box-shadow:0 12px 28px rgba(30,111,255,.45),0 0 0 0 rgba(30,200,255,0)}}
@media (prefers-reduced-motion:reduce){.ipt-chat-fab{animation:none}}
.ipt-chat-dot{position:absolute;top:1px;right:1px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#22c55e}
.ipt-chat.is-open .ipt-chat-fab{display:none}
.ipt-chat-panel{display:flex;flex-direction:column;width:min(380px,calc(100vw - 24px));height:min(580px,calc(100vh - 40px));overflow:hidden;border:1px solid rgba(56,160,255,.3);border-radius:18px;background:#071425;color:#e6f0f8;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.ipt-chat-panel[hidden]{display:none}
.ipt-chat-panel header{display:flex;align-items:center;gap:11px;padding:14px 14px;background:linear-gradient(135deg,#0c2a4a,#0a1a2c);border-bottom:1px solid rgba(255,255,255,.08)}
.ipt-chat-panel header img{width:38px;height:38px;border-radius:11px}
.ipt-chat-panel header div{flex:1;min-width:0}
.ipt-chat-panel header b{display:block;font-size:15px;color:#fff}
.ipt-chat-panel header small{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#9fb3c6}
.ipt-chat-panel header small i{width:7px;height:7px;border-radius:50%;background:#22c55e}
.ipt-chat-panel header button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:rgba(255,255,255,.06);color:#cbd8e4;cursor:pointer}
.ipt-chat-panel header button:hover{background:rgba(255,255,255,.12)}
.ipt-chat-panel svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ipt-chat-log{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px 14px}
.ipt-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5;word-wrap:break-word}
.ipt-msg.bot{align-self:flex-start;background:#10243b;border:1px solid rgba(120,160,200,.18);border-bottom-left-radius:4px}
.ipt-msg.me{align-self:flex-end;background:linear-gradient(135deg,#1e8fff,#1173e6);color:#fff;border-bottom-right-radius:4px}
.ipt-msg.err{border-color:rgba(248,113,113,.5);color:#fecaca}
.ipt-msg a{color:#7cc4ff;text-decoration:underline}
.ipt-msg.typing{display:flex;gap:5px;padding:14px 16px}
.ipt-msg.typing span{width:7px;height:7px;border-radius:50%;background:#7f97ad;animation:iptdot 1.2s infinite}
.ipt-msg.typing span:nth-child(2){animation-delay:.2s}.ipt-msg.typing span:nth-child(3){animation-delay:.4s}
@keyframes iptdot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ipt-chat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px}
.ipt-chat-chips:empty{display:none}
.ipt-chat-chips button{padding:7px 11px;border:1px solid rgba(56,189,248,.4);border-radius:999px;background:rgba(14,116,190,.15);color:#bfe3ff;font:inherit;font-size:12.5px;cursor:pointer}
.ipt-chat-chips button:hover{background:rgba(14,116,190,.3)}
.ipt-chat-form{display:flex;align-items:flex-end;gap:8px;margin:10px 12px 6px;padding:6px 6px 6px 12px;border:1px solid rgba(120,160,200,.3);border-radius:14px;background:#0a1a2c}
.ipt-chat-form:focus-within{border-color:#38bdf8}
.ipt-chat-form textarea{flex:1;max-height:110px;padding:8px 0;border:0;outline:0;resize:none;background:transparent;color:#eef5fb;font:inherit;font-size:14px;line-height:1.4}
.ipt-chat-form textarea::placeholder{color:#6f879c}
.ipt-chat-form button{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:linear-gradient(135deg,#1ec8ff,#1e8fff);color:#fff;cursor:pointer}
.ipt-chat-form button:disabled{opacity:.5;cursor:wait}
.ipt-chat-note{margin:0;padding:0 14px 12px;color:#7f97ad;font-size:11px;line-height:1.4}
.ipt-chat-note a{color:#7cc4ff}
@media (max-width:520px){.ipt-chat{right:12px;bottom:12px}.ipt-chat.is-open{right:0;bottom:0;left:0;top:0}.ipt-chat-panel{width:100vw;height:100dvh;border-radius:0;border:0}}
