/* Scoped additions: the existing JL page layout is left intact. */
.jl-agent-launcher,.jl-agent-dialog{font-family:Manrope,Arial,Helvetica,sans-serif;line-height:1.5;letter-spacing:normal;text-align:left;color:#142c43;box-sizing:border-box}
.jl-agent-dialog *,.jl-agent-launcher *{box-sizing:border-box}
.jl-agent-launcher{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:35;display:flex;align-items:center;gap:12px;min-height:54px;padding:12px 19px;border:1px solid #dbe3ec;border-radius:8px;background:#fff;box-shadow:0 7px 30px #071e3826;font-size:14px;font-weight:700;cursor:pointer}
.jl-agent-launcher:hover{border-color:#195cf0;background:#f6f9ff}
.jl-agent-logo{display:block;width:34px;height:26px;object-fit:contain;flex:none}
body.jl-agent-dialog-open{overflow:hidden}
dialog.jl-agent-dialog{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;width:416px;max-width:calc(100vw - 32px);height:min(690px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);border:1px solid #dbe3ec;border-radius:12px;background:#fff;box-shadow:0 22px 70px #071e3833;overflow:hidden;overscroll-behavior:contain}
dialog.jl-agent-dialog[open]{display:flex;flex-direction:column}
dialog.jl-agent-dialog::backdrop{background:#071e381a;backdrop-filter:none}
.jl-agent-dialog h2,.jl-agent-dialog h3,.jl-agent-dialog p{margin:0}
.jl-agent-dialog button,.jl-agent-dialog textarea,.jl-agent-dialog a{font:inherit;letter-spacing:normal}
.jl-agent-dialog button,.jl-agent-dialog a{touch-action:manipulation}
.jl-agent-dialog button{cursor:pointer}
.jl-agent-dialog [hidden],.jl-agent-launcher[hidden]{display:none!important}
.jl-agent-dialog :focus-visible,.jl-agent-launcher:focus-visible{outline:3px solid #195cf0;outline-offset:3px}
.jl-agent-header{display:flex;align-items:center;gap:12px;padding:18px 17px 16px;border-bottom:1px solid #e5ebf2;flex:none}
.jl-agent-identity{flex:1;min-width:0}
.jl-agent-identity h2{font-size:17px;font-weight:700;line-height:1.25;letter-spacing:-.02em}
.jl-agent-identity p{font-size:10px;line-height:1.5;color:#5c6d80;margin-top:3px}
.jl-agent-dialog .jl-agent-close{border:0;background:#f1f5fa;border-radius:6px;display:grid;place-items:center;width:36px;height:36px;padding:0;flex:none;font-size:25px;line-height:1;color:#4b6179}
.jl-agent-close:hover{background:#e7edf6}
.jl-agent-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 18px;border-bottom:1px solid #e5ebf2;background:#f7f9fc;flex:none}
.jl-agent-dialog .jl-agent-human{font-size:12px;font-weight:600;text-decoration:none;color:#174baa;padding:5px 0}
.jl-agent-dialog .jl-agent-reset{padding:5px 0;border:0;background:none;font-size:11px;color:#52667c;text-decoration:underline;text-underline-offset:3px}
.jl-agent-dialog button:disabled{opacity:.48;cursor:default}
.jl-agent-scroll{min-height:100px;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:21px 18px 18px;scrollbar-width:thin}
.jl-agent-welcome h3{font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.035em;max-width:300px}
.jl-agent-welcome p{font-size:13px;line-height:1.7;color:#5c6d80;margin-top:12px}
.jl-agent-starters{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:20px}
.jl-agent-dialog .jl-agent-starter{display:block;text-align:left;width:100%;background:#f4f7fc;color:#24518d;border:1px solid #dce6f3;border-radius:6px;padding:11px 13px;font-size:12px;line-height:1.5}
.jl-agent-starter:enabled:hover{border-color:#81a7e9;background:#edf3ff}
.jl-agent-transcript{display:flex;flex-direction:column;gap:16px}
.jl-agent-message{max-width:100%;border-radius:8px;padding:13px 14px;background:#f2f5f9;color:#142c43;overflow-wrap:anywhere;word-break:normal}
.jl-agent-message-user{margin-left:24px;background:#eaf1ff}
.jl-agent-message-assistant{margin-right:12px}
.jl-agent-message-label{display:block;font-size:10px;font-weight:700;color:#496582;line-height:1.5;margin-bottom:6px}
.jl-agent-message-copy{white-space:pre-wrap;font-size:13px;line-height:1.75}
.jl-agent-recommendations{display:flex;flex-direction:column;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #d8e2ef}
.jl-agent-recommendations a{color:#1249c1;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;line-height:1.6}
.jl-agent-unsent{display:block;color:#8b3d28;font-size:10px;line-height:1.6;margin-top:8px}
.jl-agent-status-area{padding:0 18px 12px;flex:none}
.jl-agent-status{font-size:11px;line-height:1.6;color:#5c6d80}
.jl-agent-status-error .jl-agent-status{color:#8b3d28}
.jl-agent-dialog .jl-agent-retry{border:0;background:none;text-decoration:underline;text-underline-offset:3px;font-size:12px;color:#1249c1;padding:7px 0 0}
.jl-agent-footer{padding:13px 18px 12px;border-top:1px solid #e0e7ef;background:#fff;flex:none}
.jl-agent-dialog .jl-agent-prepare{background:none;color:#1249c1;border:1px solid #cdddf6;border-radius:5px;font-size:12px;padding:8px 12px;margin-bottom:11px;width:100%;text-align:center}
.jl-agent-prepare:enabled:hover{background:#f3f7ff}
.jl-agent-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center}
.jl-agent-dialog .jl-agent-input{display:block;width:100%;min-width:0;resize:none;min-height:60px;max-height:120px;overflow:auto;border:1px solid #cad7e6;border-radius:6px;background:#fff;color:#142c43;font-size:14px;line-height:1.5;padding:10px 11px}
.jl-agent-input::placeholder{color:#74859a;opacity:1}
.jl-agent-input:disabled{background:#f5f7fa}
.jl-agent-dialog .jl-agent-send{background:#195cf0;border:1px solid #195cf0;border-radius:5px;color:#fff;font-size:12px;font-weight:600;padding:11px 12px;min-height:42px}
.jl-agent-send:enabled:hover{background:#1249c1}
.jl-agent-counter{grid-column:1 / -1;font-size:10px;color:#6b7e94;text-align:right;line-height:1}
.jl-agent-dialog .jl-agent-privacy-short{font-size:10px;line-height:1.6;color:#64748b;margin-top:9px}
.jl-agent-privacy{margin-top:3px;font-size:10px;color:#64748b}
.jl-agent-privacy summary{cursor:pointer;width:fit-content;font-size:10px;line-height:1.7;padding:4px 0}
.jl-agent-privacy p{line-height:1.65;padding-top:6px;max-height:110px;overflow:auto}
.jl-agent-summary{background:#f4f7fc;border:1px solid #cfdef4;border-radius:8px;padding:15px;margin-top:18px}
.jl-agent-summary label{display:block;font-size:14px;font-weight:700}
.jl-agent-summary p{font-size:11px;line-height:1.7;color:#5c6d80;margin:7px 0 12px}
.jl-agent-dialog .jl-agent-brief{display:block;width:100%;resize:vertical;min-height:150px;max-height:350px;padding:10px;border:1px solid #c6d5e7;border-radius:4px;color:#142c43;background:#fff;font-size:13px;line-height:1.65}
.jl-agent-dialog .jl-agent-whatsapp{display:block;margin-top:12px;background:#195cf0;border-radius:5px;color:#fff;padding:11px 13px;text-align:center;font-size:12px;font-weight:600;line-height:1.6;text-decoration:none}
.jl-agent-whatsapp:hover{background:#1249c1}
.jl-agent-whatsapp[aria-disabled=true]{opacity:.45;cursor:default}
.jl-agent-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:480px){.jl-agent-launcher{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));min-height:50px;padding:11px 15px;font-size:13px}dialog.jl-agent-dialog{inset:auto 8px max(8px,env(safe-area-inset-bottom)) auto;width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.jl-agent-header{padding:15px 13px;gap:10px}.jl-agent-identity h2{font-size:16px}.jl-agent-identity p{font-size:9px}.jl-agent-toolbar{padding-inline:14px}.jl-agent-scroll{padding:19px 14px 16px}.jl-agent-status-area{padding-inline:14px}.jl-agent-footer{padding:11px 14px 12px}.jl-agent-dialog .jl-agent-input,.jl-agent-dialog .jl-agent-brief{font-size:16px}.jl-agent-dialog .jl-agent-input{padding:9px;min-height:64px}.jl-agent-dialog .jl-agent-send{padding-inline:10px}.jl-agent-welcome h3{font-size:23px}.jl-agent-message-user{margin-left:12px}.jl-agent-message-assistant{margin-right:4px}.jl-agent-summary{padding:13px}}
@media(max-height:560px){.jl-agent-header{padding-block:9px}.jl-agent-toolbar{padding-block:3px}.jl-agent-footer{padding-block:8px}.jl-agent-scroll{min-height:60px}.jl-agent-welcome h3{font-size:20px}.jl-agent-privacy p{max-height:65px}.jl-agent-dialog .jl-agent-prepare{padding-block:5px;margin-bottom:7px}}
