/* Polacy Preston | floating conversational AI bubble v6 */
#pp-assist-root,#pp-assist-root *{box-sizing:border-box}
#pp-assist-root{--ai-text:#162e4e;--ai-line:#dbe5f0;position:fixed;right:84px;bottom:22px;z-index:2147483000;color:var(--ai-text);font:13px/1.5 Inter,'Segoe UI',Arial,sans-serif;pointer-events:none}
#pp-assist-root [hidden]{display:none!important}#pp-assist-root :is(button,textarea,a){font:inherit}#pp-assist-root :is(button,textarea,a):focus-visible{outline:3px solid #4a9cfa;outline-offset:3px}
#pp-assist-fab,#pp-assist-panel,#pp-assist-nudge{pointer-events:auto}
#pp-assist-fab{border:1px solid #b0c4e060;background:linear-gradient(120deg,#173d63,#365881);border-radius:40px;box-shadow:0 9px 29px #05234464;min-height:56px;display:flex;gap:10px;align-items:center;padding:5px 14px 5px 5px;text-align:left;color:#fff;cursor:pointer;transition:transform .24s,box-shadow .24s}
#pp-assist-fab:hover{transform:translateY(-3px);box-shadow:0 12px 36px #05234482}.pp-ai-fab-icon{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:50%;font-size:24px;background:linear-gradient(135deg,#f75c9a,#8953ed);box-shadow:inset 0 0 0 1px #ffffff58;animation:pp-ai-glimmer 4s ease-in-out infinite}.pp-ai-fab-text{font-size:12px;font-weight:850;line-height:1.2}.pp-ai-fab-text small{display:block;color:#d4e8f7;font-size:10px;font-weight:500;margin-top:3px}
#pp-assist-nudge{position:absolute;right:0;bottom:70px;width:min(290px,calc(100vw - 36px));display:flex;align-items:flex-start;gap:1px;overflow:hidden;border:1px solid #cfdef0;border-radius:19px;background:#fff;box-shadow:0 16px 50px #0e2b4970;animation:pp-ai-bubble-pop .42s cubic-bezier(.2,1.35,.3,1) both}
#pp-assist-nudge:after{content:'';position:absolute;bottom:-6px;right:25px;width:12px;height:12px;transform:rotate(45deg);background:#fff}
#pp-assist-nudge-open{flex:1;text-align:left;padding:14px 0 14px 16px;color:#25415f;font-weight:800;border:0;background:none;cursor:pointer}#pp-assist-nudge-open small{display:block;font-weight:450;font-size:11px;line-height:1.35;color:#647e97;margin-top:4px}#pp-assist-nudge-close{flex:0 0 35px;padding:6px 7px;border:0;background:none;color:#59748b;font-size:22px;cursor:pointer}
#pp-assist-panel{position:absolute;right:0;bottom:67px;width:min(370px,calc(100vw - 24px));height:min(492px,calc(100dvh - 120px));min-height:260px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d2e3f3;border-radius:25px;background:#fff;box-shadow:0 22px 75px #0c2a486e;animation:pp-ai-bubble-pop .34s cubic-bezier(.22,1.2,.3,1) both;isolation:isolate}
#pp-assist-root.pp-ai-expanded #pp-assist-panel{width:min(470px,calc(100vw - 24px));height:min(680px,calc(100dvh - 100px))}
@keyframes pp-ai-bubble-pop{from{opacity:0;transform:translateY(22px) scale(.75);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes pp-ai-glimmer{50%{box-shadow:0 0 0 5px #bb92f326}}
#pp-assist-header{display:flex;align-items:center;gap:10px;padding:11px 12px;color:#fff;background:linear-gradient(110deg,#15466e,#304c7a 72%,#635ca0);min-height:66px;flex:0 0 auto}.pp-ai-avatar{height:39px;width:39px;flex:0 0 39px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:22px;background:linear-gradient(135deg,#fa70aa,#8862e7)}.pp-ai-title{flex:1;min-width:0}.pp-ai-title strong{display:block;font-weight:850;font-size:12px;letter-spacing:.01em;line-height:1.28;color:#fff}.pp-ai-title small{font-size:10px;color:#dfeaf7;display:flex;align-items:center;gap:4px;margin-top:4px}.pp-ai-status-dot{width:6px;height:6px;background:#ffe6ab;border-radius:99px;display:inline-block}.pp-ai-status-dot.online{background:#3fe5af}.pp-ai-status-dot.error{background:#ff9090}.pp-ai-head-actions{display:flex;gap:4px}#pp-assist-header button{display:grid;place-items:center;width:28px;height:28px;border:1px solid #ffffff42;background:#ffffff19;border-radius:9px;color:#fff;font-size:18px;cursor:pointer}#pp-assist-header button:hover{background:#ffffff3a}
.pp-ai-conversation{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 12px 8px;background:linear-gradient(150deg,#f2f8ff,#fff 70%,#f9f7ff);scrollbar-width:thin;scrollbar-color:#b6cde0 transparent}.pp-ai-welcome{padding:10px 2px 13px}.pp-ai-welcome-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:13px;color:#fff;font-size:23px;background:linear-gradient(135deg,#468fc3,#915ada);margin-bottom:14px}.pp-ai-welcome strong{font-size:17px;color:#19446a}.pp-ai-welcome h3{color:#162e4d;font-size:18px;font-weight:850;letter-spacing:-.03em;line-height:1.15;margin:5px 0}.pp-ai-welcome p{color:#5c7188;font-size:12px;line-height:1.52;margin:9px 0}.pp-ai-welcome small{color:#8297ac;font-size:10px}
.pp-ai-row{display:flex;align-items:flex-end;gap:7px;margin:8px 0}.pp-ai-message-icon{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:9px;background:linear-gradient(140deg,#3875a4,#7b5ed9);color:#fff}.pp-ai-bubble{max-width:84%;padding:9px 11px;border-radius:16px 16px 16px 4px;background:#fff;border:1px solid #dfebf6;color:#1d3853;box-shadow:0 3px 10px #16344f0b;overflow-wrap:anywhere}.pp-ai-bubble p{margin:0;white-space:pre-wrap;font-size:12px;line-height:1.56}.pp-ai-row.user{flex-direction:row-reverse}.pp-ai-row.user .pp-ai-message-icon{display:none}.pp-ai-row.user .pp-ai-bubble{background:linear-gradient(135deg,#2c6eaa,#5c5dab);border-color:transparent;color:#fff;border-radius:16px 16px 4px 16px}.pp-ai-error .pp-ai-bubble{background:#fff9ee;border-color:#ffdbb1;color:#775333}.pp-ai-error .pp-ai-bubble a{display:block;color:#225c9d;font-weight:800;margin-top:6px}.pp-ai-typing{display:flex;gap:4px;align-items:center;min-height:27px}.pp-ai-typing i{display:block;width:6px;height:6px;border-radius:50%;background:#92a7bb;animation:pp-ai-typing 1s ease-in-out infinite alternate}.pp-ai-typing i:nth-child(2){animation-delay:.15s}.pp-ai-typing i:nth-child(3){animation-delay:.3s}@keyframes pp-ai-typing{to{opacity:.25;transform:translateY(-3px)}}
#pp-assist-quick{display:flex;gap:6px;padding:7px 10px;overflow:auto;flex:0 0 auto;border-top:1px solid #e9f0f7;background:#fbfdff;scrollbar-width:none}#pp-assist-quick button{flex:0 0 auto;white-space:nowrap;font-size:10px;font-weight:700;color:#2e5978;border:1px solid #d9e7f1;background:#fff;border-radius:22px;padding:7px 9px;cursor:pointer}
#pp-assist-form{background:#fff;padding:6px 10px;flex:0 0 auto}.pp-ai-compose{display:flex;gap:5px;align-items:flex-end;border:1px solid #d6e5f2;border-radius:15px;background:#f5faff;padding:3px 3px 3px 11px;min-height:43px}.pp-ai-compose:focus-within{border-color:#85bdf2;box-shadow:0 0 0 3px #6eafeb20}#pp-assist-query{background:transparent;border:0!important;outline:0;resize:none;min-height:32px;max-height:104px;padding:7px 0;flex:1;min-width:0;line-height:20px;font-size:12px!important;color:#173c5b}#pp-assist-submit{width:35px;height:35px;flex:0 0 35px;border:0;border-radius:11px;color:#fff;background:linear-gradient(135deg,#2c7eae,#8061dc);cursor:pointer}#pp-assist-submit:disabled{opacity:.45;cursor:wait}
#pp-assist-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 12px 3px;background:#fff;min-height:20px}#pp-assist-toolbar button{font-size:10px;background:transparent;border:0;color:#71869b;cursor:pointer;padding:1px}#pp-assist-toolbar button:hover{text-decoration:underline}#pp-assist-contacts{display:flex;gap:4px;justify-content:center;flex-wrap:wrap;padding:3px 8px 7px;border-top:1px solid #f0f4f9}#pp-assist-contacts a{padding:3px 6px;border-radius:9px;font-size:10px;color:#2f628e;font-weight:700;text-decoration:none;background:#f2f8fd}#pp-assist-contacts a:hover{background:#e5f1fc}#pp-assist-footer{text-align:center;padding:3px 12px 8px;background:#fff;color:#91a1b2;font-size:9px}#pp-assist-footer a{color:#5687b4}.pp-assist-sr{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;white-space:nowrap}
@media(max-width:900px){#pp-assist-root{right:80px;bottom:calc(78px + env(safe-area-inset-bottom,0px))}#pp-assist-fab{width:53px;height:53px;padding:3px;min-height:0;justify-content:center;border-radius:50%}#pp-assist-fab .pp-ai-fab-icon{width:45px;height:45px;flex:0 0 45px}#pp-assist-fab .pp-ai-fab-text{display:none}#pp-assist-panel{position:fixed;right:10px;bottom:calc(141px + env(safe-area-inset-bottom,0px));width:min(355px,calc(100vw - 20px));height:min(490px,calc(100dvh - 170px));min-height:210px;border-radius:23px}#pp-assist-root.pp-ai-expanded #pp-assist-panel{width:calc(100vw - 20px);height:calc(100dvh - 166px)}#pp-assist-nudge{bottom:67px;right:-58px}}
@media(max-width:480px){#pp-assist-panel{height:min(430px,calc(100dvh - 180px));bottom:calc(144px + env(safe-area-inset-bottom,0px));width:min(340px,calc(100vw - 20px))}#pp-assist-header{min-height:58px;padding:8px 10px}.pp-ai-avatar{width:33px;height:33px;flex-basis:33px;border-radius:12px}.pp-ai-title strong{font-size:11px}.pp-ai-head-actions{gap:2px}#pp-assist-header button{height:25px;width:25px;font-size:16px}.pp-ai-conversation{padding:8px 10px}.pp-ai-welcome{padding-top:4px}.pp-ai-welcome h3{font-size:17px}#pp-assist-footer{font-size:8px}#pp-assist-nudge{width:min(280px,calc(100vw - 35px))}}
@media(max-height:550px){#pp-assist-panel{max-height:calc(100dvh - 20px);height:calc(100dvh - 20px);bottom:10px}.pp-ai-welcome small{display:none}}
@media(prefers-reduced-motion:reduce){#pp-assist-root *{animation:none!important;transition:none!important}}

#pp-assist-history-screen{position:absolute;top:66px;left:0;right:0;bottom:0;z-index:5;display:flex;flex-direction:column;background:#f9fcff;padding:12px;overflow:auto}#pp-assist-history-screen[hidden]{display:none!important}.pp-ai-history-title{display:flex;align-items:center;justify-content:space-between;color:#214869;margin-bottom:12px}.pp-ai-history-title button{border:0;background:#eaf3fa;color:#284c70;border-radius:10px;width:28px;height:28px;cursor:pointer}.pp-ai-history-choice{display:flex;flex-direction:column;gap:5px;text-align:left;padding:11px;border:1px solid #deebf5;border-radius:13px;background:#fff;margin:5px 0;cursor:pointer;color:#264863}.pp-ai-history-choice strong{font-size:11px;font-weight:750}.pp-ai-history-choice small{font-size:10px;color:#7890a8}.pp-ai-history-choice:hover{border-color:#7db7df;background:#f1f8ff}
