/* Documentation assistant widget. Uses cms.css tokens where present. */
.ca-launch{position:fixed;right:24px;bottom:24px;z-index:90;display:inline-flex;align-items:center;gap:10px;padding:12px 18px 12px 14px;border:0;border-radius:999px;background:#0D1B2A;color:#fff;font:650 14.5px Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(13,27,42,.25);cursor:pointer}
.ca-launch:hover{background:#11263A}
.ca-launch .ca-dot{width:26px;height:26px;border-radius:50%;background:#50B848;display:inline-flex;align-items:center;justify-content:center}
.ca-open .ca-launch{display:none}
.to-top{bottom:84px!important}
.ca-panel{position:fixed;right:24px;bottom:24px;z-index:95;width:400px;max-width:calc(100vw - 32px);height:min(640px,calc(100vh - 48px));display:none;flex-direction:column;background:#fff;border:1px solid #E2E8EC;border-radius:18px;box-shadow:0 20px 60px rgba(13,27,42,.25);overflow:hidden;font-family:Inter,system-ui,sans-serif;color:#17202A}
.ca-open .ca-panel{display:flex}
.ca-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(140deg,#0E2135,#10281F);color:#fff}
.ca-head .ca-dot{width:32px;height:32px;border-radius:50%;background:#50B848;display:flex;align-items:center;justify-content:center;flex:none}
.ca-title{flex:1;min-width:0}
.ca-title strong{display:block;font-size:15px}
.ca-title small{display:block;font-size:12px;color:#B9C6D2}
.ca-x{border:0;background:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px 6px;border-radius:8px}
.ca-x:hover{background:rgba(255,255,255,.1)}
.ca-log{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:#F5F7F7}
.ca-msg{max-width:92%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.55;word-wrap:break-word}
.ca-user{align-self:flex-end;background:#0D1B2A;color:#fff;border-bottom-right-radius:4px}
.ca-bot{align-self:flex-start;background:#fff;border:1px solid #E2E8EC;border-bottom-left-radius:4px}
.ca-bot p{margin:0 0 8px}.ca-bot p:last-child{margin:0}
.ca-bot ol,.ca-bot ul{margin:4px 0 8px;padding-left:20px}
.ca-bot li{margin:2px 0}
.ca-bot code{font:12.5px Consolas,Menlo,monospace;background:#F1F4F6;border-radius:4px;padding:1px 4px}
.ca-bot pre{margin:6px 0 8px;padding:10px;background:#F8FBF8;border:1px solid #DCE5DF;border-radius:8px;overflow:auto;font:12px/1.5 Consolas,Menlo,monospace;color:#1F6B1F;white-space:pre}
.ca-bot pre code{background:none;padding:0}
.ca-src{margin-top:10px;padding-top:8px;border-top:1px solid #E2E8EC;font-size:12.5px}
.ca-src span{display:block;color:#5F6E7C;font-weight:600;margin-bottom:4px}
.ca-src a{display:block;color:#3F9B39;text-decoration:none;padding:2px 0}
.ca-src a:hover{text-decoration:underline}
.ca-note{font-size:12px;color:#5F6E7C;text-align:center}
.ca-sugg{display:flex;flex-direction:column;gap:8px}
.ca-sugg button{text-align:left;border:1px solid #E2E8EC;background:#fff;border-radius:12px;padding:9px 12px;font:500 13.5px Inter,system-ui,sans-serif;color:#33414F;cursor:pointer}
.ca-sugg button:hover{border-color:#50B848;color:#3F9B39}
.ca-typing{display:inline-flex;gap:4px}.ca-typing i{width:6px;height:6px;border-radius:50%;background:#9FB0BF;animation:ca-b 1s infinite}
.ca-typing i:nth-child(2){animation-delay:.15s}.ca-typing i:nth-child(3){animation-delay:.3s}
@keyframes ca-b{0%,80%,100%{opacity:.3}40%{opacity:1}}
.ca-form{display:flex;gap:8px;padding:12px;border-top:1px solid #E2E8EC;background:#fff}
.ca-form textarea{flex:1;resize:none;border:1px solid #E2E8EC;border-radius:12px;padding:10px 12px;font:500 14px Inter,system-ui,sans-serif;color:#17202A;max-height:120px;outline:none}
.ca-form textarea:focus{border-color:#50B848;box-shadow:0 0 0 3px rgba(80,184,72,.15)}
.ca-form button{border:0;border-radius:12px;background:#50B848;color:#fff;font:650 14px Inter,system-ui,sans-serif;padding:0 16px;cursor:pointer}
.ca-form button:disabled{opacity:.5;cursor:default}
.ca-foot{padding:0 12px 10px;background:#fff;font-size:11.5px;color:#5F6E7C;text-align:center}
@media (max-width:520px){.ca-panel{right:8px;bottom:8px;max-width:calc(100vw - 16px);height:calc(100vh - 16px)}.ca-launch{right:16px;bottom:16px}}
@media (prefers-reduced-motion:reduce){.ca-typing i{animation:none}}
