.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chatbot{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:70;font-family:var(--body)}
.chat-fab{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;display:grid;place-items:center;background:linear-gradient(135deg,#1BB36E,#2A60ED);box-shadow:0 14px 30px -10px rgba(0,0,0,.75);transition:transform .2s;margin-left:auto}
.chat-fab:hover{transform:translateY(-2px)}
.chat-fab:focus-visible,.chat-panel button:focus-visible,.chat-panel a:focus-visible,.chat-panel input:focus-visible,.chat-log:focus-visible{outline:3px solid #7FB0FF;outline-offset:2px}
.chat-fab svg{width:28px;height:28px}.chat-fab .ic-close{display:none}
.chatbot.open .ic-chat{display:none}.chatbot.open .ic-close{display:block}
.chat-panel{padding:0;margin:0;position:absolute;right:0;bottom:74px;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 190px));height:min(560px,calc(100dvh - 190px - env(safe-area-inset-bottom,0px)));display:flex;flex-direction:column;background:var(--bg-2,#101721);border:1px solid rgba(255,255,255,.1);border-radius:20px;box-shadow:0 30px 60px -20px rgba(0,0,0,.8);overflow:hidden;color:var(--text,#F4F7FB)}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:var(--card,#16222F);border-bottom:1px solid rgba(255,255,255,.08)}
.chat-head h2{font-size:1rem;margin:0}.chat-head p{margin:0;font-size:.78rem;color:var(--muted,#A3B0C2);line-height:1.3}
.chat-avatar{width:38px;height:38px;border-radius:12px;background:#0C1016;display:grid;place-items:center;flex:none}.chat-avatar svg{width:24px;height:24px}
.chat-x{margin-left:auto;background:none;border:0;color:var(--muted,#A3B0C2);width:36px;height:36px;border-radius:10px;cursor:pointer;display:grid;place-items:center;flex:none}
.chat-x:hover{background:rgba(255,255,255,.06);color:#fff}.chat-x svg{width:20px;height:20px}
.chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;font-size:.9rem;line-height:1.5}
.msg{max-width:88%;padding:10px 13px;border-radius:16px}
.msg p{margin:0}.msg p+p,.msg p+ul,.msg ul+p,.msg p+ol{margin-top:6px}
.msg ul,.msg ol{margin:4px 0 0;padding-left:18px}.msg li{margin:2px 0}
.msg.bot{background:var(--card-2,#1B2938);border-bottom-left-radius:4px;align-self:flex-start}
.msg.user{background:#2A60ED;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.msg .plan-t{font-weight:600;color:#1BB36E;margin-top:8px}.msg .note{color:var(--muted,#A3B0C2);font-size:.82rem}
.chat-ctas{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.chat-btn{display:block;text-align:center;text-decoration:none;font-weight:600;font-size:.85rem;padding:9px 12px;border-radius:999px;word-break:break-all}
.chat-btn.wa{background:#1BB36E;color:#04130b}.chat-btn.mail{border:1px solid rgba(255,255,255,.2);color:#fff}
.chat-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-top:1px solid rgba(255,255,255,.06);scrollbar-width:thin}
.chip{flex:none;background:rgba(27,179,110,.12);color:#7BE0AF;border:1px solid rgba(27,179,110,.4);border-radius:999px;padding:7px 12px;font:inherit;font-size:.8rem;cursor:pointer;white-space:nowrap}
.chip:hover{background:rgba(27,179,110,.22)}
.chat-form{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid rgba(255,255,255,.06)}
.chat-form input{flex:1;min-width:0;background:#0C1016;border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:999px;padding:10px 14px;font:inherit;font-size:16px}
.chat-form button{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:#2A60ED;color:#fff;cursor:pointer;display:grid;place-items:center}.chat-form button svg{width:20px;height:20px}
@media (max-width:480px){.chat-panel{position:fixed;left:8px;right:8px;width:auto;bottom:calc(160px + env(safe-area-inset-bottom,0px));height:calc(100vh - 176px);height:calc(100dvh - 176px - env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.chat-fab{transition:none}}
