#htg-assistant{--htg-accent:#f36c21;position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:2147483647;font-family:system-ui,-apple-system,Segoe UI,Arial}
#htg-assistant *{box-sizing:border-box}
.htg-teaser{position:absolute;right:calc(50% + 46px);bottom:8px;transform:translateY(-20px);background:#fff;color:#111;border:1px solid var(--htg-accent);border-radius:999px;padding:10px 14px;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.15);cursor:pointer;opacity:0;pointer-events:none;white-space:nowrap}
.htg-teaser.show{opacity:1;pointer-events:auto}
.htg-teaser.marquee{animation:htg-marquee 2.2s ease-in-out infinite alternate}
@keyframes htg-marquee{0%{transform:translate(-6px,-20px)}100%{transform:translate(6px,-20px)}}
.htg-toggle{position:relative;width:64px;height:64px;border-radius:999px;border:none;background:var(--htg-accent);box-shadow:0 10px 30px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center}
.htg-toggle .htg-icon{width:30px;height:30px;filter:invert(1) brightness(100%)}
.htg-window{display:none;position:absolute;left:50%;bottom:80px;transform:translateX(-50%);width:min(92vw,400px);height:70vh;max-height:700px;background:#fff;border-radius:16px;box-shadow:0 18px 60px rgba(0,0,0,.3);overflow:hidden;border:1px solid #eee}
.htg-window.open{display:flex;flex-direction:column}
.htg-header{background:linear-gradient(135deg,var(--htg-accent),#2b2b2b);color:#fff;padding:10px 12px;display:flex;justify-content:space-between;align-items:center}
.htg-header .left{display:flex;align-items:center;gap:8px}
.header-logo{width:24px;height:24px;border-radius:6px;object-fit:contain;background:#fff}
.htg-header .t{font-weight:700}.htg-close{background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer}
.htg-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:10px 12px;overflow:auto;background:#fafafa}
.welcome{font-size:14px;color:#333}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:480px){.cards{grid-template-columns:1fr}}
.card{border:1px solid #eee;border-radius:12px;background:#fff;padding:12px;text-decoration:none;color:#111}
.card .n{font-weight:700;font-size:13px}.card .d{font-size:12px;color:#555;margin-top:4px}
.msgs{display:flex;flex-direction:column;gap:10px}
.msg{display:inline-block;max-width:85%;padding:10px 12px;border-radius:14px;line-height:1.35;font-size:14px;white-space:pre-wrap}
.msg.user{align-self:flex-end;background:var(--htg-accent);color:#fff;border-bottom-right-radius:4px}
.msg.bot{align-self:flex-start;background:#fff;border:1px solid #eee;border-bottom-left-radius:4px}
.htg-form{display:flex;gap:8px;padding:10px;border-top:1px solid #eee;background:#fff}
.input{flex:1;border:1px solid #e5e7eb;border-radius:12px;padding:12px;font-size:14px}
.send{border:0;padding:12px 14px;border-radius:12px;background:var(--htg-accent);color:#fff;cursor:pointer}
.contact{display:flex;gap:8px;align-items:center;padding:10px;border-top:1px solid #eee;background:#fff}
.contact .btn{flex:1;text-align:center;border:1px solid var(--htg-accent);border-radius:12px;padding:10px 12px;text-decoration:none;color:#111}
.zalo-img{width:18px;height:18px;vertical-align:-3px;margin-right:6px}
@media(min-width:1024px){.htg-toggle{width:60px;height:60px}.htg-window{width:400px;height:640px}}
@supports (height: 100dvh){.htg-window{height:70dvh}}