.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}

/* Revision 52: compact quick replies, variant 2. */
.docs-chat-head{padding:9px 16px;min-height:52px}
.docs-chat-head strong{font-size:16px;line-height:1.3}
.docs-chat-log{padding:16px}
.docs-chat-message{width:fit-content;max-width:100%;padding:10px 12px;margin-bottom:12px;font-size:14px;line-height:1.5;border-radius:14px}
.docs-chat-message.question{margin-left:auto;max-width:90%;background:#e4edff;color:#172238;border-bottom-right-radius:4px}
.docs-chat-choices{padding:6px 0 4px}
.docs-chat-choices-title{font-size:13px;line-height:1.5;margin-bottom:8px}
.docs-chat-choice-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px}
.docs-chat-choice,.docs-chat-message .docs-chat-choice{display:inline-flex;flex:0 1 auto;width:auto;max-width:100%;min-height:32px;padding:6px 12px;border:0;border-radius:999px;background:#f0f2f6;color:#253149;font:400 14px/20px system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;text-decoration:none;transition:background-color .15s,color .15s}
.docs-chat-choice:hover{background:#e2ebff;color:#1749ae}
.docs-chat-choice:active{background:#d5e2ff}
.docs-chat-other{font-size:12px;line-height:1.5;padding:8px 4px;margin:3px 10px 0 0;text-decoration:none}
.docs-chat-other:hover{text-decoration:underline}
.docs-chat-form{padding:12px;gap:8px;border-color:#e5e9f0;align-items:end}
.docs-chat-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.docs-chat-form textarea{min-height:42px;height:42px;max-height:120px;padding:9px 11px;line-height:22px;border-radius:9px;overflow-y:auto}
.docs-chat-form button{width:42px;height:42px;padding:0;display:grid;place-items:center;border-radius:9px}
.docs-chat-form button svg{width:20px;height:20px}
.dark .docs-chat-choice{background:#25334b;color:#d9e6ff;border:0}
.dark .docs-chat-choice:hover{background:#344967;color:#fff}
.dark .docs-chat-message.question{background:#304b76;color:#f0f5ff}
.dark .docs-chat-form{border-color:#34415b}
@media(prefers-reduced-motion:reduce){.docs-chat-choice{transition:none}}

/* Revision 53: smaller input text and a fully visible single-line prompt. */
.docs-chat .docs-chat-form textarea{font:400 14px/22px system-ui,sans-serif;box-sizing:border-box;min-height:42px;height:42px;padding:9px 11px;letter-spacing:normal}
.docs-chat .docs-chat-form textarea::placeholder{font:inherit;opacity:1;color:#788191}
@media(max-width:1024px),(hover:none) and (pointer:coarse){.docs-chat .docs-chat-form textarea{font-size:16px}}

/* Revision 54: two visible lines by default; retain compact typography. */
.docs-chat .docs-chat-form textarea{min-height:64px;height:64px}

/* Revision 55: clearly distinguish quick replies from answer bubbles. */
.docs-chat .docs-chat-choice{background:#fff;color:#1749ae;border:1px solid #b6c9ec;padding:5px 11px;font-weight:500}
.docs-chat .docs-chat-choice:hover{background:#e5eeff;border-color:#628bd8;color:#123c91}
.docs-chat .docs-chat-choice:active{background:#d8e6ff;border-color:#245bd7}
.dark .docs-chat .docs-chat-choice{background:#18253c;border-color:#6884ad;color:#d7e6ff}
.dark .docs-chat .docs-chat-choice:hover{background:#304767;border-color:#9dbbf1;color:#fff}
