.ks-wrap{position:fixed;right:20px;bottom:20px;z-index:999999;font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:#17243b}.ks-wrap *{box-sizing:border-box}.ks-launch{background:#214d7b;color:white;border:0;border-radius:50px;padding:13px 20px;cursor:pointer;box-shadow:0 6px 25px #18283e55;font-weight:700;font-size:15px}.ks-panel{position:absolute;right:0;bottom:64px;width:min(370px,calc(100vw - 24px));height:min(510px,calc(100dvh - 110px));background:#fff;border:1px solid #d8dfe9;border-radius:17px;box-shadow:0 12px 38px #0003;display:flex;flex-direction:column;overflow:hidden}.ks-panel[hidden]{display:none}.ks-panel header{background:#23364f;color:#fff;padding:13px 15px;display:flex;gap:6px;flex-direction:column;position:relative}.ks-panel header strong{font-size:19px}.ks-panel header span{font-size:12px;color:#dce9f6}.ks-close{position:absolute;right:9px;top:7px;background:transparent;color:#fff;border:0;font-size:25px;cursor:pointer}.ks-log{padding:15px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:10px;background:#f6f8fb}.ks-msg{max-width:91%;padding:10px 12px;border-radius:13px;white-space:pre-wrap;overflow-wrap:anywhere}.ks-bot{background:white;border:1px solid #dee4ed;align-self:flex-start}.ks-user{background:#214d7b;color:white;align-self:flex-end}.ks-form{display:flex;gap:7px;padding:11px;background:white}.ks-form input{width:100%;min-width:0;flex:1;border:1px solid #c7ced9;border-radius:8px;padding:10px;font:inherit;background:#fff;color:#1b2638}.ks-form button{background:#b87408;color:white;border:0;border-radius:8px;padding:8px 12px;cursor:pointer}.ks-form button:disabled{opacity:.5}.ks-note{font-size:10px;color:#5e6672;margin:0;padding:0 12px 10px;background:#fff}@media(max-width:480px){.ks-wrap{right:12px;bottom:12px}.ks-panel{right:0}}

/* 0.2.6: Mobile viewport bounds and RTL chat content */
.ks-wrap{max-width:calc(100vw - 24px);max-width:calc(100dvw - 24px)}
.ks-panel{max-width:calc(100vw - 24px);max-width:calc(100dvw - 24px)}
.ks-msg{unicode-bidi:plaintext;text-align:start;min-width:0}
.ks-form{min-width:0;width:100%;align-items:stretch}
.ks-form input{min-width:0;width:0;flex:1 1 auto;font-size:16px}
.ks-form button{flex:0 0 auto;white-space:nowrap;font-size:15px}
@media(max-width:480px){
 .ks-wrap{left:12px;right:12px;bottom:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;justify-content:flex-end;pointer-events:none}
 .ks-wrap>.ks-launch,.ks-wrap>.ks-panel{pointer-events:auto}
 .ks-panel{position:fixed;left:12px;right:12px;bottom:76px;bottom:calc(76px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;height:min(510px,calc(100dvh - 110px));}
 .ks-form{padding:10px;gap:8px}
 .ks-form button{padding:8px 12px}
}

/* 0.2.8: iOS keyboard and visual viewport */
@media(max-width:480px){.ks-panel{max-height:none;min-height:0}.ks-log{min-height:0;overscroll-behavior:contain}.ks-form,.ks-note{flex-shrink:0}}
