:root{--pchub-ai-red:#c9162c;--pchub-ai-red2:#e6253d;--pchub-ai-ink:#0b1220;--pchub-ai-muted:#667085;--pchub-ai-line:#e4e7ec}
.pchub-ai-root{position:fixed;right:22px;bottom:22px;z-index:999980;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#101828}
.pchub-ai-root *{box-sizing:border-box}
.pchub-ai-launcher{display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:8px 17px 8px 9px;border:0;border-radius:999px;background:linear-gradient(135deg,#b91127,#df2039);color:#fff;box-shadow:0 16px 42px rgba(139,10,29,.32);font-weight:800;font-size:14px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.pchub-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 20px 50px rgba(139,10,29,.38)}
.pchub-ai-launcher:focus-visible{outline:3px solid rgba(201,22,44,.3);outline-offset:3px}
.pchub-ai-launcher-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.14)}
.pchub-ai-launcher-icon svg{width:22px;height:22px}.pchub-ai-launcher>i{width:7px;height:7px;border-radius:50%;background:#55e38c;box-shadow:0 0 0 3px rgba(85,227,140,.16)}
.pchub-ai-panel{position:absolute;right:0;bottom:68px;width:min(390px,calc(100vw - 24px));height:min(650px,calc(100vh - 110px));display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;border:1px solid rgba(15,23,42,.12);border-radius:22px;background:#fff;box-shadow:0 26px 85px rgba(15,23,42,.25);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.pchub-ai-root.is-open .pchub-ai-panel{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.pchub-ai-header{display:grid;grid-template-columns:42px minmax(0,1fr) 34px 34px;gap:10px;align-items:center;padding:15px 14px;background:linear-gradient(120deg,#09111f,#111b2b);color:#fff}
.pchub-ai-avatar{position:relative;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#df2039,#9d0e21);font-weight:900;box-shadow:inset 0 1px rgba(255,255,255,.15)}
.pchub-ai-avatar span{font-size:19px}.pchub-ai-avatar i{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border:2px solid #0d1726;border-radius:50%;background:#4ade80}
.pchub-ai-header strong{display:block;font-size:14px;line-height:1.2}.pchub-ai-header small{display:flex;gap:6px;align-items:center;margin-top:5px;color:#aeb9c8;font-size:10.5px}.pchub-ai-header small span{width:5px;height:5px;border-radius:50%;background:#4ade80}
.pchub-ai-icon-button{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font-size:20px;line-height:1;cursor:pointer}.pchub-ai-icon-button:hover{background:rgba(255,255,255,.13)}
.pchub-ai-security{grid-row:2;display:grid;place-items:center;padding:22px;background:linear-gradient(180deg,#f8fafc,#fff)}.pchub-ai-security[hidden]{display:none!important}
.pchub-ai-security-card{width:100%;padding:24px;border:1px solid #e4e7ec;border-radius:18px;background:#fff;text-align:center;box-shadow:0 10px 32px rgba(15,23,42,.06)}
.pchub-ai-security-icon{width:42px;height:42px;margin:0 auto 12px;display:grid;place-items:center;border-radius:12px;background:#ecfdf3;color:#067647;font-weight:900}.pchub-ai-security-card strong{display:block;font-size:15px}.pchub-ai-security-card p{margin:7px auto 17px;max-width:290px;color:#667085;font-size:12px;line-height:1.55}.pchub-ai-security-card .cf-turnstile{display:flex;justify-content:center;min-height:65px}.pchub-ai-security.is-checking{opacity:.78}
.pchub-ai-conversation{min-height:0;display:flex;flex-direction:column;background:linear-gradient(180deg,#fff 0,#fbfcfe 100%)}
.pchub-ai-messages{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 10px;scrollbar-width:thin;scrollbar-color:#d0d5dd transparent}
.pchub-ai-message{display:flex;flex-direction:column;margin:0 0 12px}.pchub-ai-message-user{align-items:flex-end}.pchub-ai-message-assistant{align-items:flex-start}
.pchub-ai-bubble{max-width:88%;padding:11px 13px;border-radius:16px;font-size:13px;line-height:1.55;word-break:break-word}
.pchub-ai-message-assistant .pchub-ai-bubble{border:1px solid #e7eaf0;border-bottom-left-radius:6px;background:#fff;color:#344054;box-shadow:0 5px 16px rgba(15,23,42,.045)}
.pchub-ai-message-user .pchub-ai-bubble{border-bottom-right-radius:6px;background:#111827;color:#fff}
.pchub-ai-bubble a{color:#b41127!important;text-decoration:underline!important;text-underline-offset:2px}.pchub-ai-message-user .pchub-ai-bubble a{color:#fff!important}
.pchub-ai-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.pchub-ai-actions a{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054!important;text-decoration:none!important;font-size:11px;font-weight:800}.pchub-ai-actions a.is-primary{border-color:#c9162c;background:#c9162c;color:#fff!important}.pchub-ai-actions a:hover{transform:translateY(-1px)}
.pchub-ai-quick{display:flex;gap:7px;overflow-x:auto;padding:4px 16px 13px;scrollbar-width:none}.pchub-ai-quick::-webkit-scrollbar{display:none}.pchub-ai-quick button{flex:0 0 auto;min-height:33px;padding:0 10px;border:1px solid #e0e4ea;border-radius:999px;background:#fff;color:#475467;font-size:10.5px;font-weight:800;cursor:pointer}.pchub-ai-quick button:hover{border-color:#c9162c;color:#b41127}.pchub-ai-quick button:disabled{opacity:.5;cursor:not-allowed}
.pchub-ai-composer{display:grid;grid-template-columns:minmax(0,1fr) 43px;gap:9px;align-items:end;padding:11px 12px;border-top:1px solid #eaecf0;background:#fff}.pchub-ai-composer textarea{width:100%;min-height:43px;max-height:110px;resize:none;padding:11px 12px;border:1px solid #d0d5dd!important;border-radius:13px!important;background:#f9fafb!important;color:#101828!important;font:inherit;font-size:13px!important;line-height:1.45!important;box-shadow:none!important}.pchub-ai-composer textarea:focus{border-color:#c9162c!important;outline:0!important;box-shadow:0 0 0 3px rgba(201,22,44,.09)!important}.pchub-ai-composer button{width:43px;height:43px;display:grid;place-items:center;border:0;border-radius:12px;background:#c9162c;color:#fff;cursor:pointer}.pchub-ai-composer button svg{width:20px;height:20px}.pchub-ai-composer button:disabled{opacity:.45;cursor:not-allowed}
.pchub-ai-disclaimer{padding:0 13px 10px;background:#fff;color:#98a2b3;font-size:9.5px;line-height:1.45;text-align:center}
.pchub-ai-typing{display:flex!important;gap:4px;align-items:center;min-width:54px}.pchub-ai-typing i{width:6px;height:6px;border-radius:50%;background:#98a2b3;animation:pchubAiDot 1.1s infinite ease-in-out}.pchub-ai-typing i:nth-child(2){animation-delay:.14s}.pchub-ai-typing i:nth-child(3){animation-delay:.28s}@keyframes pchubAiDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:640px){.pchub-ai-root{right:12px;bottom:12px}.pchub-ai-launcher{min-height:50px;padding-right:14px}.pchub-ai-panel{position:fixed;right:10px;left:10px;bottom:10px;width:auto;height:min(720px,calc(100dvh - 20px));border-radius:20px}.pchub-ai-root.is-open .pchub-ai-launcher{opacity:0;pointer-events:none}.pchub-ai-bubble{max-width:92%}}
@media(prefers-reduced-motion:reduce){.pchub-ai-panel,.pchub-ai-launcher,.pchub-ai-actions a{transition:none!important}.pchub-ai-typing i{animation:none!important}}
.pchub-ai-root.needs-security .pchub-ai-conversation,.pchub-ai-root.needs-security .pchub-ai-composer,.pchub-ai-root.needs-security .pchub-ai-disclaimer{display:none}
.pchub-ai-disclaimer a{color:#667085!important;text-decoration:underline!important;text-underline-offset:2px}
/* v0.4.0 human handoff / qualified lead capture */
.pchub-ai-actions button{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054!important;text-decoration:none!important;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.pchub-ai-actions button.is-primary{border-color:#c9162c;background:#c9162c;color:#fff!important}.pchub-ai-actions button:hover{transform:translateY(-1px)}
.pchub-ai-lead-sheet{position:absolute;z-index:12;inset:72px 0 0;background:rgba(248,250,252,.98);backdrop-filter:blur(10px);padding:16px;overflow:auto}.pchub-ai-lead-sheet[hidden]{display:none!important}.pchub-ai-lead-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.pchub-ai-lead-head strong{display:block;color:#101828;font-size:16px}.pchub-ai-lead-head small{display:block;margin-top:4px;color:#667085;font-size:11px;line-height:1.45}.pchub-ai-lead-head button{width:34px;height:34px;border:1px solid #e4e7ec;border-radius:10px;background:#fff;color:#475467;font-size:20px;cursor:pointer}.pchub-ai-lead-sheet form{padding:16px;border:1px solid #e4e7ec;border-radius:17px;background:#fff;box-shadow:0 10px 35px rgba(15,23,42,.07)}.pchub-ai-lead-sheet label{display:block;margin:0 0 11px;color:#344054;font-size:11px;font-weight:800}.pchub-ai-lead-sheet input[type=text],.pchub-ai-lead-sheet input[type=email],.pchub-ai-lead-sheet input[type=tel],.pchub-ai-lead-sheet textarea{width:100%;margin-top:6px;padding:10px 11px;border:1px solid #d0d5dd!important;border-radius:10px!important;background:#fff!important;color:#101828!important;font:inherit!important;font-size:12px!important;line-height:1.45!important;box-shadow:none!important}.pchub-ai-lead-sheet input:focus,.pchub-ai-lead-sheet textarea:focus{border-color:#c9162c!important;outline:none!important;box-shadow:0 0 0 3px rgba(201,22,44,.08)!important}.pchub-ai-lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pchub-ai-lead-consent{display:flex!important;align-items:flex-start;gap:8px;font-weight:500!important;line-height:1.45!important}.pchub-ai-lead-consent input{margin-top:2px}.pchub-ai-lead-submit{width:100%;min-height:42px;border:0;border-radius:11px;background:#c9162c;color:#fff;font-weight:900;cursor:pointer}.pchub-ai-lead-submit:disabled{opacity:.55;cursor:wait}.pchub-ai-lead-feedback{min-height:18px;margin:2px 0 9px;color:#667085;font-size:11px}.pchub-ai-lead-feedback.is-error{color:#b42318}.pchub-ai-lead-feedback.is-success{color:#067647;font-weight:700}
@media(max-width:520px){.pchub-ai-lead-sheet{inset:70px 0 0;padding:12px}.pchub-ai-lead-grid{grid-template-columns:1fr}}
.pchub-ai-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
