.ptm-chat{--chat-bg:#101d2b;--chat-line:#2c4152;--chat-accent:#6fe3d0;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:1100;font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f0f6fa;text-align:left;color-scheme:dark}
.ptm-chat *{box-sizing:border-box}.ptm-chat [hidden]{display:none!important}.ptm-chat button,.ptm-chat select,.ptm-chat textarea,.ptm-chat input{font:inherit}.ptm-chat button{cursor:pointer}.ptm-chat button:focus-visible,.ptm-chat a:focus-visible,.ptm-chat select:focus-visible,.ptm-chat textarea:focus-visible{outline:3px solid #fff;outline-offset:3px}.ptm-chat button:disabled{cursor:wait;opacity:.6}
.ptm-chat-launcher{display:flex;align-items:center;gap:10px;border:1px solid #95f6e5;border-radius:999px;background:var(--chat-accent);color:#062b28;font-weight:700;padding:13px 19px;box-shadow:0 6px 28px #0005;min-height:48px}.ptm-chat-launcher svg{flex:none}
.ptm-chat-panel{display:flex;flex-direction:column;position:absolute;right:0;bottom:66px;width:410px;max-width:calc(100vw - 32px);height:650px;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:20px;overflow:hidden;box-shadow:0 16px 65px #0008}
.ptm-chat-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;background:#152735;border-bottom:1px solid var(--chat-line);flex:none}.ptm-chat-head>div{display:flex;align-items:center;gap:9px;min-width:0}.ptm-chat-head strong{font-size:16px}.ptm-chat-dot{width:8px;height:8px;border-radius:50%;background:var(--chat-accent);flex:none}.ptm-chat-close{border:0;background:transparent;color:#fff;font-size:28px!important;line-height:1;width:40px;height:40px}
.ptm-chat-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 15px;border-bottom:1px solid var(--chat-line);font-size:12px;flex:none}.ptm-chat-tools label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ptm-chat-tools select{background:#101d2b;color:#e7eff5;border:1px solid var(--chat-line);padding:5px;border-radius:6px;max-width:132px}.ptm-chat-tools button{border:0;background:transparent;color:var(--chat-accent);padding:8px 0;font-size:12px}
.ptm-chat-messages{flex:1;min-height:50px;overflow-y:auto;overscroll-behavior:contain;padding:16px;scroll-behavior:smooth}.ptm-chat-bubble{padding:12px 14px;border-radius:14px;background:#1b3040;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.ptm-chat-bubble.is-user{background:#17483f;margin-left:30px}.ptm-chat-bubble.is-notice{font-size:12px;line-height:1.65;color:#bacbd9;background:transparent;padding:0 2px}.ptm-chat-bubble a,.ptm-chat-sources a{color:#8bf1df;text-decoration:underline}.ptm-chat-sources{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 16px;font-size:12px;overflow-wrap:anywhere}.ptm-chat-sources strong{width:100%;color:#bbccd9;font-weight:500}
.ptm-chat-quick{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 10px;flex:none}.ptm-chat-quick button{border:1px solid #3f655f;background:#142c2b;color:#a0f0e2;border-radius:999px;padding:6px 10px;font-size:12px;text-align:left}.ptm-chat-status{color:#b8cbd7;font-size:12px;padding:0 15px;overflow-wrap:anywhere}.ptm-chat-status:not(:empty){padding-bottom:8px}
.ptm-chat-composer{display:flex;gap:8px;padding:11px 14px;border-top:1px solid var(--chat-line);margin:0;background:#0e1925;flex:none}.ptm-chat-composer textarea{background:#172735;color:#fff;border:1px solid #344b5c;border-radius:10px;resize:none;width:100%;min-width:0;min-height:48px;max-height:130px;padding:10px;font-size:16px}.ptm-chat-composer>button{background:var(--chat-accent);color:#092d28;border:0;border-radius:10px;padding:9px 13px;font-weight:650;align-self:stretch}.ptm-chat-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;padding:9px 15px 12px;font-size:11px;background:#0e1925;flex:none}.ptm-chat-foot>button{background:transparent;border:0;color:var(--chat-accent);padding:3px 0;text-align:left;font-size:12px}.ptm-chat-foot a{color:#bdcdd9}.ptm-chat-foot small{display:block;width:100%;font-size:10px;color:#a8bac9}
.ptm-chat-sr,.ptm-chat-trap{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden;clip-path:inset(50%);border:0!important}
.ptm-chat-form-area{flex:1;min-height:0;overflow-y:auto;padding:15px;overscroll-behavior:contain;font-size:13px}.ptm-chat-form-area>p{margin:0 0 12px;color:#b9d5d0}.ptm-chat-form-area .request-panel{margin:0;padding:0;border:0;background:transparent}.ptm-chat-form-area .request-panel h2{font-size:18px;line-height:1.4;margin:0 0 12px}.ptm-chat-form-area .request-intro{font-size:13px}.ptm-chat-form-area fieldset{border:0;margin:0;padding:0;min-width:0}.ptm-chat-form-area .request-field{margin:13px 0}.ptm-chat-form-area label{font-size:13px}.ptm-chat-form-area input:not([type=checkbox]),.ptm-chat-form-area textarea,.ptm-chat-form-area select{display:block;width:100%;padding:9px;background:#0d1723;color:#fff;border:1px solid #3c5262;border-radius:7px;margin-top:5px;font-size:16px}.ptm-chat-form-area .request-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ptm-chat-form-area .request-consent{display:flex;gap:8px;align-items:flex-start;margin:14px 0}.ptm-chat-form-area .request-consent input{margin-top:5px;flex:none}.ptm-chat-form-area .request-privacy{color:#bacbd9;font-size:12px;overflow-wrap:anywhere}.ptm-chat-form-area a{color:var(--chat-accent)}.ptm-chat-form-area button[type=submit]{border:0;border-radius:9px;background:var(--chat-accent);color:#092d28;padding:12px;font-weight:700;min-height:44px}
@media(max-width:600px){.ptm-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.ptm-chat-launcher{padding:12px 15px;font-size:13px}.ptm-chat-panel{position:fixed;inset:8px 8px auto;width:calc(100vw - 16px);max-width:none;height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:none;border-radius:16px;padding-bottom:env(safe-area-inset-bottom)}body.ptm-chat-mobile-open{overflow:hidden}.ptm-chat-head{padding:10px 12px}.ptm-chat-tools{padding:6px 12px}.ptm-chat-quick{padding-bottom:8px}.ptm-chat-messages{padding:12px}}
@media(prefers-reduced-motion:reduce){.ptm-chat-messages{scroll-behavior:auto}}

/* Optional light theme, configured per site. Existing dark theme is unchanged. */
.ptm-chat-light{--chat-bg:#fff;--chat-line:#cbded5;--chat-accent:#17654f;color:#183b33;color-scheme:light}
.ptm-chat-light .ptm-chat-launcher,.ptm-chat-light .ptm-chat-composer>button{background:#17654f;color:white;border-color:#17654f}
.ptm-chat-light .ptm-chat-head,.ptm-chat-light .ptm-chat-composer,.ptm-chat-light .ptm-chat-foot{background:#f1f7f3}
.ptm-chat-light .ptm-chat-close{color:#183b33}.ptm-chat-light .ptm-chat-bubble{background:#edf5ef}.ptm-chat-light .ptm-chat-bubble.is-user{background:#dceee3}
.ptm-chat-light .ptm-chat-bubble.is-notice,.ptm-chat-light .ptm-chat-status,.ptm-chat-light .ptm-chat-foot small,.ptm-chat-light .ptm-chat-sources strong{color:#456358}
.ptm-chat-light .ptm-chat-tools select,.ptm-chat-light .ptm-chat-composer textarea{background:#fff;color:#183b33;border-color:#a3bdaf}
.ptm-chat-light .ptm-chat-quick button{background:#f1f7f3;color:#17654f;border-color:#a3bdaf}
.ptm-chat-light a,.ptm-chat-light .ptm-chat-foot>button,.ptm-chat-light .ptm-chat-tools button{color:#17654f}
.ptm-chat-light button:focus-visible,.ptm-chat-light a:focus-visible,.ptm-chat-light select:focus-visible,.ptm-chat-light textarea:focus-visible{outline-color:#17654f}
.ptm-chat-support h2{font-size:18px;line-height:1.4}.ptm-chat-support ul{list-style:none;margin:12px 0;padding:0}.ptm-chat-support li{border-bottom:1px solid var(--chat-line);padding:12px 0}.ptm-chat-support li a{display:inline-block;font-weight:700;min-height:30px}.ptm-chat-support p{margin:5px 0 0;overflow-wrap:anywhere}.ptm-chat-light .ptm-chat-support p{color:#456358}
/* Keep composer and department links accessible in short/keyboard viewports. */
@media(max-height:600px){
.ptm-chat-head{padding:3px 12px}.ptm-chat-close{height:32px}.ptm-chat-tools{padding:3px 12px}
.ptm-chat-tools select{padding:3px 6px;min-height:30px}
.ptm-chat-quick{max-height:58px;min-height:0;overflow-y:auto;flex-shrink:1;padding-bottom:5px}
.ptm-chat-messages{min-height:26px;padding:8px 12px}
.ptm-chat-composer{padding:6px 10px}.ptm-chat-composer textarea{height:44px;min-height:44px;padding:7px 9px}
.ptm-chat-foot{padding:4px 12px;gap:2px}
}
