/* Isolated, modeless chat widget. No changes to the landing layout. */
.eko-chat{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:1100;font-family:inherit}
.eko-chat-toggle{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border:0;border-radius:50%;background:#4154f1;color:#fff;box-shadow:0 5px 24px #01297030;cursor:pointer}
.eko-chat-toggle svg{width:27px;height:27px}
.eko-chat-panel{position:absolute;right:0;bottom:72px;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 110px);overflow:auto;background:#fff;border:1px solid #dfe5f1;border-radius:16px;box-shadow:0 12px 48px #01297026;color:#012970}
.eko-chat-panel[hidden]{display:none}
.eko-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #dfe5f1}
.eko-chat-head h2{font-size:19px;line-height:1.3;margin:0}
.eko-chat-close{border:0;border-radius:6px;background:transparent;font-size:28px;color:#012970;line-height:1;cursor:pointer;padding:4px 8px}
.eko-chat-body{padding:18px 20px}
.eko-chat-description,.eko-chat-privacy{font-size:14px;line-height:1.55;color:#596b86;margin:0 0 12px}
.eko-chat-log{max-height:220px;overflow:auto;font-size:14px;line-height:1.5}
.eko-chat-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;margin:0 0 10px;border-radius:10px;background:#f5f7ff}
.eko-chat-message.user{background:#eef8f5}
.eko-chat-form label{font-size:14px;display:block;margin:12px 0 6px;font-weight:600}
.eko-chat-form textarea{display:block;width:100%;resize:vertical;min-height:70px;border:1px solid #c5cce3;border-radius:8px;padding:10px;font:inherit;font-size:14px;color:#012970;box-sizing:border-box}
.eko-chat-form textarea:disabled{background:#f5f7ff;color:#596b86;cursor:not-allowed}
.eko-chat-form button{margin-top:10px;width:100%;font:inherit;font-size:14px;padding:10px;border:0;border-radius:8px;background:#4154f1;color:white;cursor:pointer}
.eko-chat-form button:disabled{background:#e8ecf6;color:#596b86;cursor:not-allowed}
.eko-chat-status{font-size:13px;color:#596b86;margin:10px 0 0}
.eko-chat-status:empty{display:none}
.eko-chat-contact{display:inline-block;font-size:14px;font-weight:600;margin-top:12px;color:#4154f1}
.eko-chat button:focus-visible,.eko-chat textarea:focus-visible,.eko-chat a:focus-visible{outline:3px solid #fd7e14;outline-offset:3px}
@media(max-width:575px){.eko-chat{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.eko-chat-panel{bottom:70px;width:340px}.eko-chat-toggle{width:54px;height:54px}}
.eko-chat-rules,.eko-chat-file-name{font-size:12px;line-height:1.5;color:#596b86;overflow-wrap:anywhere;margin:8px 0}
.eko-chat-form input[type=file]{max-width:100%;font-size:12px}
.eko-chat-form .eko-chat-consent{font-size:12px;font-weight:400;line-height:1.5}
.eko-chat-consent input{margin-right:7px}.eko-chat input:focus-visible{outline:3px solid #fd7e14;outline-offset:2px}

.eko-chat-form input[type=text]{width:100%;box-sizing:border-box;border:1px solid #c5cce3;border-radius:8px;padding:8px;font:inherit;font-size:14px;color:#012970}.eko-chat-form input[type=text]:disabled{background:#f5f7ff}

/* Verified email and private-library consent, scoped to the chat. */
.chat-identity{display:grid;gap:8px;padding:12px 0;border-block:1px solid #e4e8f2;margin-bottom:12px}.chat-identity p{margin:0;font-size:12px}.chat-identity>input{width:100%;min-width:0;padding:9px;border:1px solid #ccd4e4;border-radius:6px}.chat-identity>button{padding:9px;border:0;border-radius:6px;background:#4154f1;color:white;cursor:pointer}.chat-identity>button:disabled{opacity:.5;cursor:default}
