/* Additive styles. The copied workbench and CDP remain the source of truth. */
.hrt-translation{position:relative;display:inline-flex;align-items:center;flex-shrink:0;border-radius:4px;color:#333;height:28px;white-space:nowrap;font-size:12px}
.hrt-translation button{font:inherit;cursor:pointer;color:inherit}
.hrt-translate-switch,.hrt-translate-settings{display:inline-flex;gap:4px;align-items:center;justify-content:center;border:0;background:none;height:28px;padding:4px}
.hrt-translate-switch .icon{width:16px;height:16px}.hrt-translate-settings{gap:5px;padding:4px 5px 4px 0}.hrt-chevron{font-size:13px;line-height:16px}
.hrt-translation.is-on{color:#ff6600;background:#fff5eb}.hrt-translation button:hover{background:#00000006;border-radius:4px}
.hrt-menu{position:absolute;right:0;top:calc(100% + 5px);width:248px;z-index:850;background:white;border-radius:8px;padding:4px;box-shadow:0 6px 16px #0002;color:#262626;font-size:13px;text-align:left;line-height:22px}
.hrt-menu-row{position:relative}.hrt-menu-row>button{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;padding:5px 10px;border-radius:4px;gap:12px}.hrt-menu-row>button>span:last-child{display:flex;align-items:center;gap:8px}.hrt-menu-row .icon{width:12px;height:12px;opacity:.6}.hrt-menu-row.active>button{background:#f5f5f5}
.hrt-submenu{position:absolute;right:calc(100% + 5px);top:-4px;background:#fff;border-radius:8px;padding:4px;box-shadow:0 6px 16px #0002;width:260px;max-height:min(420px,65vh);overflow-y:auto;scrollbar-width:thin}
.hrt-submenu>button{border:0;width:100%;background:none;padding:6px 12px;text-align:left;border-radius:4px;display:flex;justify-content:space-between;gap:12px;line-height:22px}.hrt-submenu>button.selected{background:#fff5e9;color:#ff6600}.hrt-display-menu{width:180px}
.conversation-header .hrt-translation{margin-right:3px}.conversation-header .hrt-translate-settings>span:first-child:not(.hrt-chevron){max-width:150px;overflow:hidden;text-overflow:ellipsis}.conversation-header .conversation-title{min-width:45px}
.hrt-bubble{padding:0!important;overflow:hidden;white-space:normal;overflow-wrap:anywhere}.hrt-original{padding:9px 11px;white-space:pre-wrap}.hrt-original[hidden]{display:none!important}.hrt-result{padding:9px 11px;background:#00000003;white-space:pre-wrap;line-height:21px;font-size:13px;min-height:38px}.hrt-original:not([hidden])+.hrt-result{border-top:1px solid #00000008}.hrt-bubble>.message-subject{padding:10px 11px 0;margin:0}.hrt-result.is-error{color:#c96520;font-size:12px}.hrt-result button{border:0;background:none;color:#ff6600;padding:0;font:inherit;cursor:pointer}
.hrt-spinner{display:inline-block;width:10px;height:10px;border:1px solid #ffcfb2;border-top-color:#ff6600;border-radius:50%;animation:hrt-spin .7s linear infinite;vertical-align:-1px}@keyframes hrt-spin{to{transform:rotate(360deg)}}
.current-session-card[data-action="hrt-open"]{cursor:pointer}.hrt-history-card{display:block;width:100%;font:inherit;color:inherit;text-align:left;background:white;border:1px solid #e8e8e8;cursor:pointer;margin-bottom:10px}.hrt-history-card .session-reference{display:flex;align-items:center;gap:4px}.hrt-history-card .session-reference>.icon{width:12px;height:12px}.current-session-card[data-action="hrt-open"]:hover{border-color:#ffb47e;background:#fffdf9}.hrt-history-card:focus-visible{outline:2px solid #ff9b59;outline-offset:2px}
#hrt-overlays{position:relative;z-index:800}.hrt-mask{position:fixed;inset:0;background:#0007;z-index:800}.hrt-modal{position:fixed;z-index:801;inset:0;margin:auto;width:min(1280px,calc(100vw - 48px));height:85vh;max-height:calc(100dvh - 40px);background:#fff;border-radius:10px;box-shadow:0 8px 32px #0002;display:flex;flex-direction:column;color:#262626;font-family:inherit;outline:0}
.hrt-modal-header{height:55px;min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px 0 24px}.hrt-modal-header h2{font-size:16px;font-weight:500;margin:0;white-space:nowrap}.hrt-toolbar{display:flex;align-items:center;gap:14px}.hrt-tool{display:flex;align-items:center;justify-content:center;width:25px;height:28px;border:0;background:none;padding:4px;border-radius:4px;color:#555;cursor:pointer}.hrt-tool:hover{background:#f5f5f5;color:#262626}.hrt-tool img,.hrt-tool .icon,.hrt-tool .cdp-icon{width:16px;height:16px;display:block}.hrt-tool[aria-expanded="false"]{color:#595959}.hrt-tool:focus-visible,.hrt-translation button:focus-visible{outline:2px solid #ffa56b;outline-offset:1px}
.hrt-modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding-bottom:12px}.hrt-messages{flex:1;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 24px 30px 22px;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;overflow-anchor:none}.hrt-messages .session-start{margin:8px auto 22px;background:#fff7f0;border-radius:5px;padding:7px 12px;font-size:12px;display:table}.hrt-messages .session-start time{margin-left:7px;color:#999}.hrt-messages .system-line{text-align:center;font-size:12px;margin:16px 0 24px;color:#888}.hrt-messages .system-line time{margin-left:8px;color:#aaa;font-size:11px}
.hrt-messages .message-row{display:flex;align-items:flex-start;gap:10px;margin:22px 0 28px}.hrt-messages .message-row.agent{flex-direction:row-reverse}.hrt-messages .message-row>.avatar{margin-top:22px;position:relative;width:31px;height:31px;font-size:13px}.hrt-channel-dot{position:absolute;bottom:-2px;right:-1px;border:1px solid #fff;border-radius:50%;background:#ff6600;color:#fff;font-size:7px;width:11px;height:11px;line-height:9px;text-align:center;font-style:normal}.hrt-messages .message-content{max-width:85%;min-width:40px}.hrt-message-sender{font-size:12px;color:#999;line-height:18px;margin-bottom:4px}.hrt-message-sender time{font-size:11px;margin-left:8px;color:#aaa;opacity:0}.hrt-message-sender:hover time{opacity:1}.hrt-messages .agent .hrt-message-sender{text-align:right}.hrt-messages .message-bubble{border:1px solid #eee;border-radius:5px;font-size:13px;line-height:21px;background:#fff}.hrt-messages .agent .message-bubble{background:#c6ddff;border-color:#c6ddff}.hrt-messages .message-meta{text-align:left!important;color:#aaa;font-size:11px;line-height:16px;margin-top:3px}.hrt-messages .hrt-email .message-content{width:85%;max-width:85%}
.hrt-info{flex:0 0 310px;border-left:1px solid #f0f0f0;padding:17px 16px;overflow-y:auto;min-width:0;font-size:12px;scrollbar-width:thin}.hrt-info h3{font-size:12px;font-weight:400;margin:0 0 8px}.hrt-info dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:4px 3px;line-height:17px;margin:0}.hrt-info dt{color:#595959}.hrt-info dd{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right}.hrt-info a{color:#2864e8;text-decoration:none}.hrt-info-empty{color:#aaa;padding-top:4px}.hrt-modal.is-collapsed .hrt-messages{padding-right:26px}.hrt-suspended{position:fixed;right:24px;bottom:48px;display:flex;flex-direction:column;gap:8px}.hrt-suspended>div{display:flex;background:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 3px 14px #0002}.hrt-suspended button{background:none;border:0;padding:10px;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12px;color:#444}.hrt-suspended .icon{width:14px;height:14px}
.hrt-demo{border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:16px}.hrt-demo h3{margin:0 0 8px}.hrt-demo p{color:#888;font-size:12px}.hrt-demo label{display:flex;justify-content:space-between;margin:10px 0;font-size:12px}.hrt-demo select{border:1px solid #ddd;border-radius:4px;padding:3px;font:inherit}.hrt-demo [data-hrt-diagnostics]{font-size:11px;line-height:19px;color:#888}
@media(max-width:1350px){.hrt-info{flex-basis:285px}.hrt-toolbar{gap:10px}.conversation-header .hrt-translate-settings>span:first-child:not(.hrt-chevron){max-width:105px}.conversation-header .conversation-actions{gap:1px}}
@media(max-width:800px){.hrt-modal{width:calc(100vw - 24px);height:90dvh;max-height:calc(100dvh - 24px)}.hrt-modal-header{padding:0 12px;gap:8px}.hrt-toolbar{gap:6px}.hrt-info{flex-basis:235px;padding:14px 10px}.hrt-messages{padding:6px 12px 24px}.hrt-info dl{grid-template-columns:72px minmax(0,1fr)}.hrt-messages .message-content{max-width:85%}.hrt-modal .hrt-translation{font-size:11px}.hrt-submenu{width:225px}.hrt-display-menu{width:170px}}
@media(max-width:560px){.hrt-modal-body{position:relative}.hrt-info{flex:0 0 43%;font-size:11px}.hrt-info dl{display:block}.hrt-info dt{margin-top:8px}.hrt-info dd{text-align:left}.hrt-modal-header h2{font-size:14px}.hrt-toolbar{gap:2px}.hrt-translate-settings>span:first-child:not(.hrt-chevron){max-width:120px;overflow:hidden;text-overflow:ellipsis}.hrt-submenu{right:0;top:100%;width:245px;z-index:1}.hrt-menu{width:245px;right:-65px}.hrt-modal .hrt-tool{width:24px}.hrt-messages .message-content{max-width:calc(100% - 34px)}.hrt-messages .message-row{gap:5px}.hrt-messages .message-row>.avatar{width:24px;height:24px;font-size:11px}}
.hrt-menu-row .icon{transform:rotate(-90deg)}.hrt-suspended img{width:14px;height:14px}.hrt-tool img{opacity:.75}
/* Show only while the message area is scrolling; preserve its reading width. */
.hrt-messages.is-scrolling{scrollbar-color:#a6a6a6 transparent}
.hrt-messages::-webkit-scrollbar{width:6px;background:transparent}
.hrt-messages::-webkit-scrollbar-track{background:transparent}
.hrt-messages::-webkit-scrollbar-thumb{background:transparent;border-radius:4px}
.hrt-messages.is-scrolling::-webkit-scrollbar-thumb{background:#a6a6a6}
.hrt-messages::-webkit-scrollbar-button{display:none}
