.km-chat-launch{position:fixed;right:24px;bottom:26px;z-index:70;display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:15px 20px;background:#14257A;color:white;box-shadow:0 10px 32px #14257a40;font:700 14px var(--font,system-ui);cursor:pointer;transition:transform .2s,box-shadow .2s}.km-chat-launch:hover{transform:translateY(-3px);box-shadow:0 14px 36px #14257a50}.km-chat-launch svg{width:22px;height:22px}.km-chat-launch small{font:600 10px system-ui;background:#ffffff24;padding:3px 5px;border-radius:5px;letter-spacing:.04em}
#km-chat{position:fixed;inset:auto 24px 24px auto;margin:0;width:430px;height:min(740px,calc(100dvh - 48px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce4fa;border-radius:24px;background:#f5f7fc;color:#151d3c;box-shadow:0 24px 100px #0c143c44;overflow:hidden;font:400 15px/1.65 var(--font,system-ui)}
#km-chat::backdrop{background:#10193633;backdrop-filter:blur(2px)}#km-chat[open]{display:flex;flex-direction:column}#km-chat *{box-sizing:border-box}#km-chat button,#km-chat textarea,#km-chat a{font-family:inherit}#km-chat button{cursor:pointer}#km-chat button:disabled{cursor:default;opacity:.5}#km-chat :focus-visible,.km-chat-launch:focus-visible{outline:3px solid #f6b82e;outline-offset:3px}
.km-chat-head{background:#14257a;color:#fff;padding:20px 20px 18px;display:flex;gap:12px;align-items:center;flex:none}.km-chat-mark{width:42px;height:42px;display:grid;place-items:center;background:#ffffff18;border:1px solid #ffffff30;border-radius:14px;font-weight:800;font-size:24px}.km-chat-brand{flex:1;min-width:0}.km-chat-brand h2{font-size:17px;color:#fff;line-height:1.3;margin:0;font-weight:750;letter-spacing:-.02em}.km-chat-brand p{font-size:11px;color:#d2dcfc;margin:5px 0 0;line-height:1.4}.km-chat-icon{width:32px;height:32px;border:0;background:transparent;color:inherit;border-radius:8px;display:grid;place-items:center;padding:6px}.km-chat-icon:hover{background:#ffffff18}.km-chat-icon svg{width:19px;height:19px}
.km-chat-content{flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:24px 20px;scroll-behavior:smooth}.km-chat-welcome{padding:4px 0 12px}.km-chat-eyebrow{font-size:10px;color:#63729c;font-weight:700;letter-spacing:.13em}.km-chat-welcome h3{white-space:pre-line;font-size:25px;letter-spacing:-.04em;line-height:1.3;margin:12px 0;color:#14257a;max-width:15em}.km-chat-welcome p{font-size:14px;line-height:1.65;color:#596584;margin:0 0 20px}.km-chat-prompts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.km-chat-prompts button{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;text-align:left;padding:14px;border:1px solid #dce4fa;background:#fff;border-radius:14px;color:#223567;font-size:12px;font-weight:600;min-height:88px;line-height:1.55}.km-chat-prompts button span:last-child{font-size:18px;color:#7c90cc}.km-chat-prompts button:hover{border-color:#afc0f2;background:#edf2ff}.km-chat-mode{background:#eaf0ff;border:1px solid #dce4fa;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.6;color:#53618a;margin:16px 0 0}
.km-chat-message{margin:0 0 20px;animation:km-chat-in .2s ease}.km-chat-message[data-role="user"]{display:flex;justify-content:flex-end}.km-chat-bubble{border:1px solid #e1e7f4;border-radius:4px 16px 16px;background:#fff;padding:14px 16px;max-width:100%;font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.km-chat-message[data-role="user"] .km-chat-bubble{background:#14257a;color:#fff;border:0;border-radius:16px 4px 16px 16px;max-width:88%;white-space:pre-wrap}.km-chat-author{display:flex;align-items:center;gap:7px;font-size:11px;color:#6b7896;font-weight:650;margin-bottom:8px}.km-chat-author i{font-style:normal;display:grid;place-items:center;background:#e3eafb;color:#14257a;border-radius:7px;width:22px;height:22px;font-weight:800}.km-chat-sources{margin:12px 0 0;display:grid;gap:7px}.km-chat-sources-label{font-size:11px;color:#63729c;margin-bottom:1px;font-weight:600}.km-chat-source{display:flex;align-items:start;gap:9px;text-decoration:none!important;color:#253662!important;background:#fff;border:1px solid #e1e7f4;padding:11px 12px;border-radius:11px;line-height:1.5}.km-chat-source:hover{border-color:#afc0f2;background:#f4f7ff}.km-chat-source > b{font-size:11px;font-variant-numeric:tabular-nums;min-width:20px;color:#7c90cc}.km-chat-source strong{display:block;font-size:12px;font-weight:600;line-height:1.55}.km-chat-source small{display:block;font-size:10px;color:#74809e;margin-top:4px}.km-chat-source .km-source-arrow{margin-left:auto;flex:none;color:#7c90cc;font-size:15px}.km-chat-help{display:block;text-align:center;font-size:12px;margin:18px 0 0;color:#53618a;text-decoration:none}.km-chat-help:hover{text-decoration:underline}.km-chat-typing{display:flex;gap:5px;align-items:center;padding:18px 16px}.km-chat-typing i{width:5px;height:5px;border-radius:50%;background:#8d9fd2;animation:km-chat-dot 1s infinite}.km-chat-typing i:nth-child(2){animation-delay:.15s}.km-chat-typing i:nth-child(3){animation-delay:.3s}.km-chat-typing span{font-size:12px;margin-left:7px;color:#63729c}.km-chat-error{padding:12px;border-radius:12px;background:#fff1ef;color:#9d4036;font-size:12px;margin:12px 0}.km-chat-error button{display:block;margin-top:8px;border:1px solid #e7bdb8;color:inherit;background:#fff;border-radius:7px;padding:5px 10px}
.km-chat-footer{padding:14px 16px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2e7f3;flex:none}.km-chat-input-wrap{border:1px solid #d0daf1;background:#f8faff;border-radius:16px;padding:8px;display:flex;align-items:flex-end;gap:7px}.km-chat-input-wrap:focus-within{border-color:#879ddb;box-shadow:0 0 0 3px #afc0f222}.km-chat-input-wrap textarea{resize:none;flex:1;width:100%;max-height:105px;min-height:42px;margin:0;border:0!important;background:transparent!important;padding:9px 5px!important;color:#182346;font-size:14px;line-height:1.6;outline:0!important;box-shadow:none!important}.km-chat-send{border:0;border-radius:11px;background:#14257a;color:white;width:38px;height:38px;flex:none;display:grid;place-items:center;margin-bottom:2px}.km-chat-send svg{width:18px;height:18px}.km-chat-privacy{margin:8px 3px 0;font-size:10px;color:#78839c;line-height:1.55}.km-chat-count{font-size:9px;color:#99a2b5;text-align:right;margin:2px 4px 0}.km-chat-consult{display:block;text-align:center;color:#5e6e95;font-size:11px;margin:14px 0 0;text-decoration:none}
@keyframes km-chat-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes km-chat-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media(max-width:760px){.km-chat-launch{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));padding:13px 16px;gap:7px}.km-chat-launch small{display:none}#km-chat{inset:8px;margin:0;width:calc(100% - 16px);max-width:none;height:calc(100dvh - 16px);max-height:none;border-radius:20px}.km-chat-head{padding:17px 16px}.km-chat-content{padding:22px 16px}.km-chat-input-wrap textarea{font-size:16px}.km-chat-welcome h3{white-space:pre-line;font-size:26px}}
@media(prefers-reduced-motion:reduce){#km-chat *,.km-chat-launch{animation:none!important;transition:none!important;scroll-behavior:auto}}
/* Keep all flex/grid children within the mobile viewport, including the software keyboard. */
#km-chat{box-sizing:border-box;min-width:0;word-break:normal;overflow-wrap:anywhere}
#km-chat .km-chat-content{min-height:0;min-width:0;flex:1 1 0;overflow-x:hidden}
#km-chat .km-chat-log,#km-chat .km-chat-message,#km-chat .km-chat-welcome{min-width:0;max-width:100%}
#km-chat .km-chat-head,#km-chat .km-chat-footer{flex:0 0 auto;min-width:0}
#km-chat .km-chat-icon{flex:0 0 32px}
#km-chat .km-chat-input-wrap{min-width:0;width:100%}
#km-chat .km-chat-input-wrap textarea{flex:1 1 0;width:0;min-width:0;max-width:100%}
#km-chat .km-chat-source > div{flex:1 1 0;min-width:0}
#km-chat .km-chat-prompts{grid-template-columns:repeat(2,minmax(0,1fr))}
#km-chat .km-chat-prompts button{min-width:0;overflow-wrap:anywhere;word-break:normal}
@media(max-width:760px){
 #km-chat{inset:auto;left:8px;right:8px;top:var(--km-chat-top,8px);bottom:auto;width:auto;height:var(--km-chat-height,calc(100dvh - 16px));max-height:none}
 #km-chat .km-chat-content{padding:18px 14px}
 #km-chat .km-chat-head{padding:14px;gap:9px}
 #km-chat .km-chat-brand h2{font-size:16px}
 #km-chat .km-chat-mark{flex:0 0 36px;width:36px;height:36px;border-radius:11px;font-size:21px}
 #km-chat .km-chat-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom))}
 #km-chat .km-chat-source{padding:10px;gap:7px}
 #km-chat .km-chat-bubble{font-size:14px;line-height:1.75;padding:12px 13px}
 #km-chat .km-chat-welcome h3{font-size:24px}
}
@media(max-width:760px) and (max-height:520px){
 #km-chat .km-chat-head{padding:10px 12px}
 #km-chat .km-chat-welcome h3{font-size:20px;margin:8px 0}
 #km-chat .km-chat-welcome > p{display:none}
 #km-chat .km-chat-prompts button{min-height:64px;padding:10px}
 #km-chat .km-chat-privacy{font-size:9px;margin-top:5px}
}
#km-chat .km-chat-doctors{margin-top:18px;padding-top:16px;border-top:1px solid #dce4fa;min-width:0}
#km-chat .km-chat-doctors h3{font-size:14px;color:#14257a;margin:0 0 10px;line-height:1.5}
#km-chat .km-chat-doctor{background:#fff;border:1px solid #dce4fa;border-radius:13px;overflow:hidden;margin-bottom:9px;min-width:0}
#km-chat .km-chat-doctor-main{display:flex;align-items:flex-start;gap:10px;padding:13px;text-decoration:none;color:#182346;min-width:0}
#km-chat .km-chat-doctor-avatar{width:32px;height:32px;flex:none;display:grid;place-items:center;background:#edf2ff;color:#14257a;border-radius:10px;font-size:17px}
#km-chat .km-chat-doctor-info{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
#km-chat .km-chat-doctor-info strong{display:block;font-size:15px;line-height:1.5}
#km-chat .km-chat-doctor-info > span{display:block;font-size:12px;line-height:1.6;color:#53618a;margin-top:3px}
#km-chat .km-chat-doctor-info small{display:block;font-size:11px;line-height:1.6;color:#7180a1;margin-top:5px}
#km-chat .km-chat-doctor-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 13px;border-top:1px solid #edf0f7}
#km-chat .km-chat-doctor-actions a{font-size:11px;line-height:1.5;color:#14257a;text-decoration:none;background:#f0f4ff;padding:6px 9px;border-radius:7px;max-width:100%;overflow-wrap:anywhere}
#km-chat .km-chat-doctor-note{font-size:11px;line-height:1.65;color:#7180a1;margin:10px 0}
#km-chat .km-chat-doctor-more{font-size:12px;color:#14257a;text-decoration:none;font-weight:600}
@media(max-width:760px) and (max-height:700px){
 #km-chat .km-chat-welcome .km-chat-eyebrow,#km-chat .km-chat-welcome > p{display:none}
 #km-chat .km-chat-welcome h3{font-size:22px;line-height:1.3;margin:6px 0 14px}
 #km-chat .km-chat-prompts button{min-height:64px;padding:10px;font-size:12px;gap:0}
 #km-chat .km-chat-prompts button > span:last-child{display:none}
}
