#uls-sdg-chat{position:fixed;right:22px;bottom:22px;z-index:100;font:13px/1.6 'DM Sans',system-ui,sans-serif;color:#172144}#uls-sdg-chat [hidden]{display:none!important}#uls-sdg-chat button{cursor:pointer;font:inherit}#uls-sdg-chat button:disabled{opacity:.55;cursor:wait}.sdg-chat-launcher{padding:16px 24px;border:0;border-radius:30px;background:#1029a8;color:#fff;box-shadow:0 6px 24px #101c4b33;font-weight:700!important}.sdg-chat-panel{width:410px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100dvh - 44px);border:1px solid #dce2f0;border-radius:20px;box-shadow:0 16px 60px #101c4b33;background:#fff;display:flex;flex-direction:column;overflow:hidden}.sdg-chat-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:linear-gradient(115deg,#1029a8,#101c4b);color:#fff;gap:12px}.sdg-chat-heading strong{font-size:16px}.sdg-chat-heading small{display:block;font-size:10px;color:#dce3ff}.sdg-chat-close{border:0;background:#ffffff20;color:#fff;border-radius:50%;width:32px;height:32px;font-size:23px!important}.sdg-chat-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px;background:#f5f7fb}.sdg-chat-welcome{padding:18px;background:#fff;border:1px solid #e0e5ee;border-radius:14px}.sdg-chat-welcome p{margin:8px 0 0;color:#647087;font-size:12px}.sdg-chat-message{margin:14px 25px 0 0;padding:13px 15px;border:1px solid #e0e5ee;border-radius:14px 14px 14px 3px;background:#fff;overflow-wrap:anywhere}.sdg-chat-message.user{margin-left:25px;margin-right:0;border-radius:14px 14px 3px 14px;background:#1029a8;color:#fff;border-color:#1029a8}.sdg-chat-message small{font-size:10px;opacity:.8}.sdg-chat-message p{white-space:pre-wrap;margin:5px 0 0}.sdg-chat-status{font-size:12px;color:#805119;background:#fff7e8;padding:10px 18px;margin:0}.sdg-chat-form{padding:14px 18px;margin:0;border-top:1px solid #e0e5ee}.sdg-chat-form label{display:block;font-size:11px;color:#647087;margin-bottom:6px}.sdg-chat-compose{display:flex;align-items:flex-end;gap:10px}.sdg-chat-compose textarea{font:inherit;flex:1;min-width:0;resize:vertical;max-height:110px;min-height:64px;border:1px solid #d4dced;border-radius:10px;padding:10px}.sdg-chat-compose button{border:0;border-radius:9px;padding:11px;background:#1029a8;color:#fff}.sdg-chat-footer{display:flex;flex-wrap:wrap;gap:8px 12px;padding:10px 18px;border-top:1px solid #e0e5ee;font-size:10px;color:#647087}.sdg-chat-footer a,.sdg-chat-footer button{font-size:10px!important;color:#1029a8;border:0;background:none;padding:0}#uls-sdg-chat :focus-visible{outline:3px solid #d49e28;outline-offset:3px}@media(max-width:550px){#uls-sdg-chat{right:12px;bottom:12px}.sdg-chat-panel{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.sdg-chat-launcher{padding:14px 20px}}

/* Keep the widget independent from page and admin form styles. */
#uls-sdg-chat .sdg-chat-panel{width:400px;height:560px;border-radius:18px;box-shadow:0 18px 65px #101c4b40}
#uls-sdg-chat .sdg-chat-heading{padding:17px 18px}
.sdg-chat-brand{display:flex;gap:11px;align-items:center;min-width:0}
.sdg-chat-brand img{background:white;border-radius:50%;padding:3px;flex-shrink:0}
#uls-sdg-chat .sdg-chat-heading strong{font-size:15px;letter-spacing:0}
#uls-sdg-chat .sdg-chat-heading small{margin-top:3px;font-size:10px}
#uls-sdg-chat .sdg-chat-close{flex-shrink:0}
#uls-sdg-chat .sdg-chat-history{padding:18px;background:linear-gradient(180deg,#f4f6fc,#fafbfe)}
#uls-sdg-chat .sdg-chat-welcome{padding:20px;border:0;box-shadow:0 2px 12px #101c4b08}
.sdg-chat-kicker{display:block;font-size:9px;letter-spacing:1.3px;font-weight:700;color:#1029a8;margin-bottom:12px}
#uls-sdg-chat .sdg-chat-welcome strong{display:block;font-size:19px;line-height:1.35;letter-spacing:-.4px}
#uls-sdg-chat .sdg-chat-welcome p{font-size:12px;margin:10px 0 18px}
.sdg-chat-welcome>small{display:block;color:#6b7488;font-size:10px;line-height:1.6;margin-top:16px}
.sdg-chat-suggestions{display:grid;gap:8px}
#uls-sdg-chat .sdg-chat-suggestions button{display:flex;justify-content:space-between;gap:12px;text-align:left;background:#f6f8ff;border:1px solid #e1e6f5;border-radius:9px;padding:11px 12px;color:#243779;font-size:12px;line-height:1.4}
#uls-sdg-chat .sdg-chat-suggestions button:hover{background:#eaf0ff;border-color:#bdc9f0}
#uls-sdg-chat .sdg-chat-form{padding:13px 16px 8px}
#uls-sdg-chat .sdg-chat-form label{margin:0 0 7px;font-size:11px;font-weight:600}
#uls-sdg-chat .sdg-chat-compose{align-items:center;gap:8px;padding:4px 5px 4px 10px;border:1px solid #d4dced;border-radius:12px;background:#fff}
#uls-sdg-chat .sdg-chat-compose:focus-within{border-color:#3855ca;box-shadow:0 0 0 3px #1029a812}
#uls-sdg-chat .sdg-chat-compose textarea{padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;resize:none;height:48px;min-height:48px;line-height:1.6;outline:none;font:inherit;color:#172144}
#uls-sdg-chat .sdg-chat-compose textarea:focus-visible{outline:none}
#uls-sdg-chat .sdg-chat-compose button{display:grid;place-items:center;width:36px;height:36px;min-height:0;flex-shrink:0;padding:0;margin:0;border-radius:9px;font-size:22px;font-weight:600;line-height:1}
#uls-sdg-chat .sdg-chat-compose button:disabled{opacity:1;background:#e9edf6;color:#98a3bc;cursor:default}
.sdg-chat-input-hint{display:flex;justify-content:space-between;gap:8px;color:#7b8598;font-size:9px;margin-top:6px}
#uls-sdg-chat .sdg-chat-footer{align-items:center;padding:9px 16px;background:#fafbfe;font-size:10px;gap:8px}
#uls-sdg-chat .sdg-chat-footer span{flex:1}
#uls-sdg-chat .sdg-chat-status{padding:9px 18px;font-size:11px;background:#edf2ff;color:#31478a}
#uls-sdg-chat .sdg-chat-status[data-state=error]{background:#fff0ed;color:#9b3324}
@media(max-width:550px){#uls-sdg-chat .sdg-chat-panel{width:calc(100vw - 24px);height:min(560px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.sdg-chat-input-hint>span:first-child{font-size:0}.sdg-chat-input-hint>span:first-child:after{content:'Up to 1000 characters';font-size:9px}}

#uls-sdg-chat .sdg-chat-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;border:0;border-radius:50%;line-height:1;background:#ffffff20;color:#fff;box-sizing:border-box;transition:background .15s}
#uls-sdg-chat .sdg-chat-close svg{display:block;flex-shrink:0;pointer-events:none}
#uls-sdg-chat .sdg-chat-close:hover{background:#ffffff35}

#uls-sdg-chat .sdg-chat-message a{color:#1029a8;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;font-weight:600}#uls-sdg-chat .sdg-chat-message a:hover{color:#071968}

#uls-sdg-chat .sdg-chat-brand img{width:42px;height:42px;min-width:42px;object-fit:contain;object-position:center;flex:0 0 42px;border-radius:0;padding:2px;background:transparent;box-sizing:border-box}

#uls-sdg-chat .sdg-chat-brand img{border-radius:5px}
