#webgate-ai-root{--wgai-accent:#fad4db;--wgai-background:#200f38;--wgai-surface:#331c53;--wgai-text:#fff;--wgai-bottom:24px;font-family:inherit;font-size:15px;line-height:1.55;color:var(--wgai-text);position:relative;z-index:999999}
#webgate-ai-root *,#webgate-ai-root *::before,#webgate-ai-root *::after{box-sizing:border-box}
#webgate-ai-root [hidden]{display:none!important}
#webgate-ai-root button,#webgate-ai-root input,#webgate-ai-root textarea{font:inherit;letter-spacing:normal;text-transform:none}
#webgate-ai-root button{appearance:none;cursor:pointer;margin:0;border:0;box-shadow:none;text-decoration:none;min-height:0;line-height:1.4;font-weight:500}
#webgate-ai-root a{color:inherit;text-decoration:none}
#webgate-ai-root button:disabled{opacity:.5;cursor:wait}
#webgate-ai-root :is(button,a,textarea):focus-visible{outline:2px solid var(--wgai-accent);outline-offset:4px}
#webgate-ai-root svg{display:block;width:20px;height:20px;flex-shrink:0}
#webgate-ai-root p,#webgate-ai-root h2{margin:0;font:inherit;color:inherit}
#webgate-ai-root .wgai-launcher{position:fixed;right:24px;bottom:calc(var(--wgai-bottom) + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:16px 22px;border:1px solid #ffffff26;border-radius:999px;background:var(--wgai-background);color:var(--wgai-text);box-shadow:0 8px 30px #200f3833;transition:background .25s ease,color .25s ease,transform .25s ease;z-index:999999}
#webgate-ai-root .wgai-launcher svg{color:var(--wgai-accent)}
#webgate-ai-root .wgai-launcher:hover{background:var(--wgai-accent);color:var(--wgai-background);transform:translateY(-2px)}
#webgate-ai-root .wgai-launcher:hover svg{color:currentColor}
#webgate-ai-root[data-position=left] .wgai-launcher{right:auto;left:24px}
#webgate-ai-root .wgai-dialog{position:fixed;inset:auto 24px calc(var(--wgai-bottom) + env(safe-area-inset-bottom)) auto;margin:0;padding:0;width:460px;height:min(760px,calc(100dvh - 48px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);border:1px solid #ffffff26;border-radius:24px;background:var(--wgai-background);color:var(--wgai-text);box-shadow:0 24px 100px #16072466;overflow:hidden;font:inherit;text-align:left;color-scheme:dark}
#webgate-ai-root .wgai-dialog[open]{display:flex;flex-direction:column;animation:wgai-appear .2s ease-out}
#webgate-ai-root .wgai-dialog::backdrop{background:#13052233}
#webgate-ai-root[data-position=left] .wgai-dialog{right:auto;left:24px}
#webgate-ai-root .wgai-header{padding:22px 22px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ffffff1a;background:var(--wgai-background);flex-shrink:0}
#webgate-ai-root .wgai-brand{display:flex;gap:12px;align-items:center}
#webgate-ai-root .wgai-brand>svg{height:32px;width:32px;color:var(--wgai-accent)}
#webgate-ai-root .wgai-brand h2{font-weight:600;font-size:17px;line-height:1.4}
#webgate-ai-root .wgai-brand p{font-size:12px;opacity:.68}
#webgate-ai-root .wgai-header-actions{display:flex;gap:4px}
#webgate-ai-root .wgai-icon{width:36px;height:36px;padding:8px;display:grid;place-items:center;border-radius:50%;color:var(--wgai-text);background:transparent;transition:background .2s ease}
#webgate-ai-root .wgai-icon:hover{background:var(--wgai-surface)}
#webgate-ai-root .wgai-content{flex:1;min-height:0;overflow-y:auto;padding:26px 22px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}
#webgate-ai-root .wgai-eyebrow{display:block;font-size:10px;letter-spacing:.12em;color:var(--wgai-accent);margin:7px 0 14px;font-weight:600}
#webgate-ai-root .wgai-intro{font-size:24px;line-height:1.35;letter-spacing:-.025em;margin-bottom:28px}
#webgate-ai-root .wgai-questions,#webgate-ai-root .wgai-follow-ups{display:grid;gap:9px}
#webgate-ai-root .wgai-question{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;border:1px solid #ffffff20;border-radius:12px;padding:14px 16px;background:var(--wgai-surface);color:var(--wgai-text);font-size:14px;line-height:1.5;transition:border-color .25s ease,background .25s ease,color .25s ease}
#webgate-ai-root .wgai-question:hover:not(:disabled){border-color:var(--wgai-accent);background:var(--wgai-accent);color:var(--wgai-background)}
#webgate-ai-root .wgai-question svg{width:17px;height:17px}
#webgate-ai-root .wgai-message{margin-bottom:27px;overflow-wrap:anywhere}
#webgate-ai-root .wgai-message-label{font-size:11px;opacity:.6;display:block;margin-bottom:8px}
#webgate-ai-root .wgai-user{margin-left:38px}
#webgate-ai-root .wgai-user .wgai-message-label{text-align:right}
#webgate-ai-root .wgai-user .wgai-message-body{background:var(--wgai-surface);border-radius:16px 16px 3px 16px;padding:14px 17px}
#webgate-ai-root .wgai-message-body p{white-space:pre-wrap;line-height:1.65}
#webgate-ai-root .wgai-message-body p+p{margin-top:13px}
#webgate-ai-root .wgai-sources{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
#webgate-ai-root .wgai-source-label{width:100%;font-size:11px;opacity:.65}
#webgate-ai-root .wgai-source{display:flex;flex-direction:column;gap:2px;border:1px solid #ffffff25;border-radius:9px;padding:9px 12px;background:transparent;max-width:100%;font-size:12px;transition:background .2s ease,border-color .2s ease}
#webgate-ai-root a.wgai-source:hover{background:var(--wgai-surface);border-color:var(--wgai-accent)}
#webgate-ai-root .wgai-source small{font-size:10px;opacity:.6}
#webgate-ai-root .wgai-contact{display:inline-flex;gap:10px;align-items:center;padding:11px 16px;margin-top:16px;border-radius:999px;background:var(--wgai-accent);color:var(--wgai-background);font-weight:500;font-size:13px;transition:filter .2s ease}
#webgate-ai-root .wgai-contact:hover{filter:brightness(.92)}
#webgate-ai-root .wgai-contact svg{width:16px;height:16px}
#webgate-ai-root .wgai-feedback{display:flex;align-items:center;gap:8px;margin-top:17px;font-size:11px;color:var(--wgai-text);opacity:.8}
#webgate-ai-root .wgai-feedback-button{font-size:11px;color:inherit;background:transparent;border:1px solid #ffffff30;padding:4px 10px;border-radius:99px;transition:background .2s ease}
#webgate-ai-root .wgai-feedback-button:hover{background:var(--wgai-surface)}
#webgate-ai-root .wgai-follow-ups{margin-top:20px}
#webgate-ai-root .wgai-follow-ups .wgai-question{font-size:12px;padding:11px 12px;background:transparent}
#webgate-ai-root .wgai-progress{font-size:13px;opacity:.72;padding:4px 0 18px;animation:wgai-pulse 1.4s ease-in-out infinite}
#webgate-ai-root .wgai-error{border:1px solid #fad4db55;border-radius:12px;padding:15px;font-size:13px;margin-top:12px}
#webgate-ai-root .wgai-text-button{background:transparent;color:var(--wgai-accent);padding:8px 0;text-decoration:underline;display:block;font-size:13px}
#webgate-ai-root .wgai-footer{flex-shrink:0;padding:16px 20px 18px;background:var(--wgai-background);border-top:1px solid #ffffff1a}
#webgate-ai-root .wgai-composer{display:flex;align-items:flex-end;gap:8px;background:var(--wgai-surface);border:1px solid #ffffff30;border-radius:16px;padding:10px;margin:0}
#webgate-ai-root .wgai-composer:focus-within{border-color:var(--wgai-accent)}
#webgate-ai-root .wgai-composer textarea{flex:1;width:100%;resize:none;border:0;border-radius:0;background:transparent;color:var(--wgai-text);outline:none;box-shadow:none;padding:8px 4px;margin:0;min-height:40px;max-height:132px;font-size:14px;line-height:24px}
#webgate-ai-root .wgai-composer textarea::placeholder{color:var(--wgai-text);opacity:.5}
#webgate-ai-root .wgai-send{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:var(--wgai-accent);color:var(--wgai-background);padding:10px;transition:opacity .2s ease}
#webgate-ai-root .wgai-send:disabled{opacity:.3;cursor:default}
#webgate-ai-root .wgai-notice{font-size:10px;line-height:1.5;opacity:.66;margin:10px 3px 0}
#webgate-ai-root .wgai-notice a{text-decoration:underline;text-underline-offset:2px}
#webgate-ai-root .wgai-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes wgai-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes wgai-pulse{50%{opacity:.4}}
@media(max-width:600px){#webgate-ai-root .wgai-launcher{right:16px;padding:14px 18px}#webgate-ai-root[data-position=left] .wgai-launcher{left:16px}#webgate-ai-root .wgai-dialog,#webgate-ai-root[data-position=left] .wgai-dialog{inset:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:0}#webgate-ai-root .wgai-header{padding-top:max(18px,env(safe-area-inset-top))}#webgate-ai-root .wgai-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}#webgate-ai-root .wgai-composer textarea{font-size:16px}#webgate-ai-root .wgai-intro{font-size:23px}}
@media(prefers-reduced-motion:reduce){#webgate-ai-root *,#webgate-ai-root *::before,#webgate-ai-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#webgate-ai-root .wgai-question,#webgate-ai-root .wgai-question span{min-width:0;white-space:normal;overflow-wrap:anywhere}
#webgate-ai-root .wgai-questions,#webgate-ai-root .wgai-follow-ups{grid-template-columns:minmax(0,1fr)}
#webgate-ai-root .wgai-content{overflow-x:hidden}
#webgate-ai-root .wgai-composer textarea{min-width:0}
