.jdg-chat-btn{position:fixed;right:22px;bottom:86px;z-index:60;display:flex;align-items:center;gap:8px;background:#102e3d;color:#fff;border:0;border-radius:30px;padding:13px 18px;font:600 14px Arial,sans-serif;box-shadow:0 5px 25px #102e3d40;cursor:pointer}
.jdg-chat-btn:focus-visible{outline:2px solid #d2ee42;outline-offset:3px}
.jdg-chat-btn svg{width:18px;height:18px}
.jdg-chat{position:fixed;right:22px;bottom:150px;z-index:61;width:370px;max-width:calc(100vw - 32px);height:min(560px,calc(100vh - 180px));display:flex;flex-direction:column;background:#fffef8;color:#102e3d;border:1px solid #c5d0c4;border-radius:14px;box-shadow:0 18px 50px #0b202b38;font:14px/1.5 Arial,sans-serif;overflow:hidden}
.jdg-chat[hidden]{display:none}
.jdg-chat-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#102e3d;color:#fff}
.jdg-chat-head strong{font-size:15px}.jdg-chat-head span{display:block;font-size:11px;color:#c9d6d2}
.jdg-chat-x{background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}
.jdg-chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.jdg-msg{max-width:86%;padding:10px 12px;border-radius:12px;white-space:pre-wrap;word-wrap:break-word}
.jdg-msg.bot{background:#eef1ea;align-self:flex-start;border-bottom-left-radius:4px}
.jdg-msg.user{background:#d2ee42;align-self:flex-end;border-bottom-right-radius:4px}
.jdg-msg a{color:#102e3d;text-decoration:underline}
.jdg-msg.typing{color:#617078;font-style:italic}
.jdg-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #d8ddd5;background:#fff}
.jdg-chat-form textarea{flex:1;resize:none;height:42px;max-height:110px;padding:10px;border:1px solid #9bafaa;border-radius:8px;font:inherit;color:#102e3d}
.jdg-chat-form button,.jdg-pre button{background:#102e3d;color:#fff;border:0;border-radius:8px;padding:0 16px;font:600 14px Arial,sans-serif;cursor:pointer}
.jdg-chat-form button:disabled,.jdg-pre button:disabled{opacity:.55;cursor:default}
.jdg-pre{padding:16px;overflow-y:auto;flex:1}
.jdg-pre p{margin:0 0 12px}
.jdg-pre label{display:block;font-size:12px;font-weight:600;margin:0 0 10px}
.jdg-pre input{display:block;box-sizing:border-box;width:100%;margin-top:4px;padding:10px;border:1px solid #9bafaa;border-radius:6px;font:inherit;color:#102e3d;background:#fff}
.jdg-pre input[aria-invalid=true]{border-color:#b3261e}
.jdg-pre .err{color:#b3261e;font-size:12px;min-height:16px;margin:2px 0 8px}
.jdg-pre button{width:100%;height:42px}
.jdg-pre .note{font-size:12px;color:#617078;margin:10px 0 0}
.jdg-pre .hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.jdg-chat-foot{font-size:11px;color:#617078;padding:0 12px 8px;background:#fff}
@media(max-width:600px){.jdg-chat-btn{bottom:84px;right:16px;padding:12px 15px}.jdg-chat{right:8px;left:8px;width:auto;max-width:none;bottom:140px;height:calc(100vh - 160px);height:calc(100dvh - 160px)}}
