body.agent-chat-open{overflow:hidden;overscroll-behavior:none}.agent-chat-screen{position:fixed;z-index:45;left:0;right:0;top:var(--agent-chat-top,0);height:var(--agent-chat-height,100dvh);min-height:0;width:100%;padding:0;display:flex;flex-direction:column;background:#f0f8ff;overflow:hidden;animation:none;box-sizing:border-box}
.agent-chat-screen .customer-chat-header{flex:none;display:flex;align-items:center;gap:11px;padding:calc(12px + env(safe-area-inset-top)) 12px 12px;margin:0;border:0;border-bottom:1px solid #e1eef8;background:#fff;color:#0a2e60;min-height:78px}.agent-chat-screen .chat-header-action{display:grid;place-items:center;width:38px;height:44px;min-width:38px;margin:0;padding:7px;border:0;background:transparent;color:#092f65;border-radius:12px}.agent-chat-screen .chat-header-action:hover{background:#eef7ff}.agent-chat-screen .chat-header-action .icon{width:27px;height:27px}.agent-chat-screen .chat-agent-avatar{width:48px;height:48px;flex:none;border-radius:50%;object-fit:cover;background:#deeffc}.agent-chat-screen .chat-agent-identity{flex:1;min-width:0}.agent-chat-screen .chat-agent-identity h1{font-size:16px;font-weight:750;letter-spacing:0;line-height:1.3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}.agent-chat-screen .chat-agent-identity p{font-size:12px;color:#7a8fa6;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0 0}.agent-chat-screen .chat-header-calls{flex:none;display:flex;align-items:center}.agent-chat-screen .chat-header-calls .agent-talk-entry{padding:0;margin:0;border:0;background:none}.agent-chat-screen .chat-header-calls .agent-talk-entry small{display:none}.agent-chat-screen .chat-header-calls .agent-talk-button{width:38px;height:44px;min-height:44px;padding:7px;color:#092f65;background:transparent;border-radius:12px}.agent-chat-screen .chat-header-calls .agent-talk-button:before{display:none}.agent-chat-screen .chat-header-calls .agent-talk-button .icon{width:27px;height:27px}.agent-chat-screen .chat-header-calls.external-call-ready>.chat-call-options{display:none}
.agent-chat-screen .agent-chat-rich{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;margin:0;padding:0;border:0;border-radius:0;background:#f0f8ff url('../assets/brand/chat-doodles.svg') repeat;background-size:230px 250px;overflow:hidden;color:#111b37}.agent-chat-screen .rich-message-log{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:20px 12px 22px;gap:13px;scroll-padding-bottom:18px}.agent-chat-screen .rich-message{position:relative;flex-shrink:0;align-self:flex-start;max-width:min(79%,560px);margin-left:36px;background:#fff;border:1px solid #e7f1fa;border-radius:19px 19px 19px 3px;padding:11px 12px 7px;box-shadow:0 2px 5px #0a486504}.agent-chat-screen .rich-message[data-sender-role='customer']:before{content:'';position:absolute;left:-39px;bottom:1px;width:31px;height:31px;border-radius:50%;background:#d5eaf9 var(--chat-peer-avatar) center/cover no-repeat;border:1px solid #e3f1fb}.agent-chat-screen .rich-message.mine{align-self:flex-end;background:#e1ffdd;border-color:#dff5df;border-radius:19px 19px 3px 19px;margin-left:40px;margin-right:0;max-width:min(83%,560px)}.agent-chat-screen .rich-message p{font-size:15px;line-height:1.45;color:#111b37!important;margin:0;white-space:pre-wrap}.agent-chat-screen .rich-message time{font-size:10px;line-height:1.4;margin-top:4px;color:#7b8ca3;text-align:right;white-space:nowrap}.agent-chat-screen .rich-message:not(.support-message) .rich-sender{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}.agent-chat-screen .rich-message.support-message{border-color:#bad9fc}.agent-chat-screen .rich-message.support-message .rich-sender{font-size:11px;color:#1766a1}.agent-chat-screen .rich-message audio{max-width:100%;width:245px;height:42px}.agent-chat-screen .rich-message .rich-location{font-size:13px}.agent-chat-screen .rich-image-open img{max-width:100%;width:240px;border-radius:12px}.agent-chat-screen .rich-load-older{flex:none;align-self:center;margin:7px;padding:8px 16px;background:white;border-radius:20px}.agent-chat-screen .rich-empty{margin:auto;padding:24px;color:#6d8ba4;background:#ffffffd9;border-radius:16px}
.agent-chat-screen .customer-chat-footer{flex:none;position:relative;z-index:2;background:#ffffffed;border-top:1px solid #e2eff8;padding:8px 10px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -3px 14px #2677a003}.agent-chat-screen .customer-chat-composer{display:flex;align-items:flex-end;gap:6px;min-width:0}.agent-chat-screen .rich-compose{flex:1;min-width:0;gap:5px;align-items:flex-end!important}.agent-chat-screen .chat-input-label{min-width:0;font-size:0;display:block;margin:0}.agent-chat-screen .rich-compose textarea{display:block;resize:none;min-height:42px;max-height:104px;padding:10px 13px;border:1px solid #c9dff4;border-radius:24px;background:#fff;color:#122942;font-size:16px;line-height:21px;overflow-y:auto;margin:0}.agent-chat-screen .rich-compose textarea::placeholder{color:#8da0b6}.agent-chat-screen .chat-compose-action,.agent-chat-screen .chat-camera-action,.agent-chat-screen .rich-record,.agent-chat-screen .rich-compose>.button{display:grid;place-items:center;flex:none;width:36px;height:42px;min-height:42px;padding:5px!important;background:transparent;border:0;border-radius:50%;color:#0a3264;cursor:pointer}.agent-chat-screen .chat-compose-action .icon,.agent-chat-screen .chat-camera-action .icon{width:29px;height:29px}.agent-chat-screen .rich-record,.agent-chat-screen .rich-compose>.button{width:42px;background:#08356b;color:#fff}.agent-chat-screen .rich-record .icon,.agent-chat-screen .rich-compose>.button .icon{width:24px;height:24px}.agent-chat-screen .rich-compose>.button{display:none}.agent-chat-screen .chat-has-draft .rich-compose>.button{display:grid}.agent-chat-screen .chat-has-draft .customer-chat-composer>.rich-record{display:none}.agent-chat-screen .rich-record.recording{background:#c02b43!important;box-shadow:0 0 0 4px #fde3e8}.agent-chat-screen .rich-record-status{font-size:9px!important;line-height:1.3;margin:4px 0 0;text-align:center;max-height:26px;overflow:auto;color:#6c849d!important}.agent-chat-screen .chat-safety-shortcut{display:block;margin:3px auto 0;background:none;border:0;padding:2px;color:#a82c45;font-size:10px;font-weight:650;line-height:1.3;cursor:pointer}.agent-chat-screen .chat-feedback{max-height:90px;overflow:auto}.agent-chat-screen .chat-feedback p:empty{display:none}.agent-chat-screen .chat-feedback p{margin:3px 0 7px;font-size:12px;color:#ae203b;line-height:1.4}.agent-chat-screen .chat-feedback .rich-retry{margin-bottom:6px}
.agent-chat-screen .customer-chat-tools{max-height:35dvh;overflow:auto;overscroll-behavior:contain;padding:8px 4px 14px;margin-bottom:7px;border-bottom:1px solid #e0ecf8}.agent-chat-screen .customer-chat-tools .rich-attachments{margin:0 0 12px;display:flex;gap:8px}.agent-chat-screen .customer-chat-tools .rich-call-toolbar{display:flex}.agent-chat-screen .chat-privacy-details summary{font-size:12px;color:#b4253b;font-weight:700;padding:8px 0;cursor:pointer}.agent-chat-screen .customer-chat-tools .rich-contact-policy{font-size:12px;line-height:1.6;color:#af243a;font-weight:650;margin:0;padding:8px;background:#fff3f5;border-radius:12px}.agent-chat-screen :is(button,a,textarea,select):focus-visible{outline:2px solid #35a2ed;outline-offset:2px}
@media(max-width:350px){.agent-chat-screen .customer-chat-header{gap:6px;padding-left:6px;padding-right:6px}.agent-chat-screen .chat-agent-avatar{width:40px;height:40px}.agent-chat-screen .chat-agent-identity h1{font-size:14px}.agent-chat-screen .chat-agent-identity p{font-size:10px}.agent-chat-screen .chat-header-action,.agent-chat-screen .chat-header-calls .agent-talk-button{width:34px;min-width:34px;padding:5px}.agent-chat-screen .rich-message{max-width:calc(100% - 38px)}.agent-chat-screen .customer-chat-footer{padding-left:6px;padding-right:6px}.agent-chat-screen .customer-chat-composer{gap:3px}.agent-chat-screen .chat-compose-action,.agent-chat-screen .chat-camera-action{width:30px}.agent-chat-screen .rich-message p{font-size:14px}}
@media(min-width:900px){.agent-chat-screen .customer-chat-header{padding-left:max(24px,calc((100vw - 980px)/2));padding-right:max(24px,calc((100vw - 980px)/2))}.agent-chat-screen .rich-message-log{padding-left:max(24px,calc((100vw - 950px)/2));padding-right:max(24px,calc((100vw - 950px)/2))}.agent-chat-screen .customer-chat-footer{padding-left:max(24px,calc((100vw - 980px)/2));padding-right:max(24px,calc((100vw - 980px)/2))}.agent-chat-screen .chat-agent-identity h1{font-size:18px}.agent-chat-screen .chat-agent-avatar{width:52px;height:52px}}

/* Agent guide and modal hosts retain the same customer conversation component geometry. */
.agent-chat-screen{z-index:50;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;box-shadow:none;border:0;border-radius:0;margin:0!important;max-width:none!important;max-height:none!important;color:#111b37}
.agent-chat-screen .agent-chat-header{flex:none}
.agent-chat-screen .rich-chat{box-sizing:border-box}
.agent-chat-screen .rich-compose .chat-input-label{flex:1;margin:0!important}
.agent-chat-screen .chat-header-action .icon{max-width:none}
.agent-chat-screen .chat-safety-shortcut{color:#b42318;font-weight:750}
.agent-chat-screen .chat-agent-identity h1{color:#0a2e60}
.agent-chat-screen .chat-feedback .rich-contact-warning{color:#b42318;font-weight:700}
.agent-chat-screen .rich-message:not(.support-message) .rich-sender{display:block}
.handover-chat-dialog:has(.agent-chat-screen){inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.handover-chat-dialog:has(.agent-chat-screen)>header{display:none}
body.agent-chat-open #agentNav{visibility:hidden}

.agent-chat-screen .rich-compose textarea{font-weight:400}
.agent-chat-screen .rich-message audio{display:block;margin-bottom:5px}
.agent-chat-screen .rich-message>small{display:block;line-height:1.45}
