#yrt-chat-root{position:fixed;right:18px;bottom:18px;z-index:99999;font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#111}
#yrt-chat-root *{box-sizing:border-box}
.yrt-bubble{width:58px;height:58px;border-radius:50%;border:0;background:#d71920;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;margin-left:auto}
.yrt-bubble:hover,.yrt-bubble:focus-visible{background:#b0141a;outline:none}
.yrt-panel{position:absolute;right:0;bottom:72px;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 110px);background:#fff;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden}
.yrt-panel[hidden]{display:none}
.yrt-head{background:#111;color:#fff;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid #d71920}
.yrt-title{font-weight:700}
.yrt-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.yrt-log{flex:1;overflow-y:auto;padding:12px;background:#f5f5f5;display:flex;flex-direction:column;gap:8px}
.yrt-msg{max-width:85%;padding:8px 11px;border-radius:12px;white-space:normal;word-wrap:break-word;overflow-wrap:anywhere}
.yrt-assistant{background:#fff;border:1px solid #e2e2e2;align-self:flex-start;border-bottom-left-radius:3px}
.yrt-user{background:#d71920;color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.yrt-user a{color:#fff}
.yrt-assistant a{color:#d71920}
.yrt-typing{color:#888;letter-spacing:2px}
.yrt-actions{display:flex;gap:6px;padding:6px 10px;background:#fff;border-top:1px solid #eee}
.yrt-act{flex:1;text-align:center;font-size:13px;padding:6px;border:1px solid #111;border-radius:6px;color:#111;text-decoration:none}
.yrt-act:hover{background:#111;color:#fff}
.yrt-form{display:flex;gap:6px;padding:10px;border-top:1px solid #eee;background:#fff}
.yrt-input{flex:1;resize:none;border:1px solid #ccc;border-radius:8px;padding:8px;font:inherit;max-height:90px}
.yrt-input:focus{outline:2px solid #d71920;border-color:transparent}
.yrt-send{background:#d71920;color:#fff;border:0;border-radius:8px;padding:0 14px;font-weight:600;cursor:pointer}
.yrt-send:disabled{opacity:.6;cursor:default}
@media (max-width:480px){
#yrt-chat-root{right:12px;bottom:12px}
#yrt-chat-root.yrt-open .yrt-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
#yrt-chat-root.yrt-open .yrt-bubble{display:none}
.yrt-input{font-size:16px}
}