.qlg-chat { --qlg: #111111; --qlg-accent: #a8ce3b; position: fixed; right: 20px; bottom: 20px; z-index: 999999; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2937; }
.qlg-chat * { box-sizing: border-box; }
.qlg-chat .qlg-launcher { width: 66px !important; height: 66px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 3px solid var(--qlg-accent) !important; background: #fff !important; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25) !important; display: flex !important; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s; line-height: 1 !important; }
.qlg-chat .qlg-launcher:hover { transform: scale(1.06); }
.qlg-chat .qlg-launcher img { width: 48px !important; height: auto !important; max-width: none !important; margin: 0 !important; display: block !important; border: 0 !important; box-shadow: none !important; }
.qlg-chat .qlg-icon { font-size: 28px; }
.qlg-chat { display: flex; align-items: center; gap: 10px; }
.qlg-tagline { display: flex; align-items: center; gap: 4px; background: #fff; color: var(--qlg); border: 1.5px solid var(--qlg-accent); border-radius: 20px; padding: 7px 8px 7px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap; animation: qlg-pop .4s ease-out 1.5s both; }
.qlg-tagline span { cursor: pointer; }
.qlg-tagline button { background: none !important; border: 0 !important; padding: 0 4px !important; margin: 0 !important; font-size: 18px; line-height: 1; color: #9ca3af !important; cursor: pointer; min-width: 0 !important; box-shadow: none !important; }
.qlg-chat.is-open .qlg-tagline { display: none; }
@keyframes qlg-pop { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.qlg-panel { display: none; position: absolute; right: 0; bottom: 80px; width: 360px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 110px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden; flex-direction: column; }
.qlg-chat.is-open .qlg-panel { display: flex; }
.qlg-head { background: #fff; color: var(--qlg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 4px solid var(--qlg-accent); }
.qlg-logo { height: 44px; width: auto; flex: 0 0 auto; }
.qlg-head > div { flex: 1; min-width: 0; }
.qlg-head strong { display: block; font-size: 15px; }
.qlg-head span { font-size: 12px; color: #4b5563; }
.qlg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--qlg-accent); margin-right: 5px; vertical-align: 0; }
.qlg-call { text-decoration: none; font-size: 18px; }
.qlg-close { background: none; border: 0; color: var(--qlg); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.qlg-body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f6f4; display: flex; flex-direction: column; gap: 8px; }
.qlg-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; }
.qlg-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.qlg-bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.qlg-user { background: var(--qlg); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.qlg-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9ca3af; animation: qlg-b 1s infinite; }
.qlg-typing span:nth-child(2) { animation-delay: .15s; } .qlg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes qlg-b { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.qlg-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #fff; border-top: 1px solid #e5e7eb; scrollbar-width: none; }
.mac-quick::-webkit-scrollbar, .qlg-quick::-webkit-scrollbar { display: none; }
.qlg-chip { flex: 0 0 auto; border: 1.5px solid var(--qlg-accent); color: var(--qlg); background: #fff; border-radius: 16px; padding: 5px 11px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.qlg-chip:hover { background: var(--qlg-accent); color: var(--qlg); }
.qlg-input { display: flex; border-top: 1px solid #e5e7eb; margin: 0; }
.qlg-input input { flex: 1; border: 0; padding: 13px 14px; font-size: 15px; outline: none; background: #fff; color: #111; min-width: 0; }
.qlg-input button { border: 0; background: none; color: var(--qlg); font-weight: bold; font-size: 20px; padding: 0 16px; cursor: pointer; }
.qlg-lead { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; margin: 0; }
.qlg-lead input, .qlg-lead select, .qlg-lead textarea { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: #111; }
.qlg-lead button { background: var(--qlg-accent); color: var(--qlg); border: 0; border-radius: 8px; padding: 10px; font-weight: 600; cursor: pointer; }
.qlg-lead button:disabled { opacity: .6; }
.qlg-err { color: #b91c1c; font-size: 13px; }
.qlg-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
@media (max-width: 480px) {
  .qlg-tagline { font-size: 13px; padding: 6px 6px 6px 11px; max-width: calc(100vw - 110px); white-space: normal; }
  .qlg-chat { right: 12px; bottom: 12px; }
  .qlg-chat.is-open .qlg-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .qlg-chat.is-open .qlg-launcher { display: none; }
}
