
/* TG AI assistant: isolated floating widget, no changes to existing site sections */
.tg-ai-launch{position:fixed;right:20px;bottom:91px;z-index:981;width:60px;height:60px;padding:0;border:2px solid #fff;border-radius:50%;background:#e5f4ea;box-shadow:0 5px 17px #10234540;overflow:hidden;display:grid;place-items:center;transition:transform .18s}
.tg-ai-launch:hover,.tg-ai-launch:focus-visible{transform:translateY(-2px);outline:2px solid #18744e;outline-offset:2px}
.tg-ai-launch img{width:100%;height:100%;object-fit:cover;display:block}
.tg-ai-launch .tg-ai-fallback{font-size:19px;font-weight:700;color:#146846}
.tg-ai-panel[hidden]{display:none!important}
.tg-ai-panel{position:fixed;right:22px;bottom:164px;z-index:982;width:min(350px,calc(100vw - 24px));height:min(440px,calc(100dvh - 270px));min-height:220px;display:flex;flex-direction:column;background:#fff;border:1px solid #d4e5dd;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #1023453b;font:14px/1.45 Arial,Helvetica,sans-serif;color:#15392e}
.tg-ai-head{display:flex;align-items:center;gap:10px;padding:11px 12px;background:#f0f8f3;border-bottom:1px solid #dbe9e0}
.tg-ai-head strong{display:block;font-size:14px}.tg-ai-head small{font-size:11px;color:#617c6c}
.tg-ai-head .tg-ai-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#dcefe4}
.tg-ai-close{margin-left:auto;border:0;background:transparent;font-size:26px;color:#285b45;line-height:1;min-width:36px;min-height:36px}
.tg-ai-messages{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.tg-ai-msg{max-width:93%;border-radius:13px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#eef5f0;align-self:flex-start}
.tg-ai-msg.user{background:#166b4c;color:white;align-self:flex-end}
.tg-ai-form{display:flex;gap:6px;padding:10px;border-top:1px solid #e0eae4;background:white}
.tg-ai-input{flex:1;min-width:0;border:1px solid #b7ccc0;border-radius:9px;padding:10px;font:inherit;color:#15392e;font-size:16px}
.tg-ai-send{border:0;border-radius:9px;background:#176c4b;color:white;font-weight:700;padding:8px 12px;min-width:62px}
.tg-ai-send:disabled{opacity:.55;cursor:wait}
.tg-ai-note{font-size:10px;color:#6b7b70;padding:0 12px 9px;background:white}
body:has(.tg-modal:not([hidden])) .tg-ai-launch,body:has(.tgv-modal:not([hidden])) .tg-ai-launch,body:has(.tg-modal:not([hidden])) .tg-ai-panel,body:has(.tgv-modal:not([hidden])) .tg-ai-panel{visibility:hidden;pointer-events:none}
@media(max-width:700px){.tg-ai-launch{right:9px;bottom:76px;width:60px;height:60px}.tg-ai-panel{right:12px;bottom:148px;width:min(350px,calc(100vw - 24px));height:min(430px,calc(100dvh - 240px))}}
@media(max-height:560px){.tg-ai-panel{bottom:8px;height:calc(100dvh - 96px);min-height:180px}}
