/* ═══════════ Prism AI Agent — chat widget ═══════════ */
#prismAgentFab{position:fixed;bottom:1.25rem;left:1.25rem;z-index:60;background:#059669;color:#fff;border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;gap:.65rem;padding:.7rem 1rem;border-radius:9999px;box-shadow:0 10px 30px -8px rgba(5,150,105,.6);cursor:pointer;font:inherit;transition:.15s}
#prismAgentFab:hover{background:#047857;transform:scale(1.04)}
#prismAgentFab .t2{font-size:.8rem;font-weight:800;display:block;line-height:1.2}
#prismAgentFab .dot{width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25);flex:none}
#prismAgentNudge{position:fixed;bottom:4.6rem;left:1.25rem;z-index:60;background:#fff;color:#064e3b;font-size:.8rem;font-weight:600;padding:.55rem .85rem;border-radius:.9rem;box-shadow:0 8px 24px -8px rgba(0,0,0,.25);border:1px solid #d1fae5;display:none;max-width:230px}
#prismAgentNudge.show{display:block;animation:paPop .3s ease}
@keyframes paPop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

#prismAgentPanel{position:fixed;z-index:70;bottom:5.4rem;left:1.25rem;width:min(370px,calc(100vw - 2.5rem));height:min(540px,calc(100dvh - 8rem));background:#fff;border-radius:1.1rem;box-shadow:0 24px 70px -12px rgba(0,0,0,.35);display:none;flex-direction:column;overflow:hidden;border:1px solid #e5e7eb;font-family:inherit}
#prismAgentPanel.open{display:flex;animation:paPop .25s ease}
.pa-head{background:linear-gradient(135deg,#059669,#047857);color:#fff;padding:.85rem 1rem;display:flex;align-items:center;gap:.7rem}
.pa-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05rem;flex:none;border:1px solid rgba(255,255,255,.35)}
.pa-head .tt{line-height:1.25}
.pa-head .tt b{font-size:.92rem;display:block}
.pa-head .tt span{font-size:.72rem;opacity:.85;display:flex;align-items:center;gap:.3rem}
.pa-head .tt .on{width:7px;height:7px;border-radius:50%;background:#4ade80;display:inline-block}
.pa-x{margin-left:auto;background:rgba(255,255,255,.15);border:0;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:1rem;line-height:1}
.pa-x:hover{background:rgba(255,255,255,.3)}
.pa-body{flex:1;overflow-y:auto;padding:1rem .9rem;display:flex;flex-direction:column;gap:.6rem;background:#f8fafc}
.pa-msg{max-width:82%;padding:.6rem .8rem;border-radius:1rem;font-size:.86rem;line-height:1.45;animation:paPop .2s ease}
.pa-msg.bot{background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:.3rem;align-self:flex-start;color:#1e293b;box-shadow:0 2px 8px -4px rgba(0,0,0,.08)}
.pa-msg.user{background:#059669;color:#fff;border-bottom-right-radius:.3rem;align-self:flex-end}
.pa-msg.typing{display:flex;gap:4px;padding:.8rem .9rem}
.pa-msg.typing i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:paBlink 1.1s infinite}
.pa-msg.typing i:nth-child(2){animation-delay:.18s}
.pa-msg.typing i:nth-child(3){animation-delay:.36s}
@keyframes paBlink{0%,60%,100%{opacity:.25}30%{opacity:1}}
.pa-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding:.1rem .9rem .8rem;background:#f8fafc}
.pa-chip{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:.78rem;font-weight:600;padding:.42rem .75rem;border-radius:9999px;cursor:pointer;font-family:inherit;transition:.12s}
.pa-chip:hover{background:#059669;color:#fff;border-color:#059669}
.pa-chip.sel{background:#059669;color:#fff;border-color:#059669;box-shadow:0 0 0 2px rgba(5,150,105,.3)}
.pa-chip.done{background:#065f46;color:#fff;border-color:#065f46;font-weight:800}
.pa-foot{border-top:1px solid #e5e7eb;padding:.6rem;display:flex;gap:.5rem;background:#fff}
.pa-foot input{flex:1;border:1px solid #d1d5db;border-radius:9999px;padding:.6rem .9rem;font-size:.86rem;font-family:inherit;outline:none}
.pa-foot input:focus{border-color:#059669;box-shadow:0 0 0 3px rgba(5,150,105,.12)}
.pa-send{background:#059669;border:0;color:#fff;width:40px;height:40px;border-radius:50%;cursor:pointer;flex:none;display:flex;align-items:center;justify-content:center}
.pa-send:hover{background:#047857}
.pa-send:disabled{opacity:.5;cursor:default}
.pa-note{font-size:.68rem;color:#94a3b8;text-align:center;padding:.35rem;background:#fff;border-top:1px solid #f1f5f9}
@media(max-width:480px){#prismAgentPanel{left:.75rem;bottom:5rem;width:calc(100vw - 1.5rem)}#prismAgentFab{left:.75rem;bottom:.9rem}#prismAgentNudge{left:.75rem}}