.tg-chat{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(400px,calc(100vw - 32px));height:min(580px,calc(100dvh - 48px));max-height:none;max-width:none;padding:0;border:1px solid #8294a540;border-radius:20px;background:var(--paper,#fff);color:var(--ink,#172b3a);box-shadow:0 18px 80px #0003}
.tg-chat::backdrop{background:#0b192333;backdrop-filter:blur(3px)}
.tg-chat[open]{display:flex;flex-direction:column}
.tg-chat *{box-sizing:border-box}
.tg-chat header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 12px 18px;border-bottom:1px solid #8294a530;gap:8px;flex-shrink:0}
html[lang] .tg-chat h2{font-size:17px;margin:0;letter-spacing:0;line-height:1.4;text-wrap:wrap}
.tg-chat small{display:block;font-size:11px;opacity:.7;margin-top:3px}
.tg-chat button{font:inherit;cursor:pointer}
.tg-chat-controls{display:flex;align-items:center;flex-shrink:0;gap:2px}
.tg-chat-close,.tg-chat-reset{display:grid;place-items:center;border:0;background:transparent;color:inherit;width:44px;height:44px;padding:0;border-radius:50%}
.tg-chat-close{font-size:25px!important}
.tg-chat-reset{opacity:.7}
.tg-chat-close:hover,.tg-chat-reset:hover{background:#8294a514}
.tg-chat-log{flex:1;min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain}
html[lang] .tg-chat-message{font-size:14px;line-height:1.6;white-space:pre-wrap;margin:0 0 14px;overflow-wrap:anywhere;color:inherit}
.tg-chat-message[data-role=user]{margin-left:24px;padding:10px 14px;background:#213b5614;border-radius:14px}
.tg-chat-sources{display:flex;flex-direction:column;font-size:11px;gap:5px;margin:-6px 0 20px}
.tg-chat-sources a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.tg-chat-chips,.tg-chat-chips-extra{display:flex;flex-wrap:wrap;gap:7px}
.tg-chat-chips button{background:transparent;color:inherit;border:1px solid #8294a550;border-radius:18px;padding:9px 11px;min-height:40px;font-size:12px;line-height:1.45;text-align:left}
.tg-chat-chips button:hover{background:#8294a510}
.tg-chat-more{width:100%}
.tg-chat-more summary{font-size:12px;color:var(--muted,#71808a);padding:10px 2px;cursor:pointer;width:fit-content;min-height:40px}
.tg-chat form{padding:12px 16px;border-top:1px solid #8294a530;flex-shrink:0}
.tg-chat-input-row{display:flex;align-items:flex-end;gap:8px}
.tg-chat textarea{resize:none;min-width:0;flex:1;height:46px;border:1px solid #8294a550;border-radius:12px;background:transparent;color:inherit;padding:11px;font-family:inherit;font-size:14px;line-height:22px}
.tg-chat-send{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:0;border-radius:12px;background:#213b56;color:white;padding:0}
.tg-chat-send:disabled{opacity:.5;cursor:wait}
.tg-chat-note{font-size:10px;line-height:1.5;color:var(--muted,#71808a);margin-top:7px}
.tg-chat-note summary{cursor:pointer;padding:4px 0;width:fit-content}
.tg-chat-note p{font-size:10px;line-height:1.5;margin-top:5px;color:inherit;max-height:68px;overflow:auto}
.tg-chat-status{font-size:12px;line-height:1.5;padding:0 18px 8px;color:inherit;flex-shrink:0}
.tg-chat-status:empty{display:none}
.tg-chat-launch:focus-visible,.tg-sales-launch:focus-visible,.tg-chat :focus-visible{outline:3px solid #79b8ed;outline-offset:2px}
html[data-theme=dark] .tg-chat{background:#101b27;color:#e9eef5}
html[data-theme=dark] .tg-chat-message[data-role=user]{background:#a4c9eb18}
.tg-contact-dock{position:fixed;right:24px;bottom:24px;z-index:80;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 32px)}
.tg-chat-launch,.tg-sales-launch{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:10px 13px;gap:8px;white-space:nowrap;border:1px solid #ffffff40;border-radius:40px;background:#213b56;color:#fff;box-shadow:0 6px 24px #0002;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;cursor:pointer}
.tg-chat-launch svg{width:17px;height:17px;flex-shrink:0}
.tg-sales-launch img{width:54px;height:22px;object-fit:contain;flex-shrink:0}
.tg-chat-indicator{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#63d396;animation:tg-chat-blink 2.6s ease-in-out infinite}
@keyframes tg-chat-blink{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:600px){
 .tg-chat{right:10px;bottom:max(var(--tg-chat-bottom,10px),env(safe-area-inset-bottom));width:min(360px,calc(100vw - 20px));height:min(480px,78dvh,calc(var(--tg-chat-viewport,100dvh) - 20px));border-radius:18px}
 .tg-chat header{padding:10px 10px 10px 14px;gap:4px}
 html[lang] .tg-chat h2{font-size:15px;line-height:1.4}
 .tg-chat small{font-size:10px;line-height:1.4}
 .tg-chat-log{padding:14px}
 html[lang] .tg-chat-message{font-size:13px;line-height:1.6;margin-bottom:12px}
 .tg-chat-chips button{font-size:11px;padding:9px 10px;min-height:40px}
 .tg-chat form{padding:10px 12px}
 .tg-chat textarea{font-size:16px;height:44px;padding:10px;line-height:22px}
 .tg-chat-send{height:44px;width:44px;flex-basis:44px}
 .tg-chat-status{padding-inline:14px;font-size:11px}
 .tg-contact-dock{right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
 .tg-chat-launch,.tg-sales-launch{padding:10px 11px;font-size:11px;gap:6px}
 .tg-sales-launch img{width:50px;height:21px}
}
@media(max-height:420px){.tg-chat small{display:none}.tg-chat header{padding-block:4px}.tg-chat form{padding-block:8px}.tg-chat-note{margin-top:3px}}
@media(prefers-reduced-motion:reduce){.tg-chat-indicator{animation:none}}
