.pa { position: fixed; z-index: 9998; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); font-family: Inter, system-ui, sans-serif; text-align: start; }
.pa * { box-sizing: border-box; }
.pa-launcher { position: relative; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #0a2864 0%, #173f91 100%); box-shadow: 0 14px 34px rgba(2,8,23,.3), inset 0 0 0 1px rgba(255,255,255,.22); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.pa-launcher:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 40px rgba(2,8,23,.36), inset 0 0 0 1px rgba(255,255,255,.3); }
.pa-launcher:focus-visible, .pa button:focus-visible, .pa input:focus-visible { outline: 3px solid #45dfc5; outline-offset: 3px; }
.pa-robot { display: block; width: 51px; height: auto; margin-top: 5px; pointer-events: none; }
.pa-online { position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; background: #34d399; }
.pa-panel { position: absolute; right: 0; bottom: 78px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 110px)); overflow: hidden; border: 1px solid #dce6f2; border-radius: 22px; background: #fff; color: #13213a; box-shadow: 0 25px 80px rgba(10,31,70,.25); }
.pa-panel[hidden] { display: none; }
.pa-header { display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 13px 15px; background: linear-gradient(120deg, #020617, #12357b 58%, #0e7490); color: white; }
.pa-header-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.14); }
.pa-header-icon img { display: block; width: 32px; height: 37px; }
.pa-header div { flex: 1; min-width: 0; }
.pa-header strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.3; }
.pa-header small { display: block; margin-top: 3px; color: #dbeafe; font-size: 10px; line-height: 1.4; }
.pa-close { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255,255,255,.12); color: white; font-size: 25px; line-height: 1; cursor: pointer; }
.pa-close:hover { background: rgba(255,255,255,.23); }
.pa-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; padding: 18px 16px; background: #f7faff; overscroll-behavior: contain; }
.pa-bubble { max-width: 91%; padding: 11px 14px; border-radius: 15px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.pa-bubble-bot { align-self: flex-start; border: 1px solid #e3ebf5; border-bottom-left-radius: 4px; background: white; color: #24324b; }
.pa-bubble-user { align-self: flex-end; border-bottom-right-radius: 4px; background: #1746a3; color: white; }
.pa-source { display: inline-block; margin-top: 8px; color: #1746a3; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.pa-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; border-top: 1px solid #e8eef6; background: white; }
.pa-suggestions button { padding: 7px 10px; border: 1px solid #cfdbef; border-radius: 999px; background: #f4f8ff; color: #174080; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.pa-suggestions button:hover { background: #e8f1ff; }
.pa-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e5edf7; background: white; }
.pa-form input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d4e0ef; border-radius: 11px; background: #fbfdff; color: #14213a; font: inherit; font-size: 13px; }
.pa-form input::placeholder { color: #8190a5; }
.pa-form button { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 11px; background: #1746a3; color: white; cursor: pointer; }
.pa-form button:hover { background: #10357d; }
.pa-form button:disabled { cursor: wait; opacity: .55; }
.pa-form svg { width: 18px; height: 18px; }
.pa .pa-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .pa { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } .pa-launcher { width: 60px; height: 60px; } .pa-robot { width: 48px; } .pa-panel { bottom: 73px; width: calc(100vw - 28px); height: min(590px, calc(100dvh - 105px)); } }
@media (prefers-reduced-motion: reduce) { .pa-launcher { transition: none; } .pa-launcher:hover { transform: none; } }
