#yd-webchat-root{position:fixed;right:22px;bottom:22px;z-index:2147483000;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827}
#yd-webchat-root *{box-sizing:border-box}
.yd-chat-launcher{position:relative;width:54px;height:54px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 30px rgba(15,23,42,.24);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.yd-chat-launcher:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.28);background:#0b1220}
.yd-chat-launcher:focus-visible{outline:3px solid rgba(99,102,241,.28);outline-offset:3px}
.yd-chat-launcher svg{width:23px;height:23px;display:block}
.yd-chat-panel{position:absolute;right:0;bottom:68px;width:min(376px,calc(100vw - 28px));height:min(536px,calc(100vh - 112px));background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 26px 70px rgba(15,23,42,.22);overflow:hidden;display:none;flex-direction:column}
.yd-chat-panel[data-open="true"]{display:flex;animation:ydChatIn .16s ease-out}
@keyframes ydChatIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.yd-chat-header{padding:15px 16px;background:#111827;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px}
.yd-chat-brand{display:flex;align-items:center;gap:10px;min-width:0}
.yd-chat-mark{width:32px;height:32px;border-radius:9px;background:#fff;color:#111827;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex:0 0 auto}
.yd-chat-title{font-size:14px;font-weight:750;line-height:1.2;letter-spacing:.01em}
.yd-chat-subtitle{font-size:11.5px;color:#cbd5e1;margin-top:3px;white-space:nowrap}
.yd-chat-close{width:30px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.yd-chat-close:hover{background:rgba(255,255,255,.14)}
.yd-chat-messages{flex:1;overflow:auto;padding:16px;background:#f8fafc;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.yd-chat-bubble{max-width:84%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.yd-chat-bubble.visitor{align-self:flex-end;background:#111827;color:#fff;border-bottom-right-radius:5px;box-shadow:0 1px 0 rgba(255,255,255,.08) inset}
.yd-chat-bubble.operator{align-self:flex-start;background:#fff;color:#111827;border:1px solid #e5e7eb;border-bottom-left-radius:5px}
.yd-chat-bubble.system{align-self:center;background:transparent;color:#64748b;font-size:12px;text-align:center;max-width:94%;padding:5px 8px}
.yd-chat-compose{padding:11px 12px 12px;border-top:1px solid #e5e7eb;background:#fff;display:flex;gap:8px;align-items:flex-end}
.yd-chat-input{flex:1;min-height:42px;max-height:110px;resize:none;border:1px solid #d1d5db;border-radius:12px;padding:10px 12px;font:inherit;font-size:13.5px;line-height:1.45;outline:none;background:#fff;color:#111827}
.yd-chat-input::placeholder{color:#9ca3af}.yd-chat-input:focus{border-color:#9ca3af;box-shadow:0 0 0 3px rgba(15,23,42,.05)}
.yd-chat-send{height:42px;border:0;border-radius:11px;background:#111827;color:#fff;padding:0 14px;font-size:13px;font-weight:700;cursor:pointer}
.yd-chat-send:hover{background:#0b1220}.yd-chat-send:disabled{opacity:.45;cursor:not-allowed}
.yd-chat-badge{position:absolute;right:-3px;top:-3px;min-width:18px;height:18px;padding:0 5px;border:2px solid #fff;border-radius:9px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:none;align-items:center;justify-content:center}
@media(max-width:640px){#yd-webchat-root{right:12px;bottom:12px}.yd-chat-launcher{width:52px;height:52px}.yd-chat-panel{position:fixed;left:10px;right:10px;bottom:76px;width:auto;height:min(70vh,560px);border-radius:16px}.yd-chat-header{padding:14px}.yd-chat-messages{padding:14px}.yd-chat-compose{padding:10px}}
@media(prefers-reduced-motion:reduce){.yd-chat-panel[data-open="true"]{animation:none}.yd-chat-launcher{transition:none}}