.docs-chat-toggle{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));width:56px;height:56px;border:0;border-radius:50%;background:#245bd7;color:white;box-shadow:0 5px 22px #142d6850;display:grid;place-items:center;cursor:pointer;z-index:1200}.docs-chat-toggle:focus-visible,.docs-chat :focus-visible{outline:3px solid #87b3ff;outline-offset:3px}.docs-chat[hidden]{display:none}.docs-chat{position:fixed;right:22px;bottom:calc(90px + env(safe-area-inset-bottom));width:min(410px,calc(100vw - 32px));height:min(610px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;color:#172238;border:1px solid #d8e1f2;border-radius:18px;box-shadow:0 14px 55px #16254535;overflow:hidden;z-index:1201;font:15px/1.55 system-ui,sans-serif}.docs-chat-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#245bd7;color:white;flex:none}.docs-chat-head button{background:transparent;border:0;color:white;font-size:28px;line-height:1;cursor:pointer;padding:5px}.docs-chat-log{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:16px}.docs-chat-message{padding:12px 14px;margin:0 0 13px;border-radius:12px;background:#f0f4fa;overflow-wrap:anywhere;white-space:pre-wrap}.docs-chat-message.question{background:#245bd7;color:white;margin-left:28px}.docs-chat-source{margin:12px 0 0}.docs-chat-source p{font-size:14px;line-height:1.6;margin:0 0 5px}.docs-chat-source a{font-size:13px;color:#164ac2;text-decoration:underline;white-space:normal}.docs-chat-form{border-top:1px solid #d8e1f2;padding:12px 16px;display:grid;grid-template-columns:1fr auto;gap:8px;background:#fff;flex:none}.docs-chat-label{grid-column:1/-1;font-size:12px;font-weight:600}.docs-chat-form textarea{font:14px/1.5 system-ui,sans-serif;width:100%;min-width:0;box-sizing:border-box;resize:none;border:1px solid #becbe0;border-radius:9px;padding:9px;color:inherit;background:inherit}.docs-chat-form button{align-self:end;border:0;border-radius:9px;background:#245bd7;color:#fff;padding:10px 12px;font-weight:600;cursor:pointer}.docs-chat-form button:disabled{opacity:.6}.dark .docs-chat{background:#151f32;color:#e9efff;border-color:#34415b}.dark .docs-chat-message.answer{background:#22304a}.dark .docs-chat-form{background:#151f32;border-color:#34415b}.dark .docs-chat-source a{color:#a9c6ff}.docs-menu-open .docs-chat-toggle,.docs-menu-open .docs-chat{visibility:hidden}@media(max-width:600px){.docs-chat{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 24px);height:min(560px,calc(100dvh - 110px))}.docs-chat-toggle{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}}

.docs-chat-related{display:block;margin-top:14px;font-size:13px}

/* Keep the whole dialog inside the visible viewport, including a reduced keyboard viewport. */
.docs-chat,.docs-chat *{box-sizing:border-box}.docs-chat{max-width:calc(100vw - 24px)}.docs-chat-form textarea{font-size:16px}.docs-chat-head{min-height:52px}.docs-chat-head button{min-width:36px;min-height:36px}.docs-chat-log{min-width:0}.docs-chat-source{min-width:0}.docs-chat-form{grid-template-columns:minmax(0,1fr) auto}.docs-chat-message{white-space:normal}.docs-chat-message.question{white-space:pre-wrap}
@media(max-width:1024px),(hover:none) and (pointer:coarse){.docs-chat{left:calc(var(--chat-left,0px) + var(--chat-vw,100vw)/2);right:auto;top:calc(var(--chat-top,0px) + 12px);bottom:auto;transform:translateX(-50%);width:calc(var(--chat-vw,100vw) - 24px);max-width:520px;height:min(610px,calc(var(--chat-vh,100dvh) - 24px));max-height:calc(var(--chat-vh,100dvh) - 24px)}.docs-chat-form{padding:10px 12px}.docs-chat-log{padding:12px}.docs-chat-head{padding:8px 14px}.docs-chat-message.question{margin-left:14px}}
@media(max-height:450px){.docs-chat-form textarea{height:44px;min-height:44px}.docs-chat-form{gap:4px;padding:6px 12px}.docs-chat-head{min-height:42px;padding:3px 12px}.docs-chat-label{font-size:11px}.docs-chat-log{padding:8px}}

.docs-chat{z-index:20020}.docs-chat-toggle{z-index:20010}

.docs-chat-choices{padding:10px 0 4px}.docs-chat-choices-title{font-size:14px;font-weight:600;margin:0 0 8px}.docs-chat-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.docs-chat-choice{display:flex;align-items:center;text-align:left;min-height:42px;padding:9px 11px;border:1px solid #c9d7ef;border-radius:9px;color:#1749ae;background:#f5f8ff;font:inherit;font-size:13px;line-height:1.4;cursor:pointer;overflow-wrap:anywhere;text-decoration:none}.docs-chat-choice:hover{background:#e5edff}.docs-chat-other{border:0;background:transparent;color:#1749ae;text-decoration:underline;font:inherit;font-size:13px;padding:9px 6px;cursor:pointer}.dark .docs-chat-choice{background:#22304a;border-color:#435675;color:#c8dcff}.dark .docs-chat-other{color:#c8dcff}.dark .docs-chat-choice:hover{background:#304460}
.docs-chat-message .docs-chat-choice-grid{margin-top:12px;white-space:normal}.docs-chat-message .docs-chat-choice{font-size:13px}
/* A visible invitation without widening the dialog itself. */
.docs-chat-toggle{display:flex;gap:8px;width:auto;min-width:56px;padding:0 16px;border-radius:28px;font:600 14px system-ui,sans-serif}.docs-chat-toggle svg{flex:none}.docs-chat-toggle span{white-space:nowrap}
