/* Hi Poulta page assistant [PAGE-ASSIST] (2026-11-05): the Ask Hi Poulta button and panel on every page.
   Brand kit colours and fonts; sits above the page, under the app's own dialogs (z-index 60+). */
.hpa-fab{position:fixed;right:20px;bottom:20px;z-index:56;display:flex;align-items:center;gap:9px;height:48px;padding:0 18px 0 6px;border:none;border-radius:24px;background:#3d9759;color:#fff;font:600 13.5px/1 'DM Sans',system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 20px rgba(21,32,26,.22)}
.hpa-fab:hover{background:#317a49}
.hpa-fab:focus-visible,.hpa-panel button:focus-visible,.hpa-panel textarea:focus-visible{outline:3px solid #9fd5b1;outline-offset:2px}
.hpa-fab__mark{width:36px;height:36px;border-radius:50%;background:#e6f4ee;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.hpa-fab__mark img{height:25px;width:auto;margin-left:-3px;display:block}
.hpa-fab[hidden],.hpa-panel[hidden]{display:none!important}

.hpa-panel{position:fixed;right:20px;bottom:20px;z-index:58;width:min(400px,calc(100vw - 40px));height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border:1px solid #e3e7ec;border-radius:16px;box-shadow:0 18px 50px rgba(21,32,26,.28);overflow:hidden;font-family:'DM Sans',system-ui,sans-serif;color:#15201a}
.hpa-head{display:flex;align-items:center;gap:11px;padding:13px 14px;background:#1c4a2e;color:#fff}
.hpa-head .hpa-fab__mark{width:34px;height:34px}
.hpa-head .hpa-fab__mark img{height:23px}
.hpa-title{font:800 14.5px/1.2 'Manrope','DM Sans',system-ui,sans-serif;letter-spacing:-.01em}
.hpa-on{font-size:11.5px;color:#c6e6d2;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hpa-headtxt{flex:1 1 auto;min-width:0}
.hpa-iconbtn{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:transparent;color:#fff;font-size:15px;line-height:1;cursor:pointer;flex:0 0 auto}
.hpa-iconbtn:hover{background:rgba(255,255,255,.12)}

.hpa-log{flex:1 1 auto;overflow-y:auto;padding:14px;background:#f7faf8;display:flex;flex-direction:column;gap:10px}
.hpa-msg{max-width:88%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:break-word}
.hpa-msg--me{align-self:flex-end;background:#3d9759;color:#fff;border-bottom-right-radius:4px}
.hpa-msg--bot{align-self:flex-start;background:#fff;border:1px solid #e3e7ec;border-bottom-left-radius:4px}
.hpa-msg--err{align-self:flex-start;background:#fbe9e9;border:1px solid #f1cccc;color:#b23232}
.hpa-status{align-self:flex-start;font-size:11.5px;color:#5b6a61;display:flex;align-items:center;gap:8px}
.hpa-dots{display:inline-flex;gap:3px;background:#3d9759;height:20px;padding:0 8px;border-radius:9px 9px 9px 2px;align-items:center}
.hpa-dots span{width:4px;height:4px;border-radius:50%;background:#fff;animation:hp-dot 1.2s ease-in-out infinite}
.hpa-dots span:nth-child(2){animation-delay:.2s}.hpa-dots span:nth-child(3){animation-delay:.4s}
@keyframes hp-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.hpa-go{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:92%}
.hpa-gobtn{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border:1px solid #3d9759;border-radius:8px;background:#fff;color:#1c4a2e;font:600 12px/1.2 'DM Sans',system-ui,sans-serif;cursor:pointer;text-align:left}
.hpa-gobtn:hover{background:#e6f4ee}

.hpa-chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px 0;background:#fff}
.hpa-chip{padding:6px 11px;border:1px solid #e3e7ec;border-radius:16px;background:#fff;color:#26313f;font:500 12px/1.3 'DM Sans',system-ui,sans-serif;cursor:pointer;text-align:left}
.hpa-chip:hover{border-color:#3d9759;background:#f2f9f5}
.hpa-foot{display:flex;align-items:flex-end;gap:8px;padding:10px 14px 12px;background:#fff;border-top:1px solid #eef1f4}
.hpa-chips+.hpa-foot{border-top:none}
.hpa-input{flex:1 1 auto;min-height:40px;max-height:120px;resize:none;box-sizing:border-box;padding:10px 12px;border:1px solid #cfd6de;border-radius:10px;font:13px/1.4 'DM Sans',system-ui,sans-serif;color:#15201a;background:#fff}
.hpa-send{height:40px;padding:0 15px;border:none;border-radius:10px;background:#3d9759;color:#fff;font:600 13px/1 'DM Sans',system-ui,sans-serif;cursor:pointer;flex:0 0 auto}
.hpa-send:hover{background:#317a49}
.hpa-send--stop{background:#5b6a61}
.hpa-note{padding:0 14px 10px;background:#fff;font-size:10.5px;color:#8a94a3}

@media (max-width:600px){
  .hpa-fab{right:16px;bottom:16px;padding:0 6px;width:48px;justify-content:center}
  .hpa-fab__label{display:none}
  .hpa-panel{right:0;bottom:0;width:100vw;height:100%;max-height:100dvh;border-radius:0;border:none}
}
@media print{.hpa-fab,.hpa-panel{display:none!important}}
