.aip-widget { --aip-primary:#1f5eff; --aip-surface:#fff; --aip-surface-shell:#fff; --aip-text:#182230; --aip-launcher-background:#1f5eff; --aip-launcher-icon:#fff; --aip-launcher-border:#1f5eff; --aip-launcher-size:60px; --aip-launcher-icon-size:24px; --aip-panel-radius:18px; color:var(--aip-text); font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; z-index:9998; }
.aip-widget--top-left,.aip-widget--top-center,.aip-widget--top-right,.aip-widget--middle-left,.aip-widget--middle-right,.aip-widget--bottom-left,.aip-widget--bottom-center,.aip-widget--bottom-right { position:fixed; }
.aip-widget--top-left { left:var(--aip-edge-x); top:var(--aip-edge-y); transform:translate(var(--aip-offset-x),var(--aip-offset-y)); }.aip-widget--top-center { left:50%; top:var(--aip-edge-y); transform:translate(calc(-50% + var(--aip-offset-x)),var(--aip-offset-y)); }.aip-widget--top-right { right:var(--aip-edge-x); top:var(--aip-edge-y); transform:translate(var(--aip-offset-x),var(--aip-offset-y)); }
.aip-widget--middle-left { left:var(--aip-edge-x); top:50%; transform:translate(var(--aip-offset-x),calc(-50% + var(--aip-offset-y))); }.aip-widget--middle-right { right:var(--aip-edge-x); top:50%; transform:translate(var(--aip-offset-x),calc(-50% + var(--aip-offset-y))); }
.aip-widget--bottom-left { bottom:var(--aip-edge-y); left:var(--aip-edge-x); transform:translate(var(--aip-offset-x),var(--aip-offset-y)); }.aip-widget--bottom-center { bottom:var(--aip-edge-y); left:50%; transform:translate(calc(-50% + var(--aip-offset-x)),var(--aip-offset-y)); }.aip-widget--bottom-right { bottom:var(--aip-edge-y); right:var(--aip-edge-x); transform:translate(var(--aip-offset-x),var(--aip-offset-y)); }
.aip-widget .aip-widget__launcher { align-items:center; border-color:var(--aip-launcher-border) !important; border-style:solid !important; border-width:var(--aip-launcher-border-width) !important; box-sizing:border-box; color:var(--aip-launcher-icon); cursor:pointer; display:inline-flex; font:inherit; font-weight:700; justify-content:center; letter-spacing:0; min-height:var(--aip-launcher-size); transition:transform .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease; }
.aip-widget__launcher:hover { background:var(--aip-launcher-hover-background) !important; color:var(--aip-launcher-hover-icon) !important; }.aip-widget--launcher-hover-lift .aip-widget__launcher:hover { transform:translateY(-2px); }.aip-widget--launcher-hover-grow .aip-widget__launcher:hover { transform:scale(1.06); }.aip-widget--launcher-hover-lift-grow .aip-widget__launcher:hover { transform:translateY(-2px) scale(1.06); }.aip-widget__launcher:focus-visible { outline:3px solid var(--aip-launcher-border); outline-offset:3px; }.aip-widget__launcher-icon { display:grid; height:var(--aip-launcher-icon-size); place-items:center; width:var(--aip-launcher-icon-size); }.aip-widget__launcher-icon svg { fill:none; height:100%; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:100%; }.aip-widget--launcher-sparkle .aip-widget__launcher-icon svg { fill:currentColor; stroke:none; }
.aip-widget--launcher-pill .aip-widget__launcher { background:var(--aip-launcher-background); border-radius:999px; gap:9px; padding:0 19px; }.aip-widget--launcher-circle .aip-widget__launcher,.aip-widget--launcher-outline-circle .aip-widget__launcher { background:var(--aip-launcher-background); border-radius:50%; height:var(--aip-launcher-size); padding:0; width:var(--aip-launcher-size); }.aip-widget--launcher-outline-circle .aip-widget__launcher { background:var(--aip-launcher-background); border:var(--aip-launcher-border-width) solid var(--aip-launcher-border); box-shadow:none; }.aip-widget--launcher-rounded-square .aip-widget__launcher { background:var(--aip-launcher-background); border-radius:16px; height:var(--aip-launcher-size); padding:0; width:var(--aip-launcher-size); }.aip-widget--launcher-circle .aip-widget__launcher-label,.aip-widget--launcher-outline-circle .aip-widget__launcher-label,.aip-widget--launcher-rounded-square .aip-widget__launcher-label { clip:rect(0 0 0 0); clip-path:inset(50%); height:1px; overflow:hidden; position:absolute; white-space:nowrap; width:1px; }
.aip-widget--launcher-size-compact { --aip-launcher-size:48px; --aip-launcher-icon-size:19px; }.aip-widget--launcher-size-regular { --aip-launcher-size:60px; --aip-launcher-icon-size:24px; }.aip-widget--launcher-size-large { --aip-launcher-size:72px; --aip-launcher-icon-size:29px; }.aip-widget--panel-radius-sharp { --aip-panel-radius:0; }.aip-widget--panel-radius-square { --aip-panel-radius:8px; }.aip-widget--panel-radius-soft { --aip-panel-radius:28px; }
.aip-widget__panel { width:min(390px,calc(100vw - 32px)); height:min(620px,calc(100vh - 110px)); margin-bottom:12px; overflow:hidden; border-radius:var(--aip-panel-radius); background:var(--aip-surface-shell); box-shadow:none; }
@media (min-width:701px) { .aip-widget--launcher-shadow-none .aip-widget__launcher,.aip-widget--panel-shadow-none .aip-widget__panel { box-shadow:none; }.aip-widget--launcher-shadow-soft .aip-widget__launcher { box-shadow:0 10px 28px rgba(0,0,0,.24); }.aip-widget--launcher-shadow-strong .aip-widget__launcher { box-shadow:0 16px 36px rgba(0,0,0,.38); }.aip-widget--panel-shadow-soft .aip-widget__panel { box-shadow:0 16px 50px rgba(0,0,0,.28); }.aip-widget--panel-shadow-strong .aip-widget__panel { box-shadow:0 24px 68px rgba(0,0,0,.4); } }
.aip-widget__header { display:flex; align-items:center; justify-content:space-between; min-height:56px; padding:0 12px 0 18px; background:var(--aip-primary); color:#fff; }.aip-widget__actions { display:flex; gap:4px; }.aip-widget__actions button { border:0; border-radius:6px; padding:7px 9px; color:inherit; background:transparent; cursor:pointer; font-size:20px; }.aip-widget__actions .aip-widget__reset { font-size:24px; font-weight:400; line-height:1; padding:5px 8px 8px; }.aip-widget__actions button:hover,.aip-widget__actions button:focus,.aip-widget__actions button:active { background:var(--aip-control-hover-background) !important; color:var(--aip-control-hover-text) !important; }
.aip-widget__host { height:calc(100% - 56px); overflow:auto; overscroll-behavior:contain; padding:0; -webkit-overflow-scrolling:touch; background:transparent; }.aip-widget__error { color:#a61b1b; margin:18px; }
.aip-widget__loading { align-items:center; display:flex; height:100%; justify-content:center; min-height:180px; }.aip-widget__spinner { animation:aip-widget-spin .8s linear infinite; border:3px solid color-mix(in srgb,var(--aip-primary) 22%,transparent); border-radius:50%; border-top-color:var(--aip-primary); display:block; height:34px; width:34px; }@keyframes aip-widget-spin { to { transform:rotate(360deg); } }
.aip-widget__host .aip-v2__message { background:var(--aip-assistant-bubble) !important; border-radius:14px !important; color:var(--aip-assistant-bubble-text) !important; }.aip-widget__host .aip-v2__message--user { background:var(--aip-user-bubble) !important; color:var(--aip-user-bubble-text) !important; }.aip-widget--bubble-square .aip-widget__host .aip-v2__message { border-radius:2px !important; }.aip-widget--bubble-soft .aip-widget__host .aip-v2__message { border-radius:26px !important; }
.aip-widget__host .aip-v2__message strong { font-weight:750; }.aip-widget__host .aip-v2__message em { font-style:italic; }.aip-widget__host .aip-v2__message u { text-decoration-color:currentColor; text-decoration-thickness:1.5px; text-underline-offset:2px; }
.aip-widget__sources { color:var(--aip-text); font-size:13px; margin:-3px 0 4px; max-width:86%; }.aip-widget__sources summary { color:var(--aip-primary); cursor:pointer; font-weight:700; list-style-position:inside; }.aip-widget__sources ul { background:color-mix(in srgb,var(--aip-assistant-bubble) 68%,#fff); border-radius:9px; list-style:none; margin:7px 0 0; padding:8px 10px; }.aip-widget__sources li { align-items:center; display:flex; gap:7px; padding:3px 0; }.aip-widget__sources a { color:inherit; text-decoration:underline; text-underline-offset:2px; }.aip-widget__sources span { background:var(--aip-primary); border-radius:99px; color:#fff; font-size:10px; padding:1px 6px; }
.aip-widget__host .aip-v2__submit:hover,.aip-widget__host .aip-v2__submit:focus,.aip-widget__host .aip-v2__submit:active { background:var(--aip-control-hover-background) !important; border-color:var(--aip-control-hover-background) !important; color:var(--aip-control-hover-text) !important; }
.aip-widget--control-button-square .aip-widget__actions button,.aip-widget--control-button-square .aip-widget__host .aip-v2__submit { border-radius:0 !important; }.aip-widget--control-button-rounded .aip-widget__actions button,.aip-widget--control-button-rounded .aip-widget__host .aip-v2__submit { border-radius:8px !important; }.aip-widget--control-button-pill .aip-widget__actions button,.aip-widget--control-button-pill .aip-widget__host .aip-v2__submit { border-radius:999px !important; }
.aip-widget.is-open .aip-widget__launcher { display:none; }
.aip-widget.is-expanded { transform:none; }.aip-widget.is-expanded .aip-widget__panel { position:fixed; inset:7vh max(16px,calc((100vw - 960px)/2)); width:auto; height:86vh; margin:0; border-radius:var(--aip-panel-radius); z-index:10000; }.aip-widget.is-expanded::before { content:""; position:fixed; inset:0; background:rgba(7,16,29,.58); z-index:9999; }.aip-widget.is-expanded.aip-widget--expanded-blur::before { -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.aip-widget.is-expanded .aip-widget__panel { z-index:10000; }.aip-widget.is-expanded .aip-widget__launcher { display:none; }
.aip-widget--desktop-embedded { position:relative; inset:auto; display:block; transform:none; }.aip-widget--desktop-embedded .aip-widget__panel { width:100%; height:min(650px,80vh); }.aip-widget--desktop-embedded .aip-widget__launcher { display:none; }.aip-widget--desktop-embedded .aip-widget__panel { display:block; }
html.aip-widget-scroll-locked,body.aip-widget-scroll-locked { height:100%; overflow:hidden !important; overscroll-behavior:none; }
@media (max-width:700px) {
  .aip-widget--launcher-pill .aip-widget__launcher-label { clip:rect(0 0 0 0); clip-path:inset(50%); height:1px; overflow:hidden; position:absolute; white-space:nowrap; width:1px; }
  .aip-widget--launcher-pill .aip-widget__launcher { height:var(--aip-launcher-size); padding:0; width:var(--aip-launcher-size); }
  .aip-widget__expand { display:none; }
  .aip-widget--mobile-fullscreen.is-open,
  .aip-widget--mobile-fullscreen.is-open .aip-widget__panel {
    box-sizing:border-box;
    position:fixed;
    inset:auto;
    top:var(--aip-mobile-viewport-offset-top,0px);
    left:var(--aip-mobile-viewport-offset-left,0px);
    width:var(--aip-mobile-viewport-width,100%);
    max-width:var(--aip-mobile-viewport-width,100%);
    height:100vh;
    height:var(--aip-mobile-viewport-height,100svh);
    max-height:var(--aip-mobile-viewport-height,100svh);
    margin:0;
    padding:0;
    min-width:0;
    transform:none;
    overflow:hidden;
    overscroll-behavior:none;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__panel { display:flex; flex-direction:column; border-radius:0; z-index:10000; }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__header { box-sizing:border-box; flex:0 0 auto; min-width:0; padding-left:max(18px,env(safe-area-inset-left)); padding-right:max(12px,env(safe-area-inset-right)); }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__header > strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__actions { flex:0 0 auto; }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__host { flex:1 1 0; height:auto; min-width:0; min-height:0; overflow:hidden; }
  .aip-widget--mobile-fullscreen.is-open .aip-v2 { box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:0; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto; overflow:hidden; }
  .aip-widget--mobile-fullscreen.is-open .aip-v2__messages { min-width:0; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:none; touch-action:pan-y pinch-zoom; }
  .aip-widget--mobile-fullscreen.is-open .aip-v2__message,
  .aip-widget--mobile-fullscreen.is-open .aip-widget__sources { min-width:0; overflow-wrap:anywhere; }
  .aip-widget--mobile-fullscreen.is-open .aip-v2__form { box-sizing:border-box !important; display:flex !important; flex-wrap:nowrap !important; max-width:100% !important; min-width:0 !important; overflow:hidden; width:100% !important; padding-left:max(12px,env(safe-area-inset-left)); padding-right:max(12px,env(safe-area-inset-right)); padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .aip-widget--mobile-fullscreen.is-open .aip-v2__input { box-sizing:border-box !important; flex:1 1 0 !important; min-width:0 !important; width:0 !important; max-width:100% !important; font-size:max(16px,1em) !important; }
  .aip-widget--mobile-fullscreen.is-open .aip-v2__submit { flex:0 1 auto !important; min-width:0 !important; white-space:nowrap; }
  .aip-widget--mobile-fullscreen.is-open .aip-widget__launcher { display:none; }
  .aip-widget--mobile-fullscreen.is-open::before { content:""; position:absolute; inset:0; background:var(--aip-surface-shell); z-index:9999; }
  .aip-widget--mobile-embedded { position:relative; inset:auto; display:block; transform:none; }
  .aip-widget--mobile-embedded .aip-widget__panel { position:relative; inset:auto; width:100%; height:620px; }
  .aip-widget--mobile-embedded .aip-widget__launcher { display:none; }
}
