.hpa-widget{--ink:#0b2241;--red:#b92136;--edge:#cbd5df;position:fixed;z-index:99990;right:max(18px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));font:15px/1.45 system-ui,-apple-system,sans-serif;color:var(--ink);text-align:left;color-scheme:light}
.hpa-widget *{box-sizing:border-box;letter-spacing:normal}
.hpa-widget [hidden]{display:none!important}
.hpa-widget button,.hpa-widget input,.hpa-widget select{font:inherit;text-transform:none;line-height:1.3}
.hpa-widget button{cursor:pointer}
.hpa-launch,.hpa-main{background:var(--ink);color:white;border:0;border-radius:24px;padding:11px 18px;font-weight:700!important}
.hpa-launch{box-shadow:0 3px 18px #061b3750;border:1px solid #fff9;display:flex;align-items:center;gap:8px;min-height:44px}
.hpa-launch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.hpa-panel{width:min(365px,calc(100vw - 28px));max-height:min(630px,calc(100dvh - 70px));background:#fff;border-radius:16px;overflow:hidden;border:1px solid #aebfce;box-shadow:0 8px 40px #061b3740;display:flex;flex-direction:column}
.hpa-head{border-top:4px solid var(--red);background:var(--ink);color:#fff;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.hpa-head strong{font-size:19px}.hpa-head small{display:block;font-size:12px;color:#d6e2f0}.hpa-close{background:transparent;color:#fff;border:1px solid #8190a2;border-radius:50%;width:34px;height:34px;font-size:20px!important;line-height:1!important}
.hpa-body{overflow-y:auto;overscroll-behavior:contain;padding:16px;min-height:0}
.hpa-log{display:grid;gap:8px}
.hpa-msg{margin:0;border-radius:12px;padding:10px 13px;background:#f0f4f8;color:var(--ink);max-width:95%;font-size:15px}
.hpa-user{justify-self:end;background:var(--ink);color:white}
.hpa-widget a{color:#164d78;text-decoration:underline}.hpa-msg a{display:block;margin-top:6px;font-weight:650}
.hpa-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.hpa-chip,.hpa-back{background:white;color:var(--ink);border:1px solid #aabccf;border-radius:16px;padding:7px 10px;font-size:13px!important;font-weight:650!important}
.hpa-compose{border-top:1px solid var(--edge);display:flex;gap:7px;padding:10px;background:white}
.hpa-compose input,.hpa-form input:not([type=checkbox]),.hpa-form select{color:#10243b!important;background:#fff!important;border:1px solid #a3b1c0!important;box-shadow:none!important;border-radius:6px;padding:9px;width:100%;min-width:0;height:auto}
.hpa-compose input{flex:1}.hpa-compose button,.hpa-form .hpa-submit{border:0;color:white;background:var(--red);font-weight:700;border-radius:7px;padding:9px 13px}
.hpa-form{display:grid;gap:9px}.hpa-form h3{color:var(--ink);line-height:1.15;font:700 21px/1.2 system-ui;margin:0}.hpa-form p{margin:0 0 4px;color:#47596a;font-size:14px}
.hpa-form label{display:grid;gap:4px;font-weight:650;font-size:13px;color:var(--ink)}.hpa-form .hpa-legal{display:flex;align-items:flex-start;gap:8px;font-weight:450;line-height:1.5}.hpa-form input[type=checkbox]{margin-top:3px;width:16px;height:16px;flex:none;accent-color:var(--red)}
.hpa-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hpa-back{justify-self:start}.hpa-widget :focus-visible{outline:3px solid #357cae;outline-offset:2px}
.hpa-widget button:disabled{opacity:.65;cursor:wait}.hpa-error{color:#9b1529!important}.hpa-trap{position:absolute!important;left:-9999px!important}
@media(max-width:520px){.hpa-widget{right:10px;bottom:max(10px,env(safe-area-inset-bottom))}.hpa-panel{max-height:calc(100dvh - 56px);width:min(365px,calc(100vw - 20px))}.hpa-widget input,.hpa-widget select{font-size:16px!important}.hpa-launch{padding:9px 13px;font-size:14px!important}}
.hpa-widget .hpa-avatar{display:block;flex:none;object-fit:cover;border-radius:50%;background:#ece4da;border:1px solid #d7cfc5}
.hpa-widget .hpa-launch{margin-left:auto;padding:5px 15px 5px 5px;gap:9px;min-height:46px}
.hpa-launch .hpa-avatar{width:36px;height:36px}
.hpa-head{background:white;color:var(--ink);border-top:3px solid var(--red);border-bottom:1px solid #e5e9ed;padding:12px 14px;gap:10px;justify-content:flex-start}
.hpa-head .hpa-avatar{width:48px;height:48px}
.hpa-head strong{display:block;font-size:18px;line-height:1.25}
.hpa-head small{color:#526278}
.hpa-widget .hpa-close{margin-left:auto;align-self:flex-start;background:transparent;color:#42516a;border:0;width:36px;height:36px;padding:0}
.hpa-close:hover{background:#edf1f5}
.hpa-compose{align-items:center;padding:9px 12px 11px;gap:6px}
.hpa-compose input{min-height:40px}
.hpa-widget .hpa-compose button{display:grid;place-items:center;border-radius:50%;width:40px;height:40px;padding:0;flex:none}
.hpa-compose svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hpa-welcome{width:min(310px,calc(100vw - 24px));animation:hpa-welcome-in .24s ease-out}
.hpa-welcome .hpa-head{border-bottom:0;padding-bottom:3px}
.hpa-welcome .hpa-body{padding:5px 17px 9px}
.hpa-welcome .hpa-msg{background:transparent;border-radius:0;padding:0;max-width:100%;font-size:16px;line-height:1.45}
.hpa-welcome .hpa-chips{display:none}
.hpa-welcome .hpa-compose{border-top:0;padding-top:0}
@keyframes hpa-welcome-in{from{opacity:0;transform:translateX(15px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.hpa-welcome{animation:none}}
@media(max-width:520px){.hpa-panel.hpa-welcome{width:min(282px,calc(100vw - 20px))}.hpa-welcome .hpa-head .hpa-avatar{width:42px;height:42px}}

.hpa-typing:not(:empty){display:inline-block;margin-top:8px;padding:5px 10px;color:#45596c;background:#f0f4f8;border-radius:9px;font-size:13px;line-height:1.4}
