#lv-tg-public-chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 9999; font: 15px/1.5 system-ui, sans-serif; color: #17212b; }
#lv-tg-public-chat * { box-sizing: border-box; }
.lv-tg-chat-toggle { border: 0; border-radius: 999px; padding: .75rem 1rem; color: #fff; background: #163c5c; box-shadow: 0 6px 22px #0003; cursor: pointer; font: inherit; }
.lv-tg-chat-toggle:hover, .lv-tg-chat-form button:hover { background: #235b83; }
.lv-tg-chat-panel { width: min(390px, calc(100vw - 2rem)); height: min(560px, calc(100dvh - 6rem)); margin-bottom: .75rem; background: #fff; border: 1px solid #d5dde5; border-radius: 16px; box-shadow: 0 12px 40px #0003; overflow: hidden; display: flex; flex-direction: column; }
.lv-tg-chat-panel[hidden] { display: none; }
.lv-tg-chat-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: #f3f7fa; border-bottom: 1px solid #d5dde5; }
.lv-tg-chat-close { border: 0; background: transparent; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.lv-tg-chat-log { flex: 1; overflow-y: auto; padding: 1rem; }
.lv-tg-chat-log p { margin: 0; white-space: pre-wrap; }
.lv-tg-chat-intro { color: #536675; }
.lv-tg-chat-message { max-width: 95%; margin: .75rem 0; padding: .65rem .8rem; border-radius: 12px; background: #f1f5f7; overflow-wrap: anywhere; }
.lv-tg-chat-question { margin-left: auto; background: #e5f1fa; }
.lv-tg-chat-error { color: #8a2020; background: #fff0ef; }
.lv-tg-chat-progress { color: #536675; }
.lv-tg-chat-sources { display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin-top: .5rem; font-size: .85em; }
.lv-tg-chat-sources a { color: #155b89; text-decoration: underline; }
.lv-tg-chat-form { border-top: 1px solid #d5dde5; padding: .8rem; }
.lv-tg-chat-form label { display: block; font-size: .85em; margin-bottom: .25rem; }
.lv-tg-chat-form > div { display: flex; gap: .4rem; }
.lv-tg-chat-form input { min-width: 0; flex: 1; border: 1px solid #8b9baa; border-radius: 7px; padding: .55rem; font: inherit; }
.lv-tg-chat-form button { border: 0; border-radius: 7px; padding: .55rem .8rem; color: #fff; background: #163c5c; cursor: pointer; font: inherit; }
.lv-tg-chat-form button:disabled { opacity: .6; cursor: wait; }
.lv-tg-chat-human-toggle { margin: 0 .8rem .8rem; border: 0; background: transparent; color: #155b89; text-decoration: underline; text-align: left; cursor: pointer; font: inherit; }
.lv-tg-chat-human-form { border-top: 1px solid #d5dde5; padding: .8rem; display: grid; gap: .35rem; max-height: 55%; overflow: auto; }
.lv-tg-chat-human-form[hidden] { display: none; }
.lv-tg-chat-human-form input[type="email"], .lv-tg-chat-human-form textarea { width: 100%; border: 1px solid #8b9baa; border-radius: 7px; padding: .5rem; font: inherit; }
.lv-tg-chat-human-form textarea { min-height: 4.5rem; resize: vertical; }
.lv-tg-chat-consent { display: flex; gap: .45rem; font-size: .85em; }
.lv-tg-chat-human-form button { justify-self: start; border: 0; border-radius: 7px; padding: .55rem .8rem; color: #fff; background: #163c5c; cursor: pointer; font: inherit; }
.lv-tg-chat-honeypot { position: absolute; left: -10000px; opacity: 0; }
@media (max-width: 480px) { #lv-tg-public-chat { right: .6rem; bottom: .6rem; } .lv-tg-chat-panel { width: calc(100vw - 1.2rem); height: min(560px, calc(100dvh - 5rem)); } }
