*, *:before, *:after {
    -moz-box-sizing: border-box;
    /* Firefox 1, probably can drop this */
    -webkit-box-sizing: border-box;
    /* Safari 3-4, also probably droppable */
    box-sizing: border-box;
    /* Everything else */
}

/* Vue 挂载前隐藏带 v-cloak 的节点，避免 {{ }} 原样露出（如顶栏 #snackbar） */
[v-cloak] {
    display: none !important;
}

:root {
    --agent-theme-color: #007bff;
    --agent-theme-color-hover: #0069d9;
    --agent-theme-color-active: #0056b3;
    --agent-bot-on-color: #00aa39;
    --agent-bot-off-color: var(--agent-theme-color);
    /* 正文与表单控件 UI 字体栈（textarea/input 等 UA 默认不继承 body） */
    --agent-font-sans: Roboto, "Helvetica Neue", Helvetica, sans-serif, "Hiragino Sans GB", "Microsoft YaHei";
    --agent-left-nav-icon-size: 26px;
    --agent-left-nav-icon-code-size: 22px;
}

@font-face{
    font-weight:normal;
    font-style:normal;
    font-family:"weui";
    src:url('data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx+AAABfAAAAFZjbWFw65cFHQAAAhwAAAJQZ2x5ZvCRR/EAAASUAAAKtGhlYWQMPROtAAAA4AAAADZoaGVhCCwD+gAAALwAAAAkaG10eEJo//8AAAHUAAAASGxvY2EYqhW4AAAEbAAAACZtYXhwASEAVQAAARgAAAAgbmFtZeNcHtgAAA9IAAAB5nBvc3T6bLhLAAARMAAAAOYAAQAAA+gAAABaA+j/////A+kAAQAAAAAAAAAAAAAAAAAAABIAAQAAAAEAACbZbxtfDzz1AAsD6AAAAADUm2dvAAAAANSbZ2///wAAA+kD6gAAAAgAAgAAAAAAAAABAAAAEgBJAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQOwAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6gHqEQPoAAAAWgPqAAAAAAABAAAAAAAAAAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+j//wPoAAAD6AAAAAAABQAAAAMAAAAsAAAABAAAAXQAAQAAAAAAbgADAAEAAAAsAAMACgAAAXQABABCAAAABAAEAAEAAOoR//8AAOoB//8AAAABAAQAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAANwAAAAAAAAAEQAA6gEAAOoBAAAAAQAA6gIAAOoCAAAAAgAA6gMAAOoDAAAAAwAA6gQAAOoEAAAABAAA6gUAAOoFAAAABQAA6gYAAOoGAAAABgAA6gcAAOoHAAAABwAA6ggAAOoIAAAACAAA6gkAAOoJAAAACQAA6goAAOoKAAAACgAA6gsAAOoLAAAACwAA6gwAAOoMAAAADAAA6g0AAOoNAAAADQAA6g4AAOoOAAAADgAA6g8AAOoPAAAADwAA6hAAAOoQAAAAEAAA6hEAAOoRAAAAEQAAAAAARgCMANIBJAF4AcQCMgJgAqgC/ANIA6YD/gROBKAE9AVaAAAAAgAAAAADrwOtABQAKQAAASIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAfV4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NlteA608O2Rn8GdjOzw8O2Nn8GdkOzz8rzc1W17bXlw1Nzc1XF7bXls1NwAAAAACAAAAAAOzA7MAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTBwYiLwEmNjsBETQ2OwEyFhURMzIWAe52Z2Q7PT07ZGd2fGpmOz4+O2ZpIXYOKA52Dg0XXQsHJgcLXRcNA7M+O2ZqfHZnZDs9PTtkZ3Z9aWY7Pv3wmhISmhIaARcICwsI/ukaAAMAAAAAA+UD5QAXACMALAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAxQrASI1AzQ7ATIHJyImNDYyFhQGAe6Ecm9BRERBb3KEiXZxQkREQnF1aQIxAwgCQgMBIxIZGSQZGQPkREJxdomEcm9BRERBb3KEinVxQkT9HQICAWICAjEZIxkZIxkAAAAAAgAAAAADsQPkABkALgAAAQYHBgc2BREUFxYXFhc2NzY3NjURJBcmJyYTAQYvASY/ATYyHwEWNjclNjIfARYB9VVVQk+v/tFHPmxebGxdbT1I/tGvT0JVo/7VBASKAwMSAQUBcQEFAgESAgUBEQQD4xMYEhk3YP6sjnVlSD8cHD9IZXWOAVRgNxkSGP62/tkDA48EBBkCAVYCAQHlAQIQBAAAAAADAAAAAAOxA+QAGwAqADMAAAEGBwYHBgcGNxEUFxYXFhc2NzY3NjURJBcmJyYHMzIWFQMUBisBIicDNDYTIiY0NjIWFAYB9UFBODssO38gRz5sXmxsXW09SP7YqFBBVW80BAYMAwImBQELBh4PFhYeFRUD5A8SDhIOEikK/q2PdWRJPh0dPklkdY8BU141GRIY/AYE/sYCAwUBOgQG/kAVHxUVHxUAAAACAAAAAAPkA+QAFwAtAAABIgcGBwYVFBcWFxYzMjc2NzY1NCcmJyYTAQYiLwEmPwE2Mh8BFjI3ATYyHwEWAe6Ecm9BQ0NCbnODiXVxQkREQnF1kf6gAQUBowMDFgEFAYUCBQEBQwIFARUEA+NEQnF1iYNzbkJDQ0FvcoSJdXFCRP6j/qUBAagEBR4CAWYBAQENAgIVBAAAAAQAAAAAA68DrQAUACkAPwBDAAABIgcGBwYUFxYXFjI3Njc2NCcmJyYDIicmJyY0NzY3NjIXFhcWFAcGBwYTBQ4BLwEmBg8BBhYfARYyNwE+ASYiFzAfAQH1eGdkOzw8O2Rn8GZkOzw8O2RmeG5eWzY3NzZbXtteWzY3NzZbXmn+9gYSBmAGDwUDBQEGfQUQBgElBQELEBUBAQOtPDtkZ/BnYzs8PDtjZ/BnZDs8/K83NVte215cNTc3NVxe215bNTcCJt0FAQVJBQIGBAcRBoAGBQEhBQ8LBAEBAAABAAAAAAO7AzoAFwAAEy4BPwE+AR8BFjY3ATYWFycWFAcBBiInPQoGBwUHGgzLDCELAh0LHwsNCgr9uQoeCgGzCyEOCw0HCZMJAQoBvgkCCg0LHQv9sQsKAAAAAAIAAAAAA+UD5gAXACwAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMHBi8BJicmNRM0NjsBMhYVExceAQHvhHJvQUNDQm5zg4l1cUJEREJxdVcQAwT6AwIEEAMCKwIDDsUCAQPlREJxdYmDc25CQ0NBb3KEiXVxQkT9VhwEAncCAgMGAXoCAwMC/q2FAgQAAAQAAAAAA68DrQADABgALQAzAAABMB8BAyIHBgcGFBcWFxYyNzY3NjQnJicmAyInJicmNDc2NzYyFxYXFhQHBgcGAyMVMzUjAuUBAfJ4Z2Q7PDw7ZGfwZmQ7PDw7ZGZ4bl5bNjc3Nlte215bNjc3NltemyT92QKDAQEBLDw7ZGfwZ2M7PDw7Y2fwZ2Q7PPyvNzVbXtteXDU3NzVcXtteWzU3AjH9JAAAAAMAAAAAA+QD5AAXACcAMAAAASIHBgcGFRQXFhcWMzI3Njc2NTQnJicmAzMyFhUDFAYrASImNQM0NhMiJjQ2MhYUBgHuhHJvQUNDQm5zg4l1cUJEREJxdZ42BAYMAwInAwMMBh8PFhYeFhYD40RCcXWJg3NuQkNDQW9yhIl1cUJE/vYGBf7AAgMDAgFABQb+NhYfFhYfFgAABAAAAAADwAPAAAgAEgAoAD0AAAEyNjQmIgYUFhcjFTMRIxUzNSMDIgcGBwYVFBYXFjMyNzY3NjU0Jy4BAyInJicmNDc2NzYyFxYXFhQHBgcGAfQYISEwISFRjzk5yTorhG5rPT99am+DdmhlPD4+PMyFbV5bNTc3NVte2l5bNTc3NVteAqAiLyIiLyI5Hf7EHBwCsT89a26Ed8w8Pj48ZWh2g29qffyjNzVbXtpeWzU3NzVbXtpeWzU3AAADAAAAAAOoA6gACwAgADUAAAEHJwcXBxc3FzcnNwMiBwYHBhQXFhcWMjc2NzY0JyYnJgMiJyYnJjQ3Njc2MhcWFxYUBwYHBgKOmpocmpocmpocmpq2dmZiOjs7OmJm7GZiOjs7OmJmdmtdWTQ2NjRZXdZdWTQ2NjRZXQKqmpocmpocmpocmpoBGTs6YmbsZmI6Ozs6YmbsZmI6O/zCNjRZXdZdWTQ2NjRZXdZdWTQ2AAMAAAAAA+kD6gAaAC8AMAAAAQYHBiMiJyYnJjQ3Njc2MhcWFxYVFAcGBwEHATI3Njc2NCcmJyYiBwYHBhQXFhcWMwKONUBCR21dWjU3NzVaXdpdWzU2GBcrASM5/eBXS0grKysrSEuuSkkqLCwqSUpXASMrFxg2NVtd2l1aNTc3NVpdbUdCQDX+3jkBGSsrSEuuSkkqLCwqSUquS0grKwAC//8AAAPoA+gAFAAwAAABIgcGBwYQFxYXFiA3Njc2ECcmJyYTFg4BIi8BBwYuATQ/AScmPgEWHwE3Nh4BBg8BAfSIdHFDRERDcXQBEHRxQ0REQ3F0SQoBFBsKoqgKGxMKqKIKARQbCqKoChsUAQqoA+hEQ3F0/vB0cUNERENxdAEQdHFDRP1jChsTCqiiCgEUGwqiqAobFAEKqKIKARQbCqIAAAIAAAAAA+QD5AAXADQAAAEiBwYHBhUUFxYXFjMyNzY3NjU0JyYnJhMUBiMFFxYUDwEGLwEuAT8BNh8BFhQPAQUyFh0BAe6Ecm9BQ0NCbnODiXVxQkREQnF1fwQC/pGDAQEVAwTsAgEC7AQEFAIBhAFwAgMD40RCcXWJg3NuQkNDQW9yhIl1cUJE/fYCAwuVAgQCFAQE0AIFAtEEBBQCBQGVCwMDJwAAAAUAAAAAA9QD0wAjACcANwBHAEgAAAERFAYjISImNREjIiY9ATQ2MyE1NDYzITIWHQEhMhYdARQGIyERIREHIgYVERQWOwEyNjURNCYjISIGFREUFjsBMjY1ETQmKwEDeyYb/XYbJkMJDQ0JAQYZEgEvExkBBgkNDQn9CQJc0QkNDQktCQ0NCf7sCQ0NCS0JDQ0JLQMi/TQbJiYbAswMCiwJDS4SGRkSLg0JLAoM/UwCtGsNCf5NCQ0NCQGzCQ0NCf5NCQ0NCQGzCQ0AAAAAEADGAAEAAAAAAAEABAAAAAEAAAAAAAIABwAEAAEAAAAAAAMABAALAAEAAAAAAAQABAAPAAEAAAAAAAUACwATAAEAAAAAAAYABAAeAAEAAAAAAAoAKwAiAAEAAAAAAAsAEwBNAAMAAQQJAAEACABgAAMAAQQJAAIADgBoAAMAAQQJAAMACAB2AAMAAQQJAAQACAB+AAMAAQQJAAUAFgCGAAMAAQQJAAYACACcAAMAAQQJAAoAVgCkAAMAAQQJAAsAJgD6d2V1aVJlZ3VsYXJ3ZXVpd2V1aVZlcnNpb24gMS4wd2V1aUdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAHcAZQB1AGkAUgBlAGcAdQBsAGEAcgB3AGUAdQBpAHcAZQB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwAHcAZQB1AGkARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETAAZjaXJjbGUIZG93bmxvYWQEaW5mbwxzYWZlX3N1Y2Nlc3MJc2FmZV93YXJuB3N1Y2Nlc3MOc3VjY2Vzcy1jaXJjbGURc3VjY2Vzcy1uby1jaXJjbGUHd2FpdGluZw53YWl0aW5nLWNpcmNsZQR3YXJuC2luZm8tY2lyY2xlBmNhbmNlbAZzZWFyY2gFY2xlYXIEYmFjawZkZWxldGUAAAAA') format('truetype');
}


@font-face {
    font-family: agent__icon;
    src: url(../font/iconfont.eot?v=220);
    src: url(../font/iconfont.eot?v=220#iefix) format('embedded-opentype'),url(../font/iconfont.svg?v=220#iconfont) format('svg'),url(../font/iconfont.woff?v=220) format('woff'),url(../font/iconfont.ttf?v=220) format('truetype')
}

.agent__icon {
    font-family: icon!important;
}

.agent__font-icon {
    font-family: icon!important;
    font-size: 22px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-app-region: no-drag;
}

@font-face {
    font-family: 'icon';
    src: url('../font/fonteditor.eot?v=20260712');
    src: url('../font/fonteditor.eot?v=20260712#iefix') format('embedded-opentype'),
    url('../font/fonteditor.woff?v=20260712') format('woff'),
    url('../font/fonteditor.ttf?v=20260712') format('truetype'),
    url('../font/fonteditor.svg?v=20260712#iconfont') format('svg');
}

.agent__font-icon-circle {
    font-family: icon!important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: auto 12px;
    font-size: 22px;
    color: var(--agent-theme-color);
    cursor: pointer;
    user-select: none;
    line-height: 100%;
    padding: 2px;
}

.agent__font-icon-circle:hover {
    background-color: var(--agent-theme-color);
    color: #fff;
    border-radius: 200px;
}

.agent__font-icon-gray {
    font-family: icon!important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: auto 12px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    user-select: none;
}

.agent__font-icon-gray:hover {
    color: var(--agent-theme-color);
    border-radius: 200px;
}

body, html {
    height: 100%;
    margin:0;
    font-family: var(--agent-font-sans);
    font-size: 16px;
    color: #333;
}

/* 表单控件在多数浏览器中不继承 body 的 font-family，需显式继承 */
button,
input,
select,
textarea,
option,
optgroup {
    font-family: inherit;
}

a {
    text-decoration: none;
}

.agent__select-area .agent__list-hover:hover {
    background-color: #e2f2ff;
    -webkit-transition: background-color 0.15s ease;
    transition: background-color 0.15s ease;
    cursor: default;
}

.agent__list-hover:hover {
    background-color: #f2f2f2;
    -webkit-transition: 1s all;
    transition: 1s all;
    cursor: default;
}

.agent__panel button:disabled, .agent__panel input:disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.agent__close {
    margin-left: -12px;
    height: 25px;
    width: 25px;
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 10001;
    cursor: pointer;
}

.agent__close:before, .agent__close:after {
    content: "";
    background: #666;
    transform: translate(50%, -50%) rotate(45deg) scale(.9);
    position: absolute;
    top: 50%;
    right: 50%;
}

.agent__close:before {
    height: 25px;
    width: 2px;
}

.agent__close:after {
    height: 2px;
    width: 25px;
}

.agent__body {
    padding-top: 0;
    height: 100%;
    display:flex;
    justify-content: center;
    align-items:center;
}


.agent__panel .agent__flexbox {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    display: -ms-flexbox;
}

/*注册登录相关*/

.agent__panel .agent__form-title {
    color: #333;
    font-size: 32px;
    padding: 0 14px 18px;
    font-weight: 400;
    margin: 0;
}

.agent__panel .agent__form-cells {
    line-height: 1.41176471;
    font-size: 16px;
    overflow: hidden;
    position: relative;
    width: 420px;
    margin: 0 auto;
}

.agent__panel .agent__form-cell {
    padding: 0 16px;
    height: 50px;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.agent__panel .agent__form-cell:before {
    content: " ";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.1);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    left: 15px;
    z-index: 2;
}

.agent__panel .agent__form-label {
    display: block;
    width: 76px;
    word-wrap: break-word;
    word-break: break-all;
    font-size:15px;
}

.agent__panel .agent__form-input {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    width: 100%;
    border: 0;
    outline: 0;
    -webkit-appearance: none;
    background-color: transparent;
    font-size: inherit;
    color: inherit;
    height: 50px;
    padding-left:14px;
}

.agent__panel .agent__form-captcha {
    height: 50px;
    vertical-align: middle;
    width: 100px;
    margin-right: -14px;
}

.agent__panel .agent__form-link {
    padding: 14px 14px 0;
}

.agent__panel .agent__form-link a {
    color: #0060a0;
}

.agent__panel .agent__form-btn {
    padding: 26px 3px;
}

.agent__panel .agent__form-btn .agent__btn-primary {
    font-size: 15px !important;
    line-height: 40px;
    margin:0 10px;
}
/*end*/


.agent__left-bar {
    height: 100%;
    float:left;
    width:60px;
    background-color: #d9e6f5;
    padding:0;
    user-select: none;
    position: relative;
    overflow: visible;
    z-index: 2;
    -webkit-app-region: drag;
    -webkit-user-select: none;
}

.agent__left-bar.agent__left-bar--menu-open {
    z-index: 3000;
}

.agent__left-bar .agent__badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

.agent__left-nav-item {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    position: relative;
    color: #7c8b9d;
    -webkit-app-region: no-drag;
}

.agent__left-nav-item .agent__left-icon {
    margin-top: 0;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--agent-left-nav-icon-size, 26px);
    height: var(--agent-left-nav-icon-size, 26px);
    font-size: var(--agent-left-nav-icon-size, 26px);
    line-height: 1;
    vertical-align: top;
}

.agent__left-nav-item .agent__left-icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--agent-left-nav-icon-code-size, 22px);
    line-height: 1;
}

.agent__left-nav-item .agent__left-icon-img {
    display: block;
    width: var(--agent-left-nav-icon-code-size, 22px);
    height: var(--agent-left-nav-icon-code-size, 22px);
    object-fit: contain;
    flex-shrink: 0;
}

.agent__left-nav-label {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
    color: inherit;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__left-icon {
    margin-top:26px;
    width: 100%;
    padding-left:0;
    text-align: center;
    font-size:26px;
    color:#7c8b9d;
    cursor:pointer;
    position: relative;
}

.agent__left-bar .agent__selected {
    color:#007dff !important;
}

.agent__left-bar .agent__bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* 与会话列表右键菜单同一套毛玻璃样式；此处为侧栏内绝对定位，覆盖 .agent__panel .agent__contextmenu 的 fixed */
.agent__left-bar .agent__sub-menu.agent__contextmenu {
    position: absolute;
    bottom: 20px;
    left: 50px;
    top: auto;
    right: auto;
    z-index: 2500;
    width: 224px;
    min-width: 224px;
    box-sizing: border-box;
    -webkit-app-region: no-drag;
}

.agent__left-bar .agent__account-language-item {
    position: relative;
}

.agent__account-language-icon {
    font-size: 17px;
}

.agent__account-language-current {
    max-width: 92px;
    margin-left: 12px;
    overflow: hidden;
    color: #68717d;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__left-bar .agent__account-language-item > .agent__contextmenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    color: #888;
    font-size: 12px;
    line-height: 1;
    transform: rotate(-90deg);
    transform-origin: center;
}

.agent__account-language-check {
    color: var(--agent-theme-color);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.agent__account-language-flag {
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    margin-right: 9px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* 与一级菜单同级渲染，避免嵌套 backdrop-filter 合成层影响二级毛玻璃。 */
.agent__left-bar .agent__account-language-pop.agent__contextmenu {
    position: absolute;
    left: 268px;
    top: auto;
    right: auto;
    bottom: 20px;
    z-index: 2600;
    min-width: 168px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    -webkit-app-region: no-drag;
}

/* 两个独立浮层直接采样同一页面背景，使用完全一致的毛玻璃参数。 */
.agent__panel .agent__left-bar .agent__sub-menu.agent__contextmenu.agent__glass-surface,
.agent__panel .agent__left-bar .agent__account-language-pop.agent__contextmenu.agent__glass-surface {
    background-color: rgba(250, 252, 255, 0.9);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    background-clip: padding-box;
}

.agent__left-bar .agent__account-language-pop.agent__contextmenu > ul {
    box-sizing: border-box;
    max-height: calc(100vh - 44px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.agent__left-bar .agent__account-language-pop.agent__contextmenu > ul > li {
    white-space: nowrap;
}

.agent__panel .agent__contextmenu ul li.agent__account-menu-divider {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

/* macOS 桌面端（Electron）：为系统交通灯预留顶栏，略加宽左侧栏；Windows 不受影响 */
.is-desk-mac .agent__left-bar {
    width: 64px;
    padding-top: 40px;
    box-sizing: border-box;
}

.is-desk-mac .agent__left-bar .agent__sub-menu {
    left: 64px;
}

.is-desk-mac .agent__left-bar .agent__account-language-pop.agent__contextmenu {
    left: 282px;
}

.is-desk-mac .agent__left-bar .agent__avatar {
    margin-top: 4px;
    margin-bottom: 20px;
}

.is-desk-mac .agent__left-bar .agent__avatar + .agent__left-nav-item {
    margin-top: 18px;
}

.agent__main {
    min-width: 1024px;
    height: 100%;
    margin: 0 auto;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    overflow: hidden;
    min-height: 600px;
    width: 100%;
    position: relative;
}

.agent__left-main-panel {
    position: relative;
    width: 330px;
    height: 100%;
    float: left;
    background: #FBFBFB;
    border-top:1px solid #d6d6d6;
    border-bottom:1px solid #d6d6d6;
}

.agent__left-main-panel .agent__selected {
    background-color: #e2f2ff;
    box-shadow: none;
}

.agent__left-panel-head {
    padding: 15px 0 15px;
    -webkit-app-region: drag;
    -webkit-user-select: none;
    user-select: none;
}

.agent__right-main-panel {
    position: relative;
    background-color: #f0f2f5;
    height: 100%;
    overflow: hidden;
    border:1px solid #d6d6d6;
}

.agent__avatar img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    display: block;
    cursor: pointer;
    object-fit: cover;
}

.agent__avatar {
    width: 44px;
    height: 44px;
    position: relative;
}

.agent__avatar-big {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.agent__avatar-big img{
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.agent__avatar-big-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.agent__avatar-big:hover .agent__avatar-big-mask {
    opacity: 1;
}

.agent__avatar-big .icon {
    font-family: icon !important;
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    color: #fff;
}

.agent__left-bar .agent__avatar{
    margin: 13px auto 36px;
    width: 44px;
    height: 44px;
    overflow: visible;
    -webkit-app-region: no-drag;
}

.agent__search-bar {
    position: relative;
    width: 280px;
    margin: 0 auto;
    -webkit-app-region: drag;
}

.agent__search-bar:before {
    content: '\eba1' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #777;
    position: absolute;
    left: 8px;
    top: 50%;
    margin-top: -8px;
    font-size: 16px;
    line-height: 1;
}

.agent__search-bar-close {
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font-family: "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #777;
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    -webkit-app-region: no-drag;
}

.agent__search-bar-close:hover {
    color: #333;
}

.agent__search-bar input {
    width: 280px;
    height: 30px;
    line-height: 30px;
    border: 0;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background-color: #f0f2f5;
    color: #333;
    padding: 0 30px 0 30px;
    font-size: 13px;
    box-sizing: border-box;
    -webkit-app-region: no-drag;
}

.agent__select-area {
    /*position: absolute;*/
    top: 60px;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: visible;
    width: auto;
    cursor: default;
    user-select: none;
    height: calc(100% - 55px);
    overflow-y: scroll;
}

.agent__scroll-wrapper {
    /*overflow-y: auto!important;
    overflow-x: hidden;*/
    padding: 0!important;
    position: relative;
}

.agent__select-area .agent__scroll-wrapper {
    height: 100%;
    position: relative;
}

.agent__scroll-wrapper>.agent__scroll-content {
    border: none!important;
    box-sizing: content-box!important;
    height: auto;
    left: 0;
    margin: 0;
    max-height: none!important;
    max-width: none!important;
    overflow: auto!important;
    padding: 0;
    position: relative!important;
    top: 0;
    width: auto!important;
}

.agent__chatting_item {
    overflow: hidden;
    padding: 12px 12px 11px;
    border: 1px solid transparent;
    border-top: 1px solid #eee;
    position: relative;
    display: flex;

}

.agent__chatting_item .agent__time {
    float: right;
    color: #989898;
    font-size: 13px;
    text-align: right;
    height: 19px;
    line-height: 1.5;
}

.agent__chatting_item .agent__avatar {
    float: left;
    margin-right: 10px;
    position: relative;
    background-blend-mode: hue;
}

.agent__chatting_item .agent__avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    object-fit: cover;
}

.agent__offline {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray;
}

.agent__chatting_item .agent__info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.agent__chatting_item .agent__info .agent__nickname-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.agent__chatting_item .agent__info .agent__nickname {
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 20px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    display: inline-block;
    vertical-align: top;
    margin:0;
}

.agent__chat-pin-mark,
.agent__chat-forbidden-mark,
.agent__chat-bot-mark {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
}

.agent__chat-forbidden-mark {
    color: #c62828;
}

.agent__chat-pin-mark {
    color: #989898;
}

.agent__chat-bot-mark--on {
    color: var(--agent-bot-on-color);
}

.agent__chat-bot-mark--off {
    color: var(--agent-bot-off-color);
}

.agent__chat-list-markers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agent__chatting-item-side,
.agent__history-item-side {
    margin-left: auto;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1px 0 2px;
}

.agent__chatting-item-side .agent__time,
.agent__history-item-side .agent__time {
    float: none;
    height: auto;
    line-height: 20px;
}

.agent__chatting_item .agent__info .agent__msg {
    color: #989898;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    height: 1.5em;
    margin: 5px 0 0 0;
}

.agent__chatting_item  .agent__badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* 访客会话列表：在线角标贴头像右下，与图底/图右对齐；离线不展示 */
.agent__chatting_item .agent__visitor-online-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #22c55e;
    border: 2px solid #fff;
    /*box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);*/
    pointer-events: none;
    z-index: 1;
}

.agent__panel .agent__background-selected {
    background-color: #e2f2ff;
}

/* 浅色毛玻璃浮层（右键菜单等）；叠在侧栏等复杂层上加 agent__glass-surface--elevated */
.agent__glass-surface,
.agent__panel .agent__contextmenu.agent__glass-surface {
    background-color: rgba(255, 255, 255, 0.76);
    -webkit-backdrop-filter: blur(5px) saturate(1.15);
    backdrop-filter: blur(5px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    border-radius: 6px;
}

.agent__glass-surface--elevated {
    -webkit-app-region: no-drag;
    z-index: 2500;
}

.agent__panel .agent__contextmenu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fff;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    border-radius: 6px;
    min-width: 168px;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    position: fixed;
    z-index: 99;
    cursor: default;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
}

.agent__panel .agent__contextmenu.agent__glass-surface {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background-color: rgba(255, 255, 255, 0.76);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.agent__panel .agent__contextmenu ul,
.agent__panel .agent__slash-reply-pop__list {
    margin: 0;
    /* 与外壳留白：悬停底色不贴齐玻璃边缘 */
    padding: 5px 6px;
    list-style: none;
}

.agent__panel .agent__contextmenu ul li,
.agent__panel .agent__slash-reply-pop__item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin: 1px 0;
    border-radius: 4px;
}

.agent__contextmenu-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.agent__contextmenu-label {
    flex: 1;
    min-width: 0;
}

.agent__contextmenu-icon--theme {
    color: var(--agent-theme-color);
}

.agent__contextmenu-icon--bot-on {
    color: var(--agent-bot-on-color);
}

.agent__contextmenu-icon--bot-off {
    color: var(--agent-bot-off-color);
}

.agent__contextmenu-icon--danger {
    color: #c62828;
}

.agent__contextmenu-icon--flip {
    transform: scaleY(-1);
}

.agent__panel .agent__contextmenu ul li:hover,
.agent__panel .agent__contextmenu ul li.agent__hover,
.agent__panel .agent__slash-reply-pop__item:hover,
.agent__panel .agent__slash-reply-pop__item.agent__slash-reply-pop__item--active {
    background-color: #e2f2ff;
}

.agent__panel .agent__contextmenu ul li:first-child,
.agent__panel .agent__slash-reply-pop__item:first-child {
    margin-top: 0;
}

.agent__panel .agent__contextmenu ul li:last-child,
.agent__panel .agent__slash-reply-pop__item:last-child {
    margin-bottom: 0;
}

.agent__panel .agent__contextmenu ul li.agent__selected,
.agent__panel .agent__contextmenu ul li.agent__selected:hover {
    background-color: #e2f2ff;
}

.agent__contextmenu-item--has-sub {
    position: relative;
    cursor: pointer;
}

.agent__contextmenu-arrow {
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 12px;
    color: #888;
    line-height: 1;
    transform: rotate(180deg);
}

.agent__contextmenu-sub {
    position: absolute;
    left: calc(100% - 6px);
    top: 0;
    padding-left: 6px;
    z-index: 2600;
    min-width: 148px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.agent__contextmenu-sub > .agent__contextmenu {
    position: static;
}

.agent__panel .agent__arr:after {
    content: '';
    border-color: #2a2a2a;
    border-style: solid;
    border-width: 1px 1px 0 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
    height: 16px;
    width: 16px;
    position: relative;
    transform: rotate(45deg) scale(.5);
    -webkit-transform: rotate(45deg) scale(.5);
}

.agent__badge {
    min-width: 8px;
    vertical-align: middle;
    background-color: #ff3b30;
    border-radius: 20px;
    color: #fff;
    display: inline-block;
    padding: 3px 5px;
    line-height: 10px;
    font-size: 10px;
    font-family: Verdana;
    text-align: center;
    font-style: normal;
    font-weight: normal;
}

.agent__chat-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #FBFBFB;
    border-bottom: 1px solid #d6d6d6;
    flex: 1;
    align-items: center;
    display: flex;
    justify-content:space-between;
    -webkit-app-region: drag;
    -webkit-user-select: none;
    user-select: none;
}

.agent__manual-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.02em;
}

.agent__manual-tag--requested {
    color: #b45309;
    background: #ffedd5;
}

.agent__visitor-list-tag,
.agent__visitor-list-tag-more {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    height: 18px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.agent__visitor-list-tag {
    max-width: 72px;
    padding: 0 6px;
    color: var(--visitor-list-tag-color, #5b8ff9);
    background: color-mix(in srgb, var(--visitor-list-tag-color, #5b8ff9) 14%, white);
}

.agent__visitor-list-tag > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent__visitor-list-tag-more {
    flex: 0 0 auto;
    min-width: 20px;
    justify-content: center;
    padding: 0 5px;
    color: #64748b;
    background: #f1f5f9;
}

.agent__visitor-online-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    color: #137333;
    background: #e6f4ea;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.02em;
}

.agent__chat-head-title-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    -webkit-app-region: drag;
}

.agent__chat-head-title-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.agent__visitor-presence-tag {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
    -webkit-app-region: no-drag;
}

.agent__visitor-presence-tag--online {
    color: #137333;
    background: #e6f4ea;
}

.agent__visitor-presence-tag--offline {
    color: #64748b;
    background: #f1f5f9;
}

.agent__manual-tag--head {
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 22px;
    -webkit-app-region: no-drag;
}

.agent__chat-head .agent__title{
    font-size:17px;
    padding:0 20px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.agent__chat-head .agent__chat-head-title-cluster .agent__title {
    padding: 0;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__chat-head-spacer {
    flex: none;
    width: 120px;
}

.agent__chat-head .agent__font-icon {
    font-size:20px;
    padding-right:20px;
    color:#b6b6b6;
    cursor: pointer;
    user-select: none;
    -webkit-app-region: no-drag;
}


.agent__chat-body {
    position: absolute;
    bottom: 181px;
    overflow-y: auto!important;
    overflow-x: hidden!important;
    padding: 0!important;
    top: 60px;
    right: 0;
    left: 0;
    width: calc(100% - 330px);
}

.agent__history_body {
    bottom: 0 !important;
    top: 60px !important;
}

.agent__history-agent-panel {
    width: 240px;
    border-right: 1px solid #d6d6d6;
}

.agent__history-agent-panel .agent__search-bar,
.agent__history-agent-panel .agent__search-bar input {
    width: 200px;
}

.agent__history-agent-panel .agent__chatting_item .agent__info {
    flex: 1;
    min-width: 0;
}

.agent__history-session-tag {
    display: inline-block;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.agent__history-session-tag--active {
    color: #137333;
    background-color: #e6f4ea;
}

.agent__history-session-tag--ended {
    color: #777;
    background-color: #eeeeee;
}

.agent__chat-none {
    position: absolute;
    bottom: 1px;
    overflow-y: auto!important;
    overflow-x: hidden!important;
    padding: 0!important;
    top: 60px;
    right: 0;
    left: 0;
}

.agent__flex1 {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.agent__clearfix:after {
    content: "";
    clear: both;
    display: block;
}

.agent__chat-content {
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    font-family: inherit;
    padding: 16px;
    position: relative;
}

.agent__history-chat-content {
    padding-bottom: 50px;
}

.agent__history-rechat {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 330px);
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.agent__panel ul, .agent__panel ol, .agent__panel li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agent__chat-content ul li {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    display: -ms-flexbox;
    margin-bottom: 12px;
}

.agent__chat-content ul li.agent__chat-msg-time {
    padding-top: 12px;
}

.agent__chat-content ul li.agent__chat-msg-notice {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
}

.agent__chat-content ul li.agent__chat-msg-time span, .agent__chat-content ul li.agent__chat-msg-notice span {
    color: #b0b0b0;
    border-radius: 3px;
    display: block;
    font-size: 12px;
    font-family: Verdana;
    overflow: hidden;
    margin: 0 auto;
    padding: 4px;
    line-height: normal;
    max-width: 90%;
}

.agent__session-ended-divider {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    margin: 12px 0 16px;
    list-style: none;
    box-sizing: border-box;
    gap: 10px;
}

.agent__session-ended-divider-line {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    height: 0;
    border: none;
    border-top: 1px dashed #c5c5c5;
    max-width: 38%;
}

.agent__session-ended-divider-text {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 12px;
    color: #9a9a9a;
    line-height: 1.2;
    white-space: nowrap;
    font-family: Verdana, sans-serif;
}

.agent_workspace_bg {

}

.agent__chat-content ul li.agent__chat-msg-notice span a {
    color: #0060a0;
}

.agent__chat-content ul li .agent__chat-msg-avatar {
    display: block;
    overflow: hidden;
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.agent__chat-content ul li .agent__chat-msg-avatar img {
    vertical-align: top;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.agent__chat-content ul li .agent__chat-msg-content {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-author {
    color: #aaa;
    font-size: 10px;
    margin: 3px 10px;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-msg {
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    color: #444;
    float: left;
    font-size: 14px;
    margin: 0 10px;
    padding: 10px;
    word-wrap: break-word;
    word-break: break-all;
    min-height: 18px;
    max-width: calc(100% - 60px);
    position: relative;
    transition: all .3s;
    /*user-select: none;*/
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-msg .agent__chat-msg-face {
    vertical-align: top;
    height: 25px;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-msg a {
    color: #0060a0;
    font-family: arial;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-msg a:active {
    background-color: #c2e6fd;
}

.agent__chat-msg-match {
    cursor: pointer;
    color: inherit;
    background: rgba(77, 124, 243, .3);
    border-bottom: 1px dashed rgba(77, 124, 243, .7);
    border-radius: 2px;
    transition: background-color .16s ease, border-color .16s ease;
}

.agent__chat-msg-match:hover {
    background: rgba(77, 124, 243, .18);
    border-bottom-color: #4d7cf3;
}

.agent__chat-msg-match-popover {
    position: fixed;
    z-index: 1200;
    width: 236px;
    box-sizing: border-box;
    padding: 10px 11px;
    color: #454545;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(46, 72, 115, .12);
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(28, 46, 77, .16);
    text-align: left;
}

.agent__chat-msg-match-popover-item + .agent__chat-msg-match-popover-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef1f5;
}

.agent__chat-msg-match-popover-label {
    display: block;
    margin-bottom: 3px;
    color: #7d8795;
    font-size: 12px;
}

.agent__chat-msg-match-popover-value {
    display: block;
    overflow: hidden;
    color: #2c3440;
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__chat-msg-match-popover-current {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #99a2ad;
    font-size: 11px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__chat-msg-match-popover-action {
    float: right;
    margin-top: 4px;
    padding: 0;
    color: #4d7cf3;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.agent__chat-msg-match-popover-action:disabled {
    color: #a8b0bc;
    cursor: default;
}

.agent__chat-msg-match-popover-status {
    color: #52a26f;
    font-size: 12px;
}

.agent__chat-content ul li.agent__chat-msg-others .agent__chat-msg-content .agent__chat-msg-msg {
    background-color: #fff;
    border-color: #f0f0f0;
}

.agent__chat-content ul li.agent__chat-msg-others .agent__chat-msg-content .agent__chat-msg-msg:active, .agent__chat-content ul li.agent__chat-msg-others .agent__chat-msg-content .agent__chat-msg-msg.taped {
    background-color: #f2f2f2;
    border-color: #e9e9e9;
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-author {
    text-align: right;
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg {
    float: right;
    background-color: #fff;
    border-color: #f0f0f0;
}

.agent__panel .agent__voice-box{
    width: .6rem;
    height: .5rem;
    width: 26px;
    height: 20px;
    background: url(/static/img/chat/voice.png?v=1);
    background-size: 2.3rem .64rem;
    background-size: 100px 28px;
    background-repeat: no-repeat;
    background-position: -2px;
    display: block;
}

.agent__panel .agent__voice-playing{
    animation: voice_animation 1s steps(1) infinite;
    -moz-animation: voice_animation 1s steps(1) infinite;
    -webkit-animation: voice_animation 1s steps(1) infinite;
    -o-animation: voice_animation 1s steps(1) infinite;
    animation-play-state: running;
}

.agent__panel .agent__voice-body {
    width: 100px;
    display: block;
    height: 20px;
}

.agent__panel .agent__float-left{
    float:left;
}
.agent__panel .agent__float-right{
    float:right;
}

.agent__panel .agent__text-right{
    text-align: right;
}

.agent__panel .agent__text-center{
    text-align: center;
}

.agent__panel .agent__route180 {
    transform: rotate(180deg);
}

@keyframes voice_animation
{
    25%  {background-position: -28px;}
    50%  {background-position: -51px;}
    75%  {background-position: -73px;}
    100% {background-position: -3px;}
}


.agent__chat-msg-content .agent__chat-msg-icon {
    vertical-align: middle;
    width: 44px;
    height: 44px;
    background-color: var(--agent-theme-color);
    border-radius: 5px;
    display: flex;
    color: #fff;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.agent__chat-msg-content .agent__chat-msg-ppt-icon {
    background-position: 0 0;
}

.agent__chat-msg-content .agent__chat-msg-doc-icon {
    background-position: -50px 0
}

.agent__chat-msg-content .agent__chat-msg-xls-icon {
    background-position: -100px 0;
}

.agent__chat-msg-content .agent__chat-msg-pdf-icon {
    background-position: -150px 0;
}

.agent__chat-msg-content .agent__chat-msg-txt-icon {
    background-position: 0 -50px;
}

.agent__chat-msg-content .agent__chat-msg-zip-icon {
    background-position: -50px -50px;
}

.agent__chat-msg-content .agent__chat-msg-file-cover {
    display: table-cell;
    padding-right: 10px;
}

.agent__chat-msg-content .agent__chat-msg-file-info {
    display: table-cell;
    vertical-align: top;
    font-size: 13px;
}

.agent__chat-msg-content .agent__chat-msg-file-info .agent__chat-msg-file-name {
    display:block;
    line-height: 180%;
}

.agent__chat-msg-content .agent__chat-msg-file-info .agent__chat-msg-file-size {
    color: #777;
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg:active, .agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg.taped {
    background-color: #f2f2f2;
    border-color: #e9e9e9;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-msg:before {
    content: '';
    display: inline-block;
    border-style: solid;
    border-width: 1px 1px 0 0;
    height: 10px;
    width: 10px;
    position: absolute;
    top: 15px;
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg.agent__msg-readed:after,
.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg.agent__msg-unread:after {
    content: '已读';
    display: inline-block;
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    color: #24b489;
    font-size: 12px;
    transition: color 1s ease, content 1s ease;
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg.agent__msg-unread:after {
    content: '未读';
    color: #f49282;
}

.agent__chat-content ul li.agent__chat-msg-others .agent__chat-msg-content .agent__chat-msg-msg:before {
    background: inherit;
    border-color: inherit;
    left: -6px;
    transform: translate(0, -50%) rotate(-135deg);
}

.agent__chat-content ul li.agent__chat-msg-me .agent__chat-msg-content .agent__chat-msg-msg:before {
    background: inherit;
    border-color: inherit;
    right: -6px;
    transform: translate(0, -50%) rotate(45deg);
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-picture:before, .agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video:before {
    display: none;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-picture, .agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video {
    background-color: transparent !important;
    border-width: 0;
    border-radius: 3px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-picture.taped, .agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video.taped, .agent__chat-content ul li .agent__chat-msg-avatar.taped{
    opacity: .6;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-picture img, .agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video video {
    vertical-align: top;
    pointer-events: none;
    max-height: 270px;
    max-width: 270px;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-picture img, .agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video img {
    vertical-align: top;
    pointer-events: none;
    max-height: 270px;
    max-width: 270px;
}

.agent__chat-content ul li .agent__chat-msg-content .agent__chat-msg-video:after {
    content: '';
    background: url(../img/chat/icon__play.png) no-repeat center;
    background-size: 40px;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}


.agent__chat-footer{
    height: 180px;
    border-top: 1px solid #d6d6d6;
    background: #ffffff;
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    width: calc(100% - 330px);
}

.agent__bot-stream-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: -46px;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
    pointer-events: none;
}

.agent__bot-stream-overlay__glass {
    max-width: calc(100% - 32px);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(33, 33, 33, 0.88);
    text-align: center;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(210, 210, 210, 0.65);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.agent__bot-stream-overlay__glass--with-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    text-align: left;
}

.agent__bot-stream-overlay__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.agent__bot-stream-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.agent__bot-stream-dots__dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgb(163 163 163 / 88%);
    opacity: 0.35;
    animation: agentBotStreamDotPulse 1.05s ease-in-out infinite;
}

.agent__bot-stream-dots__dot:nth-child(1) {
    animation-delay: 0s;
}

.agent__bot-stream-dots__dot:nth-child(2) {
    animation-delay: 0.18s;
}

.agent__bot-stream-dots__dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes agentBotStreamDotPulse {
    0%, 100% {
        opacity: 0.22;
        transform: scale(0.86);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.agent__bot-stream-overlay--history {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    top: auto;
    padding-top: 0;
    padding-bottom: 6px;
    z-index: 20;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.agent__chat-toolbar {
    height: 40px;
    padding: 5px 17px;
    position: relative;
}

.agent__chat-text-area {
    padding: 0;
    position: relative;
    z-index: 2;
}

/* 唤起 / 快捷码时整块输入区抬到工具栏之上（含 file input z-index:11、转接浮层 z-index:1000） */
.agent__chat-text-area--slash-open {
    z-index: 1200;
    isolation: isolate;
}

/* 输入框内 / 唤起快捷码 */
.agent__slash-reply-anchor {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 100%;
    margin-bottom: 8px;
    z-index: 50;
    pointer-events: auto;
}

/* 外壳与消息右键菜单一致：玻璃壳 + 与 .agent__panel .agent__contextmenu 相同的正文字号与字色 */
.agent__slash-reply-pop {
    min-width: 200px;
    max-width: min(420px, calc(100vw - 32px));
    overflow: visible;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    -webkit-font-smoothing: antialiased;
}

.agent__slash-reply-pop--empty {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #595959;
    text-align: center;
    pointer-events: auto;
}

.agent__slash-reply-pop__hint {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 14px 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #595959;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

.agent__slash-reply-pop__hint-title {
    margin-right: 2px;
    font-weight: 400;
    color: #1a1a1a;
}

.agent__slash-reply-kbd {
    display: inline-block;
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
    color: #444;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* 列表区：布局与右键菜单 ul 共用规则；此处仅保留快捷码浮层专有（滚动高度） */
.agent__slash-reply-pop__list {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

.agent__slash-reply-pop__item {
    cursor: pointer;
    transition: background 0.12s ease;
}

.agent__slash-reply-pop__code {
    flex: 0 1 auto;
    max-width: 38%;
    min-width: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
}

.agent__slash-reply-pop__preview {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: #595959;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__chat-toolbar .agent__font-icon {
    font-size:22px;
    line-height: 33px;
    margin-right:17px;
    color:#666;
    cursor: pointer;
    float: left;
    overflow: hidden;
    position: relative;
}

.agent__chat-toolbar input[type="file"] {
    opacity: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 11;
    cursor: pointer;
}

.agent__transfer {
    height: 400px;
    max-height: calc(100vh - 100px);
}

.agent__transfer-wrapper{
    position: absolute;
    bottom: 100%;
    z-index: 1000;
    left: 120px;
    margin-bottom: -3px;
    max-height: calc(100vh - 100px);
    background: #fff;
    width: 400px;
}

.agent__emotion-wrapper{
    position: absolute;
    background-color: #fff;
    z-index: 99;
    bottom: 100%;
    top: auto;
    left: 11px;
    margin-bottom: -3px;
    outline: none;
}

.agent__border{
    border: 1px solid #cfcfcf;
}

.agent__emotion-wrapper .agent__border:after, .agent__emotion-wrapper .agent__border:before {
    content: "";
    position: absolute;
    left: 16px;
    top: 100%;
    margin-left: -7px;
}

.agent__emotion-wrapper .agent__emotion{
    margin: 12px;
    overflow: visible;
}

.agent__emotion-wrapper .agent__faces{
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 6px;
    width: 420px;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
}

.agent__emotion-wrapper .agent__emotion span {
    float: none;
    width: auto;
    min-width: 0;
    min-height: 26px;
    aspect-ratio: 1;
    font-size: 22px;
    line-height: 1;
    border: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agent__emotion-wrapper .agent__emotion img{
    width:24px;
}

/* 快捷回复浮层样式 */
.agent__quickreply-wrapper {
    position: absolute;
    bottom: 100%;
    left: 285px;
    z-index: 1000;
    width: 530px;
    margin-left: -260px;
    margin-bottom: -3px;
    max-height: calc(100vh - 100px);
    background: #fff;
}


.agent__quickreply-wrapper .agent__border {
    border: 1px solid #cfcfcf;
}

.agent__quickreply-wrapper .agent__inner {
    padding: 0;
}

.agent__quickreply-wrapper .agent__quickreply {
    height: 400px;
    max-height: calc(100vh - 100px);
}

.agent__quickreply-wrapper .agent__reply-box {
    height: 100%;
    margin: 0;
}

.agent__quickreply-wrapper .agent__reply-box-left {
    width: 150px;
    height: 100%;
    border-right: 1px solid #eceff1;
    overflow-y: auto;
    margin: 0;
    background: #f8f9fa;
}

.agent__quickreply-wrapper .agent__li-cell {
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.agent__quickreply-wrapper .agent__reply-box-left .agent__ellipsis {
    width: auto;
    max-width: 130px;
}

.agent__quickreply-wrapper .agent__reply-box-right--chips {
    flex: 1;
    min-width: 0;
    width: 320px !important;
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.agent__quickreply-wrapper .agent__quickreply-chips-head {
    flex-shrink: 0;
    padding: 12px;
    font-size: 14px;
    color: #595959;
    letter-spacing: 0.02em;
    background: #fafafa;
    border-bottom: 1px solid #eceff1;
}

.agent__quickreply-wrapper .agent__quickreply-chips {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px 12px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    box-sizing: border-box;
}

.agent__quickreply-wrapper .agent__quickreply-chip {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: #262626;
    cursor: pointer;
    line-height: 1.35;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.agent__quickreply-wrapper .agent__quickreply-chip:hover {
    border-color: var(--agent-theme-color, #1890ff);
    background: #f6fbff;
    color: var(--agent-theme-color, #1890ff);
}

.agent__quickreply-wrapper .agent__quickreply-chip:focus {
    outline: none;
}

.agent__quickreply-wrapper .agent__quickreply-chip:focus-visible {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.22);
}

.agent__quickreply-wrapper .agent__quickreply-chips-empty {
    margin: 0;
    padding: 28px 12px;
    font-size: 13px;
    color: #8c8c8c;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* 三角指示 */
.agent__triangle:after,
.agent__triangle:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 45%;
    margin-left: -7px;
}

.agent__triangle:before {
    border: 7px solid transparent;
    border-top-color: #cfcfcf;
}

.agent__triangle:after {
    margin-top: -1px;
    border: 7px solid transparent;
    border-top-color: #fff;
}


.agent__chat-text-area textarea {
    width: 100%;
    background-color: #fff;
    border: 0;
    outline: none;
    white-space: pre-wrap;
    word-break: normal;
    margin: 0;
    height: 6em;
    resize:none;
    font-size:15px;
    padding:0 16px;
}

.agent__chat-send-area {
    text-align: right;
    margin-top: 5px;
    position: relative;
}

.agent__send-btn-group {
    display: inline-flex;
    margin-right: 15px;
    position: relative;
}

.agent__chat-send-btn {
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
    padding: 0 16px;
    background-color: #008eff;
    color: #fff;
    border-radius: 3px 0 0 3px;
    box-sizing: content-box;
    border: none;
    cursor: pointer;
}

.agent__chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agent__send-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #008eff;
    color: #fff;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.3);
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.agent__send-arrow-disabled {
    opacity: 0.65;
}

.agent__arrow-icon {
    font-family: icon !important;
    font-style: normal;
    font-size: 14px;
    display: inline-block;
    transform: rotate(-90deg);
}

.agent__send-arrow-btn:hover,
.agent__send-arrow-active {
    background-color: #0078d4;
}

.agent__send-arrow-disabled.agent__send-arrow-btn:hover {
    background-color: #008eff;
}

.agent__send-menu {
    position: absolute;
    right: 28px;
    bottom: 32px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 220px;
    overflow: hidden;
}

.agent__send-menu ul {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.agent__send-menu li {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
}

.agent__send-menu li:hover {
    background-color: #f5f5f5;
}

.agent__menu-check {
    font-family: icon !important;
    font-style: normal;
    width: 20px;
    margin-right: 8px;
    color: #008eff;
    visibility: hidden;
}

.agent__send-menu li.agent__selected .agent__menu-check {
    visibility: visible;
}

::-webkit-scrollbar {
    background: rgba(50, 50, 50, .5);
    border-radius: 0;
    border-top:1px solid #000;
    height: 3px;
    width: 3px;
    transition: all .3s ease-in-out;
}

::-webkit-scrollbar-track {
    background-color: #f8f8f8;
}

::-webkit-scrollbar-track-piece {
    background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .3);
    border-radius: 0;
    min-height: 15px;
    width: 8px;
    transition: all .3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .5)
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, .5)
}

.agent__mask {
    position:fixed;
    top:0;
    right:0;
    left:0;
    bottom:0;
    background:rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.agent__extension-layer {
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
}

.agent__extension-layer .agent__mask {
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.agent__extension-layer-dialog {
    position: absolute;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: auto;
    width: min(960px, calc(100vw - 48px));
    height: min(820px, calc(100vh - 12vh));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.agent__extension-layer-dialog.is-dragged {
    transform: none;
}

.agent__extension-layer-head {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    cursor: move;
    user-select: none;
}

.agent__extension-layer-head .agent__close {
    cursor: pointer;
}

.agent__extension-layer-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
}

.agent__extension-layer-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    border: 0;
    background: #fff;
}

.agent__extension-drawer {
    position: fixed;
    inset: 0;
    z-index: 2300;
    pointer-events: none;
}

.agent__extension-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(31, 35, 41, .24);
    pointer-events: auto;
}

.agent__extension-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -16px 0 40px rgba(31, 35, 41, .18);
    animation: agent-extension-drawer-in .18s ease-out;
}

@keyframes agent-extension-drawer-in {
    from {
        transform: translateX(24px);
        opacity: .92;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.agent__extension-drawer-head {
    height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.agent__extension-drawer-head .agent__close {
    cursor: pointer;
}

.agent__extension-drawer-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
}

.agent__extension-drawer-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    border: 0;
    background: #fff;
}

.agent__visitor-detail {
    width: 330px;
    background-color: #f9f9f9;
    height: calc(100% - 60px);
    border-left: 1px solid #d6d6d6;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    line-height: 260%;
    margin-top: 60px;
    float: right;
    overflow-x: hidden;
    overflow-y: scroll;
}

.agent__side-tabs {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 20px;
    padding: 0 12px;
    background: transparent;
    line-height: 0;
    flex-shrink: 0;
}

.agent__side-tab {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 2px 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #8c8c8c;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    line-height: 2.6;
    white-space: nowrap;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.agent__side-tab:hover {
    color: #595959;
}

.agent__side-tab--active {
    color: var(--agent-theme-color);
    font-weight: 500;
}

.agent__side-tab--active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--agent-theme-color);
    border-radius: 1px;
}

.agent__side-tab-badge {
    display: inline-block;
    position: relative;
    top: -1px;
    margin-left: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    vertical-align: middle;
}

.agent__side-info-panel {
    width: 100%;
    flex-shrink: 0;
}

.agent__side-tabs + .agent__side-info-panel > .agent__detail-body:first-child {
    display: flow-root;
}

.agent__side-tabs + .agent__side-info-panel > .agent__detail-body:first-child > .agent__detail-body-inner {
    margin-top: 0;
    padding: 12px 6px;
}

.agent__side-iframe-panel {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #fff;
}

.agent__side-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.agent__history-visitor-detail {
    height: calc(100% - 60px) !important;
    margin-top: 60px !important;
}

.agent__visitor-detail .agent__avatar {
    display: block;
    margin-top: 30px;
    width: 120px;
    border-radius: 6px;
}

.agent__visitor-detail .agent__nickname {
    margin-top: 16px;
    margin-bottom:3px;
}

.agent__visitor-detail .agent__input {
    width: 136px;
}

.agent__visitor-detail .agent__header {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

.agent__visitor-detail .agent__detail-body {
    background-color: #fff;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.agent__visitor-detail > .agent__header {
    flex-shrink: 0;
}

.agent__visitor-detail .agent__detail-body-inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    padding: 6px;
}

.agent__shadow {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
}

.agent__visitor-detail ul {
    color: #888;
}

.agent__visitor-detail button {
    width: 80%;
    margin-top:12px;
}

.agent__visitor-detail ul li {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size:12px;
    padding: 0 10px;
    min-width: 0;
    max-width: 100%;
}

.agent__visitor-detail .agent__detail-body-inner.agent__shadow {
    min-width: 0;
    max-width: 100%;
}

.agent__visitor-detail .agent__detail-body-inner.agent__shadow li {
    overflow: hidden;
}

/* Browse history lives in one quiet list, matching the basic-info card. */
.agent__visitor-detail .agent__browse-history {
    padding: 6px 16px;
}

.agent__visitor-detail .agent__browse-history-item {
    padding: 10px 0;
    overflow: hidden;
    white-space: normal;
    line-height: 18px;
}

.agent__visitor-detail .agent__browse-history-item + .agent__browse-history-item {
    border-top: 1px solid #f0f2f5;
}

.agent__visitor-detail .agent__browse-history-item .agent__black-text {
    color: #2d3540;
}

.agent__visitor-detail .agent__browse-history-item .agent__time {
    display: block;
    margin-top: 2px;
}

/* Compact visitor identity and long-lived visitor tags in the basic-info card. */
.agent__visitor-detail .agent__visitor-summary {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 16px;
    padding: 10px 10px 12px;
    white-space: normal;
    overflow: visible;
}

.agent__visitor-summary-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f7;
}

.agent__visitor-summary-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.agent__visitor-summary-name {
    color: #2d3540;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__visitor-summary-id {
    color: #9299a5;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 13px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__visitor-tag-row {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.agent__visitor-detail .agent__visitor-tag,
.agent__visitor-detail .agent__visitor-tag-add {
    width: auto;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
}

.agent__visitor-detail .agent__visitor-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 0 8px;
    color: var(--visitor-tag-color, #5b8ff9);
    background: color-mix(in srgb, var(--visitor-tag-color, #5b8ff9) 12%, white);
    font-size: 13px;
    line-height: 24px;
}

.agent__visitor-tag-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__visitor-tag-remove {
    color: inherit;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    opacity: .62;
}

.agent__visitor-tag:hover .agent__visitor-tag-remove { opacity: 1; }

.agent__visitor-detail .agent__visitor-tag-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #6e7785;
    background: #f2f4f7;
    font-size: 18px;
    font-weight: 300;
    line-height: 22px;
}

.agent__visitor-detail .agent__visitor-tag-add--empty {
    width: auto;
    gap: 4px;
    padding: 0 9px;
}

.agent__visitor-detail .agent__visitor-tag-add:hover { background: #e8edf5; color: #2f6bff; }

.agent__visitor-tag-picker {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    left: 0;
    width: min(100%, 248px);
    max-height: 272px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(31, 45, 61, .14);
}

.agent__visitor-detail .agent__visitor-tag-search {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    margin: 0 0 6px;
    padding: 0 9px;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    color: #394150;
    font-size: 12px;
    outline: 0;
}

.agent__visitor-detail .agent__visitor-tag-search:focus { border-color: #86a9ff; box-shadow: 0 0 0 2px rgba(47,107,255,.1); }

.agent__visitor-detail .agent__visitor-tag-option,
.agent__visitor-detail .agent__visitor-tag-create {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 7px;
    border: 0;
    border-radius: 5px;
    color: #404958;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}

.agent__visitor-detail .agent__visitor-tag-option:hover,
.agent__visitor-detail .agent__visitor-tag-option--selected { background: #f3f6fb; }
.agent__visitor-tag-option i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.agent__visitor-tag-option span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent__visitor-tag-option b { color: #2f6bff; font-size: 13px; }
.agent__visitor-detail .agent__visitor-tag-create { color: #2f6bff; }
.agent__visitor-tag-empty { padding: 7px; color: #9aa3b1; font-size: 12px; text-align: center; }

.agent__context-list {
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    padding: 0 12px;
    background: #fff;
}

.agent__context-card {
    padding: 13px 0 12px;
    border-bottom: 1px solid #f0f2f5;
}

.agent__context-card:last-child {
    border-bottom: 0;
}

.agent__context-title {
    display: block;
    margin-bottom: 8px;
    color: #2d3540;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.agent__context-field {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 24px;
    padding: 2px 0;
    color: #4c5663;
    font-size: 13px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.agent__context-label {
    color: #9299a5;
    font-size: 12px;
}

.agent__context-text {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.agent__context-text--toggleable {
    position: relative;
    padding-right: 18px;
    cursor: pointer;
}

.agent__context-text--toggleable::after {
    content: '\ec91';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 42%);
    color: #87919f;
    font-family: icon !important;
    font-size: 12px;
    line-height: 20px;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.agent__context-text--toggleable:hover::after {
    color: #2f6bff;
}

.agent__context-text--expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.agent__context-text--expanded::after {
    transform: rotate(180deg);
}

.agent__context-text--toggleable:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 2px;
    border-radius: 2px;
}

.agent__visitor-detail .agent__context-image-button {
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    object-fit: cover;
    border-radius: 4px;
    background: #f3f5f7;
    cursor: zoom-in;
}

.agent__context-image-button:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 2px;
}

.agent__context-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.agent__context-image-button:hover .agent__context-image {
    transform: scale(1.05);
}

.agent__context-field a {
    color: #2f6bff;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__context-field a:hover,
.agent__context-title[href]:hover {
    color: #1f57d6;
    text-decoration: underline;
}

/* Visitor attributes live in the basic-info list.  This deliberately does
 * not reuse the form input styles: it should read as plain visitor data. */
.agent__visitor-detail .agent__attribute-row {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    overflow: visible;
    white-space: normal;
}

.agent__visitor-detail .agent__attribute-label {
    flex: 0 0 auto;
    color: #888;
    font-size: 12px;
    line-height: 20px;
}

.agent__visitor-detail .agent__attribute-value,
.agent__visitor-detail .agent__attribute-row > a {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    font-size: 14px;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__visitor-detail .agent__attribute-row > a {
    color: #2f6bff;
    text-decoration: none;
}

.agent__visitor-detail .agent__attribute-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;
    padding: 0 18px 0 0;
    margin: 0;
    color: #333;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    outline: 0;
    font: inherit;
    font-size: 14px;
    line-height: 23px;
    transition: border-color .16s ease;
}

.agent__visitor-detail .agent__attribute-input:hover,
.agent__visitor-detail .agent__attribute-input:focus {
    border-bottom-color: #5a8dff;
}

.agent__visitor-detail .agent__attribute-input:focus,
.agent__visitor-detail .agent__attribute-input:focus-visible {
    outline: 0;
}

.agent__visitor-detail .agent__attribute-select {
    padding-right: 20px;
    cursor: pointer;
}

.agent__visitor-detail .agent__ellipsis {
    max-width: 100%;
    display: block;
}

.agent__visitor-detail ul li.agent__ellipsis a {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.agent__visitor-detail ul li.agent__section-cell:first-child{
    margin-top:36px;
}

.agent__visitor-detail ul li .agent__input-input{
    margin-bottom: 36px;
}


.agent__visitor-detail ul li span{
    color: #333;
    font-size:14px;
}

/* Keep tag text independent from the generic visitor-detail span typography. */
.agent__visitor-detail .agent__visitor-tag-text,
.agent__visitor-detail .agent__visitor-tag-add-label {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
}

.agent__visitor-detail .agent__visitor-tag-remove {
    color: inherit;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
}

.agent__visitor-detail .agent__visitor-tag-add-icon {
    color: inherit;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.agent__visitor-detail .agent__sign {
    font-size: 13px;
    color: #b4bbc0;
    overflow-y: hidden;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__browser-safari:before {
    content: '\E64b' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__browser-firefox:before {
    content: '\E62b' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__browser-ie:before {
    content: '\E61f' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__browser-chrome:before {
    content: '\E673' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__os-osx:before {
    content: '\Eadc' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__os-windows:before {
    content: '\Ea2d' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__os-linux:before {
    content: '\E683' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__device-pc:before {
    content: '\E600' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__device-mobile:before {
    content: '\E613' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__device-pad:before {
    content: '\E816' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 20px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #00a0df;
}

.agent__icon-wechat:before {
    content: '\E694' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 25px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #0ba85c;
}

.agent__icon-wework:before {
    content: '\ec93' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 25px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #2f7cf6;
}

.agent__icon-android:before {
    content: '\E950' !important;
    margin-left: 0;
    margin-right: 5px;
    display: inline-block;
    font: normal normal normal 25px/1 "icon";
    vertical-align: middle;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: #0ba85c;
}

.agent__input-choose-avatar {
    opacity: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    cursor: pointer;
}

.agent__panel .agent__btn-primary {
    background-color: var(--agent-theme-color);
    border-radius: 3px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 14px;
    font-family: "Microsoft Yahei";
    text-align: center;
    outline: none;
    overflow: hidden;
    padding: 0 9px;
    text-decoration: none;
    line-height: 34px;
    position: relative;
    border:none;
    -webkit-transition: filter 0.15s ease;
    transition: filter 0.15s ease;
}

.agent__panel .agent__btn-primary:hover {
    filter: brightness(1.08);
}

.agent__panel .agent__btn-primary:active {
    filter: brightness(0.88);
}

.agent__panel .agent__btn-primary:after {
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    box-sizing: border-box;
    content: '';
    height: 200%;
    width: 200%;
    position: absolute;
    left: 0;
    top: 0;
    transform: scale(.5);
    -webkit-transform: scale(.5);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.agent__panel .agent__btn-default {
    background: #fff;
    border: 1px solid #d9d9d9;;
    border-radius: 5px;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-family: "Microsoft Yahei";
    text-align: center;
    outline: none;
    padding: 0 9px;
    line-height: 34px;
}

.agent__panel .agent__btn-default:active {
    background: #e9e9e9;
}

.agent__panel .agent__btn-warning {
    background: var(--agent-theme-color);
    border: 1px solid var(--agent-theme-color);
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 14px;
    text-align: center;
    outline: none;
    overflow: hidden;
    padding: 0 9px;
    text-decoration: none;
    line-height: 34px;
    position: relative;
}


.agent__panel .agent__btn-warning:active {
    background: var(--agent-theme-color-hover);
}

.agent__panel button:disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: alpha(opacity=65);
    opacity: .65;
}

.agent__setting {
    position: absolute;
    top:50%; left:50%;
    margin-top:-110px;
    margin-left:-200px;
    width:400px;
    height:220px;
    background-color: #f5f5f5;
    border: 1px solid #d6d6d6;
    box-shadow: 1px 1px 10px #888;
    border-radius: 2px;
    z-index: 101;
}

.agent__setting .agent__title {
    line-height: 280%;
    padding-left:20px;
    font-size: 16px;
    color:#666;
}

.agent__setting .agent__info {
    color: #999;
    font-size:15px;
    margin-left:10px;
    margin-bottom: 10px;
}

.agent__setting textarea {
    border: none;
    height:5em;
    width:370px;
    outline: none;
    resize:none;
    margin:0 10px 5px;
    font-size: 15px;
    padding:5px;
}

.agent__setting .agent__operation {
    justify-content: flex-end;
}

.agent__setting .agent__operation button{
    margin-right: 10px;
    margin-top: 4px;
    padding: 0 18px;
}


.agent__confirm {
    position: absolute;
    top:50%; left:50%;
    margin-top:-85px;
    margin-left:-200px;
    width:400px;
    height:170px;
    background-color: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 2px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    z-index:101;
}

.agent__confirm .agent__title {
    line-height: 280%;
    padding-left:20px;
    font-size: 16px;
    color:#999;
}

.agent__confirm .agent__info {
    color: #666;
    font-size: 15px;
    margin: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.agent__confirm .agent__operation {
    justify-content: flex-end;
    position: absolute;
    bottom: 10px;
    right:0;
}

.agent__confirm .agent__operation button{
    margin-right: 10px;
    margin-top: 4px;
    padding: 0 18px;
}


.agent__group-operation {
    position: absolute;
    top:50%; left:50%;
    margin-top:-300px;
    margin-left:-200px;
    width:400px;
    height:560px;
    background-color: #f5f5f5;
    border: 1px solid #d6d6d6;
    box-shadow: 1px 1px 10px #888;
    border-radius: 2px;
}

.agent__group-operation .agent__list-body {
    height: 450px;
}

.agent__panel .agent__scrolling-panel {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    position: relative;
    overflow-x: hidden;
}

.agent__panel .agent__friend-list ul li .agent__friend-list-letter {
    font-size: 14px;
    font-family: Verdana;
    padding: 0 15px;
}

.agent__panel .agent__border-top {
    position: relative;
}

.agent__panel .agent__friend-list ul li .agent__row {
    background: #fff;
    font-family: 'Microsoft Yahei';
    padding: 10px 15px;
    position: relative;
}

.agent__panel .agent__check-label {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.agent__panel .agent__check {
    position: absolute;
    left: -9999em;
}

.agent__panel .agent__friend-list ul li .agent__row .agent__avatar-small {
    display: block;
    margin-right: 10px;
    height: 44px;
    width: 44px;
}

.agent__panel .agent__friend-list ul li .agent__row .agent__avatar-small img,
.agent__panel .agent__friend-list .agent__row .agent__avatar-small img {
    height: 100%;
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    vertical-align: top;
}

.agent__panel img {
    border: 0;
    border-radius: 5px;
}

.agent__panel .agent__clamp1{
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.agent__panel .agent__friend-list ul li .agent__row:after {
    content: '';
    border-bottom: 1px solid #d9d9d9;
    color: #d9d9d9;
    height: 1px;
    width: auto;
    position: absolute;
    left: .3rem;
    right: .4rem;
    bottom: 0;
    transform: scaleY(0.5);
    -webkit-transform: scaleY(0.5);
}

.agent__panel .agent__cells_checkbox .agent__icon-checked:before {
    content: '\EA01';
    color: #C9C9C9;
    margin-left: 20px;
    margin-right: 20px;
    display: inline-block;
    font: normal normal normal 25px/1 "weui";
    vertical-align: middle;
    font-size: 25px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.agent__panel .agent__cells_checkbox .agent__check:checked + .agent__icon-checked:before {
    content: '\EA06';
    color: var(--agent-theme-color);
}

.agent__panel .agent__friend-list-floatletter {
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: .4rem;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 11;
}

.agent__panel .agent__friend-list-floatletter em {
    flex: 1;
    font-size: .24rem;
    font-family: arial;
    text-align: center;
    height: 3.7%;
    align-self: center;
    width: 100%;
}

.agent__list-head {
    height: 50px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#666;
}

.agent__list-head .agent__cross {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.agent__list-head .agent__cross:before, .agent__list-head .agent__cross:after {
    margin-top: calc(50% - 10px);
    cursor: pointer;
}


.agent__list-bottom {
    height: 60px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent__panel .agent__cross:before, .agent__cross:after {
    position: absolute;
    left: 50%;
    content: ' ';
    height: 17px;
    width: 2px;
    background-color: #666;
    border-radius: 2px;
}

.agent__panel .agent__cross:before {
    transform: rotate(45deg);
}
.agent__panel .agent__cross:after {
    transform: rotate(-45deg);
}


/* post 操作提示 */
.agent__panel .agent__toast {
    position: fixed;
    z-index: 5000;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    margin-left: -80px;
    margin-top: -80px;
    background: rgba(17, 17, 17, 0.5);
    text-align: center;
    border-radius: 5px;
    color: #FFFFFF;
}

.agent__panel .agent__icon_toast {
    display: block;
}

.agent__panel .agent__icon-success-no-circle {
    color: #07C160;
    vertical-align: middle;
    font: normal normal normal 14px/1 "weui";
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.agent__panel .agent__icon-success-no-circle:before {
    color: #FFFFFF;
    font-size: 66px;
    content: "\EA08";
}

.agent__panel .agent__toast {
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent__panel .agent__toast__content {
    margin: 0 0 16px;
    font-size: 14px;
}

@-webkit-keyframes agent__loadding-ball-beat {
    50% {
        opacity: 0.2;
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes agent__loadding-ball-beat {
    50% {
        opacity: 0.2;
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.agent__loadding-ball-beat > div {
    background-color: #fefefe;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    margin: 2px;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    display: inline-block;
    -webkit-animation: agent__loadding-ball-beat 0.7s 0s infinite linear;
    animation: agent__loadding-ball-beat 0.7s 0s infinite linear;
}

.agent__loadding-ball-beat > div:nth-child(2n-1) {
    -webkit-animation-delay: 0.35s !important;
    animation-delay: 0.35s !important;
}

/*group detail*/
.agent__group-detail {
    position: absolute;
    width: 260px;
    background-color: #FBFBFB;
    height: 100%;
    border-left: 1px solid #d6d6d6;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    line-height: 180%;
    right: 0;
    top: 0;
}

.agent__group-detail button {
    width: 200px;
    margin-top:12px;
}

.agent__panel .agent__detail-panel ul li {
    margin-bottom: 12px;
}

.agent__panel a, .agent__panel button, .agent__panel input, .agent__panel label, .agent__panel li {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item {
    background: #fff;
    font-family: 'Microsoft Yahei';
    padding: 10px 16px;
    position: relative;
    width: 225px;
}

.agent__panel .agent__flex-wrap {
    flex-wrap: wrap;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__avatar {
    display: block;
    margin: 12px 0;
    width: 56px;
    height:69px;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__avatar img {
    display: block;
    height: 44px;
    width: 44px;
    border-radius: 6px;
    object-fit: cover;
    margin: auto;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__avatar span {
    font-size: 13px;
    text-align: center;
    display: block;
    overflow: hidden;
    height: 25px;
    line-height: 25px;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
}

.agent__panel .agent__detail-panel ul li .agent__more-item {
    background: #fff;
    font-family: 'Microsoft Yahei';
    padding: 10px 0;
    position: relative;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__detail-item-left {
    color: #333;
    font-size: 14px;
    min-width: 70px;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__detail-section {
    color: #888;
    font-size: 14px;
    min-width: 70px;
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-left: 10px;
    max-height: 100px;
    white-space: nowrap;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__operation-icon {
    display: block;
    vertical-align: middle;
    width: 44px;
    height: 44px;
    background: url(/static/web/img/icon.png) no-repeat;
    background-position: 0 0;
    background-size: 352px 88px;
    margin: auto;
}

.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__operation-adduser {
    background-position: 0 0;
}
.agent__panel .agent__detail-panel ul li .agent__detail-item .agent__operation-deluser {
    background-position: -44px 0;
}

.agent__panel .agent__detail-panel ul li .agent__more-item .agent__more {
    width: 250px;
    text-align: center;
    color:#888;
    font-size: 14px;
}


.agent__panel .agent__flex-justify-center {
    display: flex;
    justify-content: center;
}

.agent__panel .agent__flex-align-center {
    display: flex;
    align-items: center;
}

.agent__panel .agent__h100 {
    height: 100%;
}

.agent__panel .agent__input {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid transparent;
    background-color: transparent;
}
.agent__panel .agent__input:hover {
    border: 1px solid #d6d6d6;
}

.agent__panel .agent__input:focus {
    border: 1px solid #d6d6d6;
    background-color: #fff;
}

/*address book*/
.agent__panel .agent__friend-list .agent__friend-list-letter {
    font-size: 13px;
    font-family: Verdana;
    padding: 0 14px;
}
.agent__panel .agent__border-top {
    position: relative;
}

.agent__panel .agent__friend-list .agent__row {
    background: #fff;
    font-family: 'Microsoft Yahei';
    padding: 8px 14px;
    position: relative;
}

.agent__panel .agent__friend-list .agent__row .agent__avatar-small {
    display: block;
    margin-right: 8px;
    height: 44px;
    width: 44px;
}

.agent__panel .agent__friend-list .agent__row .agent__name {
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
}

.agent__panel .agent__friend-list .agent__row:after {
    content: '';
    border-bottom: 1px solid #d9d9d9;
    color: #d9d9d9;
    height: 1px;
    width: auto;
    position: absolute;
    left: .3rem;
    right: .4rem;
    bottom: 0;
    transform: scaleY(0.5);
    -webkit-transform: scaleY(0.5);
}

.agent__panel .agent__friend-list-operation {
    color: #999;
    font-size:13px;
}

.agent__panel .agent__btn-primary-mini {
    background-color: #1AAD19;
    border-radius: 3px;
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 13px;
    text-align: center;
    outline: none;
    overflow: hidden;
    padding: 5px 12px;
    position: relative;
    border:none;
}


/* 聊天页面大图预览 */
.agent__img-view {
    /* 保留背景对话的可见性，方便客服留意新消息与状态变化。 */
    background: rgba(17, 24, 39, .48);
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3000;
}

.agent__img-view .swiper-container {
    height: 100%;
    max-width: 100%;
}

.agent__img-view .swiper-slide {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
}

.agent__img-view .swiper-slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transition: all .3s;
    transform: scale(.8);
}

.agent__img-view .swiper-slide-active img {
    transform: scale(1);
}

/* 视频播放相关 */
.agent__video-view {
    background: rgba(0, 0, 0, 1);
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2003;
}

.agent__video-view video{
    z-index: 10;
}

.agent__video-view:after {
    content: '';
    background-image: linear-gradient(-180deg, rgba(0, 0, 0, .6), transparent);
    height: 1.2rem;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.agent__video-view .agent__close{
    position: fixed;
}

.agent__video-view .agent__close:before, .agent__video-view .agent__close:after {
    content: "";
    background: #fff;
    transform: translate(50%, -50%) rotate(45deg) scale(.9);
    position: absolute;
    top: 50%;
    right: 50%;
}

/* 拖放文件发送：遮罩仅在会话面板内，不拦截指针 */
.agent__mask.agent__mask--file-drop {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent__file-drop-hint {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 2px dashed rgba(255, 255, 255, 0.55);
    max-width: min(420px, calc(100% - 32px));
    text-align: center;
    box-sizing: border-box;
    line-height: 1.45;
}

/* 录音浮层（Web：浅色毛玻璃 + 与聊天发送区一致的蓝 / 小按钮） */
.agent__mask--voice {
    z-index: 100;
    background: rgba(15, 23, 42, 0.06);
}

.agent__panel .agent__chat-voice-tip.agent__chat-voice-tip--web {
    position: fixed;
    z-index: 101;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: min(248px, calc(100vw - 40px));
    box-sizing: border-box;
    padding: 12px 14px 10px;
    border-radius: 6px;
    text-align: center;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    backdrop-filter: blur(12px) saturate(1.12);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.agent__chat-voice-tip--web .agent__chat-voice-tip__title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    color: #64748b;
}

.agent__chat-voice-tip--web .agent__chat-voice-tip__stage {
    min-height: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 16px;
}

.agent__panel .agent__chat-voice-tip--web .agent__chat-voice-meter {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    height: 24px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.agent__panel .agent__chat-voice-tip--web .agent__chat-voice-meter__bar {
    flex: 1 1 0;
    width: 0;
    min-width: 1px;
    max-width: 3px;
    height: 14%;
    min-height: 2px;
    border-radius: 2px;
    align-self: flex-end;
    background: linear-gradient(180deg, #7ec8ff 0%, #008eff 48%, #0078d4 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    transform-origin: bottom center;
}

.agent__chat-voice-tip--web .agent__chat-voice-tip__actions {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    gap: 8px;
    margin-top: 2px;
}

/* 与聊天区发送按钮同量级：约 30px 高、13px 字、圆角与发送区一致 */
.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-cancel,
.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-send {
    flex: 1;
    height: 30px;
    max-height: 30px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-cancel {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-send.agent__btn-primary {
    margin: 0;
    border: none;
    color: #fff;
    background-color: #008eff;
    box-shadow: 0 1px 2px rgba(0, 142, 255, 0.28);
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-send.agent__btn-primary:hover {
    background-color: #0078db;
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-send.agent__btn-primary:active {
    background-color: #006bc4;
}

.agent__panel .agent__chat-voice-tip--web .agent__btn-voice-send.agent__btn-primary:after {
    display: none;
}

@-webkit-keyframes agent__line-scale-pulse-out {
    0% {
        -webkit-transform: scaley(1);
        transform: scaley(1); }

    50% {
        -webkit-transform: scaley(0.4);
        transform: scaley(0.4); }

    100% {
        -webkit-transform: scaley(1);
        transform: scaley(1); } }

@keyframes agent__line-scale-pulse-out {
    0% {
        -webkit-transform: scaley(1);
        transform: scaley(1); }

    50% {
        -webkit-transform: scaley(0.4);
        transform: scaley(0.4); }

    100% {
        -webkit-transform: scaley(1);
        transform: scaley(1); } }

.agent__line-scale-pulse-out {
    margin-top: 20px;
}

.agent__line-scale-pulse-out > div {
    background-color: #fff;
    width: .08rem;
    height: .66rem;
    border-radius: .04rem;
    margin: .04rem;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    display: inline-block;
    -webkit-animation: agent__line-scale-pulse-out 0.9s 0s infinite cubic-bezier(.85, .25, .37, .85);
    animation: agent__line-scale-pulse-out 0.9s 0s infinite cubic-bezier(.85, .25, .37, .85);
}
.agent__line-scale-pulse-out > div:nth-child(2), .agent__line-scale-pulse-out > div:nth-child(4) {
    -webkit-animation-delay: 0.2s !important;
    animation-delay: 0.2s !important;
}
.agent__line-scale-pulse-out > div:nth-child(1), .agent__line-scale-pulse-out > div:nth-child(5) {
    -webkit-animation-delay: 0.4s !important;
    animation-delay: 0.4s !important;
}

.agent__panel .agent__flex1 {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.agent__panel .agent__loading{
    width:15px;
    height:15px;
    display:inline-block;
    vertical-align:middle;
    -webkit-animation:popLoading 1s steps(12, end) infinite;
    animation:popLoading 1s steps(12, end) infinite;
    background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;
    background-size: 100%;
    margin:0 3px;
}

@-webkit-keyframes popLoading{
    0%{
        -webkit-transform:rotate3d(0, 0, 1, 0deg);
        transform:rotate3d(0, 0, 1, 0deg);
    }
    100%{
        -webkit-transform:rotate3d(0, 0, 1, 360deg);
        transform:rotate3d(0, 0, 1, 360deg);
    }
}
@keyframes popLoading{
    0%{
        -webkit-transform:rotate3d(0, 0, 1, 0deg);
        transform:rotate3d(0, 0, 1, 0deg);
    }
    100%{
        -webkit-transform:rotate3d(0, 0, 1, 360deg);
        transform:rotate3d(0, 0, 1, 360deg);
    }
}

.agent__loading-tip {
    text-align: center;
    margin: 8px 0;
    font-size: 13px;
    color: #999;
}

/* 页内 SVG 精灵（symbol），仅定义不展示 */
.agent__icon-sprite-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* 对话页 / 历史页空状态（插图见 #agent-empty-box） */
.agent__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.45);
}

.agent__empty-state__illu {
    display: block;
    width: 64px;
    height: 40px;
    flex-shrink: 0;
}

.agent__empty-state__illu use {
    pointer-events: none;
}

.agent__empty-state__text {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.45);
}

.agent__empty-state--sidenav {
    min-height: 220px;
    padding: 40px 12px 48px;
}

.agent__chat-body .agent__empty-state--main,
.agent__history_body .agent__empty-state--main {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0;
}

.agent__transfer .agent__select-area--transfer-pop {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.agent__transfer .agent__select-area--transfer-pop .agent__scroll-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.agent__transfer .agent__transfer-list-item {
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.agent__transfer .agent__transfer-list-item .agent__avatar {
    float: none;
    margin-right: 0;
    flex-shrink: 0;
}

.agent__transfer .agent__transfer-list-item__info {
    float: none;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.agent__transfer .agent__transfer-list-item__title-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.agent__transfer .agent__transfer-list-item .agent__transfer-list-item__name {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    line-height: 1.25;
}

.agent__transfer .agent__transfer-list-item__tags {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
}

.agent__transfer .agent__transfer-list-item .agent__transfer-list-item__group {
    margin-top: 4px;
    height: auto;
    min-height: 1.35em;
}

.agent__transfer .agent__transfer-list-item .agent__transfer-list-item__action {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

.agent__transfer .agent__transfer-list-item__btn {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.25;
    min-height: 30px;
    box-sizing: border-box;
}

.agent__transfer .agent__transfer-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    vertical-align: middle;
    color: #757575;
    background: #f5f5f5;
}

.agent__transfer .agent__transfer-tag__bot-icon {
    font-family: icon;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
    margin-right: 3px;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.agent__transfer .agent__transfer-tag--leave .agent__state-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-right: 3px;
    font-size: 12px !important;
    line-height: 1;
    color: inherit;
}

.agent__empty-state--transfer-pop {
    flex: 1;
    min-height: 0;
    padding: 32px 16px 40px;
    justify-content: center;
}

/* more */
.agent__right-head {
    height: 60px;
    background-color: #FBFBFB;
    border-bottom: 1px solid #d6d6d6;
    flex: 1;
    align-items: center;
    display: flex;
    justify-content:space-between;
    -webkit-app-region: drag;
    -webkit-user-select: none;
}

.agent__right-head .agent__title{
    font-size:16px;
    padding:0 20px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

/* 更多设置入口 / 子页：顶栏面包屑（视觉对齐后台 admin-pro-breadcrumb） */
.agent__right-main-panel--breadcrumb-layout {
    display: flex;
    flex-direction: column;
}

.agent__right-main-panel--breadcrumb-layout .agent__right-body {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
}

.agent__right-head--breadcrumb {
    flex: 0 0 auto;
    height: auto;
    min-height: 60px;
    flex-shrink: 0;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0 8px;
    box-sizing: border-box;
    gap: 2px;
}

.agent__right-head--breadcrumb .agent__right-head-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 20px;
    min-width: 0;
    width: 100%;
}

.agent__right-head--breadcrumb .agent__pro-breadcrumb,
.agent__right-head--breadcrumb .agent__pro-breadcrumb-item--link {
    -webkit-app-region: no-drag;
}

.agent__right-head--breadcrumb .agent__title {
    padding: 0;
    font-size: 16px;
    line-height: 24px;
}

.agent__pro-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.45);
}

.agent__pro-breadcrumb-sep {
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.45);
    user-select: none;
}

.agent__pro-breadcrumb-item--current {
    color: rgba(0, 0, 0, 0.85);
}

.agent__pro-breadcrumb-item--link {
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    cursor: pointer;
}

.agent__pro-breadcrumb-item--link:hover {
    color: var(--agent-theme-color, #008eff);
}

.agent__pro-breadcrumb-item--link:focus-visible {
    outline: 2px solid var(--agent-theme-color, #008eff);
    outline-offset: 2px;
    border-radius: 2px;
}


.agent__right-body {
    height: calc(100% - 60px);
    overflow-x: auto;
}

.agent__margin {
    margin: 20px;
}

.agent__section {
    border: 1px solid #d6d6d6;
    margin-bottom:20px;
    max-width: 1000px;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
}

.agent__section-icon {
    user-select: none;
    font-family: icon !important;
    font-size: 24px;
    background-color: var(--agent-theme-color);
    border-radius: 50%;
    padding:10px;
    color: #fff;
    cursor: pointer;
    line-height: 100%;
    height: 45px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agent__section-icon:hover {
    background-color: var(--agent-theme-color-hover);
}

.agent__section-body {
    margin: auto 18px;
}

.agent__section-item {
    height:80px;
    width:130px;
    margin: 28px !important;
}

.agent__section-item span {
    font-weight: 500;
    line-height: 300%;
}

/* 更多设置宫格：为翻译后的较长标签预留稳定的两行空间，避免侵入下一分区。 */
#more .agent__section-body {
    margin: 0;
}

#more .agent__section-body > ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 28px 46px 32px;
    box-sizing: border-box;
}

#more .agent__section-item {
    width: auto;
    height: 104px;
    min-width: 0;
    margin: 0 !important;
}

#more .agent__section-item > span {
    display: -webkit-box;
    width: 100%;
    min-height: 2.7em;
    margin-top: 12px;
    padding: 0 4px;
    box-sizing: border-box;
    overflow: hidden;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
    #more .agent__section-body > ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 600px) {
    #more .agent__section-body > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
        padding-right: 18px;
        padding-left: 18px;
    }
}

.agent__column-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.agent__section-head {
    padding: 18px;
    font-size:16px;
    border-bottom: 1px solid #d6d6d6;
}

/* 与「问候语」等卡片一致：同一标题行底部分隔线，右侧可放操作按钮 */
.agent__panel .agent__section-head--with-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.agent__panel .agent__section-head--with-actions .agent__section-head__text {
    flex: 1;
    min-width: 0;
}

.agent__panel .agent__section-head--with-actions .agent__section-head__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.agent__big-section {
    border: 1px solid #d6d6d6;
    margin: 20px;
    max-width: 1000px;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
}

.agent__section-max-width {
    max-width: 1200px !important;
}

.agent__big-section-body {
    margin: 60px 30px 30px;
    position: relative;
}

.agent__big-section-body .agent__input-input {
    width: 892px;
}

.agent__section-textarea-cell {
    margin-bottom: 42px;
}

.agent__section-tip {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #595959;
}

/* Per-business visitor field definition. Keep this deliberately compact: it is
 * a configuration surface, while the frequent workflow remains the profile
 * editor in the conversation sidebar. */
#visitor_attributes .agent__visitor-attributes-body {
    max-width: 960px;
}

#visitor_attributes .agent__visitor-attributes-policy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    margin-bottom: 20px;
    background: #f7f9ff;
    border: 1px solid #e4eafd;
    border-radius: 10px;
}

#visitor_attributes .agent__visitor-attributes-policy-title {
    margin-bottom: 4px;
    color: #262626;
    font-size: 14px;
    font-weight: 500;
}

#visitor_attributes .agent__visitor-attributes-policy-copy {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

#visitor_attributes .agent__visitor-attributes-empty {
    padding: 30px 20px;
    margin-bottom: 18px;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #dedede;
    border-radius: 10px;
}

#visitor_attributes .agent__visitor-attributes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#visitor_attributes .agent__visitor-attribute-card {
    padding: 16px 18px 18px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .025);
}

#visitor_attributes .agent__visitor-attribute-card--disabled {
    background: #fcfcfc;
    border-color: #ececec;
}

#visitor_attributes .agent__visitor-attribute-card--disabled .agent__visitor-attribute-grid {
    opacity: .55;
}

#visitor_attributes .agent__visitor-attribute-card-head,
#visitor_attributes .agent__visitor-attribute-card-actions,
#visitor_attributes .agent__visitor-attributes-foot {
    display: flex;
    align-items: center;
}

#visitor_tags .agent__visitor-tags-body { max-width: 820px; }
#visitor_tags .agent__visitor-tags-empty { padding: 24px 0; color: #8b95a3; font-size: 14px; }
#visitor_tags .agent__visitor-tags-list { display: flex; flex-direction: column; gap: 12px; }
#visitor_tags .agent__visitor-tag-setting { display: grid; grid-template-columns: 128px minmax(180px, 1fr) minmax(250px, 1.35fr) auto; align-items: end; gap: 18px; min-height: 76px; padding: 16px 18px; border: 1px solid #e7ebf0; border-radius: 10px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
#visitor_tags .agent__visitor-tag-setting:focus-within { border-color: #b6cbff; box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
#visitor_tags .agent__visitor-tag-setting--disabled { background: #fafbfc; }
#visitor_tags .agent__visitor-tag-setting-preview { display: inline-flex; align-items: center; align-self: center; justify-self: start; max-width: 128px; gap: 7px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 13px; }
#visitor_tags .agent__visitor-tag-setting-preview i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
#visitor_tags .agent__visitor-tag-setting-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#visitor_tags .agent__visitor-tag-setting-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #7b8491; font-size: 12px; }
#visitor_tags .agent__visitor-tag-setting-field > input { width: 100%; height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid #dbe2ea; border-radius: 6px; color: #394150; font-size: 14px; outline: 0; }
#visitor_tags .agent__visitor-tag-setting-field > input:focus { border-color: #86a9ff; }
#visitor_tags .agent__visitor-tag-color-controls { display: flex; height: 34px; align-items: center; gap: 6px; }
#visitor_tags input[type="color"] { width: 34px; height: 34px; box-sizing: border-box; padding: 3px; border: 1px solid #dbe2ea; border-radius: 6px; background: #fff; cursor: pointer; }
#visitor_tags .agent__visitor-tag-color-swatch { width: 18px; height: 18px; padding: 0; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
#visitor_tags .agent__visitor-tag-color-swatch--active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2f6bff; }
#visitor_tags .agent__visitor-tag-color-controls code { margin-left: 2px; color: #818b99; font: 12px Consolas, monospace; }
#visitor_tags .agent__visitor-tag-setting-actions { display: flex; align-items: center; gap: 8px; height: 34px; }
#visitor_tags .agent__visitor-tag-action { height: 32px; padding: 0 13px; border: 1px solid #d7dee8; border-radius: 6px; color: #4d5968; background: #fff; cursor: pointer; font-size: 13px; white-space: nowrap; }
#visitor_tags .agent__visitor-tag-action:hover { border-color: #9ebaff; color: #2f6bff; }
#visitor_tags .agent__visitor-tag-action--muted { color: #788493; }
#visitor_tags .agent__visitor-tag-action--danger { border-color: #fecaca; color: #dc2626; }
#visitor_tags .agent__visitor-tag-action--danger:hover { border-color: #fca5a5; color: #b91c1c; background: #fff7f7; }
#visitor_tags .agent__visitor-tag-action--primary { border-color: #2f6bff; color: #fff; background: #2f6bff; }
#visitor_tags .agent__visitor-tag-action--primary:hover { border-color: #1e57df; color: #fff; background: #1e57df; }
#visitor_tags .agent__visitor-tag-action:disabled { border-color: #e5e9ef; color: #b5bdc9; background: #f3f5f7; cursor: not-allowed; }
#visitor_tags .agent__visitor-attributes-foot { margin-top: 26px;}
@media (max-width: 850px) { #visitor_tags .agent__visitor-tag-setting { grid-template-columns: 116px minmax(180px, 1fr) auto; } #visitor_tags .agent__visitor-tag-setting-colors { grid-column: 2 / -1; } }
@media (max-width: 600px) { #visitor_tags .agent__visitor-tag-setting { grid-template-columns: 1fr; } #visitor_tags .agent__visitor-tag-setting-colors { grid-column: auto; } #visitor_tags .agent__visitor-tag-setting-actions { justify-content: flex-end; } }

#visitor_attributes .agent__visitor-attribute-card-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

#visitor_attributes .agent__visitor-attribute-card-actions {
    gap: 14px;
}

#visitor_attributes .agent__visitor-attribute-card-title {
    color: #595959;
    font-size: 13px;
    font-weight: 500;
}

#visitor_attributes .agent__visitor-attribute-link {
    padding: 0;
    color: #4d7cf3;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

#visitor_attributes .agent__visitor-attribute-link--danger {
    color: #d9534f;
}

#visitor_attributes .agent__visitor-attribute-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px 14px;
}

#visitor_attributes .agent__visitor-attribute-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: #737373;
    font-size: 12px;
}

#visitor_attributes .agent__visitor-attribute-grid input[type="text"],
#visitor_attributes .agent__visitor-attribute-grid select {
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    padding: 0 10px;
    color: #333;
    font-size: 13px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}

#visitor_attributes .agent__visitor-attribute-grid input[type="text"]:focus,
#visitor_attributes .agent__visitor-attribute-grid select:focus {
    border-color: #7ca2ff;
    box-shadow: 0 0 0 3px rgba(75, 120, 245, .1);
}

#visitor_attributes .agent__visitor-attribute-grid input[readonly] {
    color: #999;
    cursor: not-allowed;
    background: #f6f6f6;
}

#visitor_attributes .agent__visitor-attribute-options {
    grid-column: span 2;
}

#visitor_attributes .agent__visitor-attribute-checkbox {
    grid-column: 1 / -1;
    flex-direction: row !important;
    align-items: center;
    align-self: start;
    height: 34px;
    gap: 7px !important;
    color: #555 !important;
    font-size: 13px !important;
}

#visitor_attributes .agent__visitor-attribute-checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #4d7cf3;
}

#visitor_attributes .agent__visitor-attribute-match {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    min-height: 32px;
    gap: 9px;
}

#visitor_attributes .agent__visitor-attribute-match-label {
    color: #737373;
    font-size: 12px;
}

#visitor_attributes .agent__visitor-attribute-match-status {
    padding: 2px 7px;
    color: #4d7cf3;
    font-size: 12px;
    line-height: 17px;
    background: #f1f5ff;
    border-radius: 10px;
}

#visitor_attributes .agent__visitor-attribute-match-status--empty {
    color: #9aa3ae;
    background: #f3f5f7;
}

#visitor_attributes .agent__visitor-regex-mask {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(33, 43, 58, .24);
}

#visitor_attributes .agent__visitor-regex-editor {
    width: min(520px, 100%);
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(25, 42, 70, .22);
}

#visitor_attributes .agent__visitor-regex-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

#visitor_attributes .agent__visitor-regex-editor-head h3 {
    margin: 0 0 3px;
    color: #303744;
    font-size: 16px;
    font-weight: 600;
}

#visitor_attributes .agent__visitor-regex-editor-head p,
#visitor_attributes .agent__visitor-regex-editor-help {
    margin: 0;
    color: #8a94a2;
    font-size: 12px;
    line-height: 18px;
}

#visitor_attributes .agent__visitor-regex-editor-close {
    width: 26px;
    height: 26px;
    padding: 0;
    color: #8e98a5;
    font-size: 23px;
    line-height: 22px;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 5px;
}

#visitor_attributes .agent__visitor-regex-editor-close:hover {
    color: #546171;
    background: #f4f6f8;
}

#visitor_attributes .agent__visitor-regex-editor-input,
#visitor_attributes .agent__visitor-regex-test textarea {
    width: 100%;
    box-sizing: border-box;
    color: #303744;
    font: 12px/1.55 Consolas, "SFMono-Regular", monospace;
    background: #fbfcfe;
    border: 1px solid #dbe2ec;
    border-radius: 7px;
    outline: 0;
    resize: vertical;
}

#visitor_attributes .agent__visitor-regex-editor-input {
    min-height: 78px;
    padding: 9px 10px;
}

#visitor_attributes .agent__visitor-regex-editor-input:focus,
#visitor_attributes .agent__visitor-regex-test textarea:focus {
    border-color: #7ca2ff;
    box-shadow: 0 0 0 3px rgba(75, 120, 245, .1);
}

#visitor_attributes .agent__visitor-regex-editor-help {
    margin-top: 7px;
}

#visitor_attributes .agent__visitor-regex-editor-tools {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}

#visitor_attributes .agent__visitor-regex-test {
    margin-top: 14px;
    padding: 12px;
    background: #f7f9fc;
    border: 1px solid #edf0f4;
    border-radius: 8px;
}

#visitor_attributes .agent__visitor-regex-test label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #687381;
    font-size: 12px;
}

#visitor_attributes .agent__visitor-regex-test textarea {
    min-height: 62px;
    padding: 7px 8px;
    font-family: inherit;
}

#visitor_attributes .agent__visitor-regex-test .agent__button-sm {
    margin-top: 9px;
}

#visitor_attributes .agent__visitor-regex-test-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #687381;
    font-size: 12px;
}

#visitor_attributes .agent__visitor-regex-test-value {
    max-width: 160px;
    overflow: hidden;
    padding: 2px 6px;
    color: #3965c9;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #eaf1ff;
    border-radius: 4px;
}

#visitor_attributes .agent__visitor-regex-test-preview {
    flex-basis: 100%;
    max-height: 72px;
    overflow: auto;
    margin-top: 3px;
    padding: 7px 8px;
    color: #667180;
    line-height: 19px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 5px;
}

#visitor_attributes .agent__visitor-regex-test-preview mark {
    padding: 0 2px;
    color: #365fbe;
    background: #e7efff;
    border-radius: 2px;
}

#visitor_attributes .agent__visitor-regex-editor-error {
    margin: 10px 0 0;
    color: #d9534f;
    font-size: 12px;
}

#visitor_attributes .agent__visitor-regex-editor-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

#visitor_attributes .agent__visitor-regex-editor-foot .agent__button-primary {
    color: #fff;
    background: #4d7cf3;
    border-color: #4d7cf3;
}

#visitor_attributes .agent__visitor-attributes-foot {
    justify-content: space-between;
    padding-top: 22px;
}

@media (max-width: 1100px) {
    #visitor_attributes .agent__visitor-attribute-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#function_setting .agent__function-setting-body {
    margin-top: 36px;
}

#function_setting .agent__function-setting-block__title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #434343;
}

#function_setting .agent__function-setting-block--sub {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #ebebeb;
}

#function_setting .agent__function-setting-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 12px;
    max-width: 640px;
}

#function_setting .agent__function-setting-grid--narrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 260px;
}

#function_setting .agent__function-setting-grid .agent__form-item {
    width: auto;
    margin-bottom: 0;
}

#function_setting .agent__function-setting-grid .agent__form-label {
    float: none;
    display: block;
    width: auto;
    padding: 0 0 10px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    color: #595959;
}

#function_setting .agent__function-setting-grid .agent__input-block {
    margin-left: 0;
    text-align: center;
}

#function_setting .agent__function-setting-foot {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.agent__arrow {
    display: inline-block;
}

.agent__upset {
    transform: rotate(-180deg);
}

.agent__input-item {
    position: relative;
    display: flow-root;
}

.agent__textarea-item {
    position: relative;
    margin-bottom: 40px;
}

.agent__input-input {
    color: rgba(0,0,0,0.87);
    border-color: rgba(0,0,0,0.12);
    display: block;
    margin-top: 0;
    background: 0 0;
    padding-top: 2px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
    border-width: 0 0 1px 0;
    line-height: 26px;
    height: 30px;
    -ms-flex-preferred-size: 26px;
    border-radius: 0;
    border-style: solid;
    width: 100%;
    box-sizing: border-box;
    font-size:15px;
    margin-bottom: 46px;
}

.agent__input-input:focus{
    border-width: 0 0 2px 0;
    border-color: #008eff;
    padding-bottom: 0;
    outline: none;
}

.agent__input-input:focus, .agent__input-input:focus-visible {
    outline: none;
}

.agent__input-input[readonly] {
    border-width: 0 0 1px 0;
    border-color: rgba(0,0,0,0.12);
    color: #333;
    padding-bottom: 1px;
}

.agent__input-select {
    color:rgba(0,0,0,0.87) !important;
}

.agent__form-section {
    margin-bottom: 42px !important;
}

.agent__form-section .agent__form-label {
    text-align: left !important;
    padding-left: 5px !important;
}

*::-webkit-input-placeholder {
    color: rgba(0,0,0,0.54);
    -webkit-font-smoothing: antialiased;
}
*:-moz-placeholder {
    color: rgba(0,0,0,0.54);
    -webkit-font-smoothing: antialiased;
}
*:-ms-input-placeholder {
    color: rgba(0,0,0,0.54);
    -webkit-font-smoothing: antialiased;
}

.agent__button-default {
    letter-spacing: .010em;
    display: inline-block;
    position: relative;
    cursor: pointer;
    min-height: 36px;
    min-width: 88px;
    line-height: 36px;
    vertical-align: middle;
    align-items: center;
    text-align: center;
    border-radius: 6px;
    box-sizing: border-box;
    user-select: none;
    outline: 0;
    border: 0;
    padding: 0 6px;
    margin: 18px 0 0 18px;
    background: 0 0;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    font-style: inherit;
    font-variant: inherit;
    font-family: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
    color: rgb(255,255,255);
    background-color: var(--agent-theme-color);
}

.agent__button-default:not([disabled]):hover {
    background-color: var(--agent-theme-color-hover);
}

/* 小号主按钮，与 .agent__button-default 联用，实心主题色、高度与页内工具条更协调 */
.agent__button-default.agent__button-sm {
    min-height: 30px;
    min-width: 76px;
    line-height: 30px;
    padding: 0 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* 通用按钮：btn / btn-sm / btn-outline-primary（.agent__panel 内）；尺寸与 BS5 一致且统一 rem，避免 px 高度与 rem 混用导致字不居中 */
.agent__panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    cursor: pointer;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    background: transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.agent__panel .btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.agent__panel .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* BS5 .btn-sm：$input-btn-padding-y-sm / -x-sm；不写死 px 高度，由 padding + line-height（全 rem）自然形成约 30px，flex 垂直居中 */
.agent__panel .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.agent__panel .btn-outline-primary {
    color: var(--agent-theme-color, #007bff);
    border-color: var(--agent-theme-color, #007bff);
    background-color: transparent;
    box-shadow: none;
}

.agent__panel .btn-outline-primary:hover:not(:disabled) {
    color: #fff;
    background-color: var(--agent-theme-color-hover, #0069d9);
    border-color: var(--agent-theme-color-hover, #0069d9);
}

.agent__panel .btn-outline-primary:active:not(:disabled) {
    background-color: var(--agent-theme-color-active, #0056b3);
    border-color: var(--agent-theme-color-active, #0056b3);
    color: #fff;
}

.agent__input-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    order: 1;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    padding-left: 3px;
    padding-right: 0;
    z-index: 1;
    transform: translate3d(0,28px,0) scale(1);
    transition: transform .4s cubic-bezier(.25,.8,.25,1);
    max-width: 100%;
    transform-origin: left top;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: auto;
    font-size:16px;
    color: rgba(0,0,0,0.54);
    line-height: 160%;
}

.agent__input-has-value .agent__input-label {
    transform: translate3d(0,6px,0) scale(.85);
    transition: transform cubic-bezier(.25,.8,.25,1) .4s,width cubic-bezier(.25,.8,.25,1) .4s;
    color: #888;
}

.agent__textarea-label {
    font-size:16px;
    color: rgba(0,0,0,0.54);
}

.agent__input-has-value .agent__textarea-label {
    font-size:12px;
}

/* 设置页 Markdown 编辑器：静态标签（EasyMDE 工具栏不适合浮动 label） */
.agent__mde-label {
    display: block;
    position: static;
    margin: 0 0 8px;
    padding: 0 3px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #888;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transform: none;
    pointer-events: auto;
    z-index: auto;
}

/* 动态 label 表单项后接 Markdown：抵消静态 label 多占的上间距 */
.agent__section-cell:has(> .agent__input-item) + .agent__section-cell.agent__setting-mde .agent__mde-label {
    margin-top: -18px;
}

/* 弹层内 Markdown 区块：去掉 textarea 额外下边距，后接动态表单项时与 input 一致 */
.agent__layer .agent__section-cell.agent__setting-mde,
.agent__layer2 .agent__section-cell.agent__setting-mde,
.agent__layer .agent__section-cell.agent__section-textarea-cell.agent__setting-mde,
.agent__layer2 .agent__section-cell.agent__section-textarea-cell.agent__setting-mde {
    margin-bottom: 0;
}

.agent__layer .agent__section-cell.agent__setting-mde .agent__textarea-item,
.agent__layer2 .agent__section-cell.agent__setting-mde .agent__textarea-item {
    margin-bottom: 0;
}

.agent__layer .agent__section-cell.agent__setting-mde:has(+ .agent__section-cell > .agent__input-item),
.agent__layer2 .agent__section-cell.agent__setting-mde:has(+ .agent__section-cell > .agent__input-item) {
    margin-bottom: 46px;
}

.agent__table {
    width: 100%;
    border-spacing: 0;
    overflow: hidden;
}

.agent__table tr th {
    height: 56px;
    vertical-align: middle;
    text-align: left;
    background: #eceff1;
    border-bottom: 1px solid #eceff1;
    color: #536e7a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 24px;
    text-transform: uppercase;
}

.agent__table tr td {
    color: rgba(0,0,0,.87);
    font-size: 14px;
    vertical-align: middle;
    text-align: left;
    border-bottom: 1px solid #eceff1;
    color: #445a64;
    padding: 6px 24px;
    font-weight: 400;
    opacity: .87;
    line-height: 24px;
}

.agent__table tr:hover {
    background-color: #eceff1;
    -webkit-transition: .5s all;
    transition: .5s all
}

.agent__table tr td:first-child {
    width: 20px;
    padding: 0 0 0 24px;
}

/* 常见问题管理：版式与 #agent_manage .agent__table 一致，边框仅来自 .agent__big-section */
#faq_manage .agent__table--faq-manage {
    table-layout: fixed;
    width: 100%;
    min-width: 520px;
    border: none;
    border-radius: 0;
}

/* 覆盖全局 .agent__table 首列窄图标列规则 */
#faq_manage .agent__table--faq-manage thead tr th:first-child,
#faq_manage .agent__table--faq-manage tbody tr td:first-child {
    width: auto;
    min-width: 0;
}

#faq_manage .agent__table--faq-manage tbody tr td:first-child {
    padding: 6px 24px;
}

#faq_manage .agent__table--faq-manage tr th:nth-child(2),
#faq_manage .agent__table--faq-manage tr td:nth-child(2) {
    width: 22%;
    min-width: 0;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#faq_manage .agent__table--faq-manage td.agent__faq-manage-question {
    overflow: hidden;
    max-width: 0;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

#faq_manage .agent__faq-manage-question__ell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    transition: color 0.12s ease;
}

#faq_manage .agent__faq-manage-question:hover .agent__faq-manage-question__ell {
    color: #008eff;
}

#faq_manage .agent__table--faq-manage th.agent__table--faq-manage-th-actions,
#faq_manage .agent__table--faq-manage td.agent__faq-manage-actions {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    background-clip: padding-box;
}

#faq_manage .agent__table--faq-manage thead tr th,
#faq_manage .agent__table--faq-manage tbody tr td {
    height: 58px;
    box-sizing: border-box;
    vertical-align: middle;
}

#faq_manage .agent__table--faq-manage thead tr th {
    text-transform: none;
    letter-spacing: normal;
}

#faq_manage .agent__table--faq-manage tbody tr:hover {
    background-color: #eceff1;
    -webkit-transition: .5s all;
    transition: .5s all;
}

#faq_manage .agent__table--faq-manage thead tr:hover {
    background: #eceff1;
}

/* 分组管理：与常见问题表格同一套卡片内表格样式 */
#agent_groups .agent__table--group-manage {
    table-layout: fixed;
    width: 100%;
    min-width: 480px;
    border: none;
    border-radius: 0;
}

#agent_groups .agent__group-manage-table-wrap {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

#agent_groups .agent__table--group-manage thead tr th,
#agent_groups .agent__table--group-manage tbody tr td {
    height: 58px;
    box-sizing: border-box;
    vertical-align: middle;
}

#agent_groups .agent__table--group-manage thead tr th:first-child,
#agent_groups .agent__table--group-manage tbody tr td:first-child {
    width: 88px;
    max-width: 88px;
}

#agent_groups .agent__table--group-manage tbody tr td:first-child {
    padding: 6px 24px;
}

#agent_groups .agent__table--group-manage th.agent__table--group-manage-th-actions,
#agent_groups .agent__table--group-manage td.agent__group-manage-actions {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    background-clip: padding-box;
}

#agent_groups .agent__table--group-manage td.agent__group-manage-name {
    overflow: hidden;
    max-width: 0;
    vertical-align: middle;
}

#agent_groups .agent__group-manage-name__ell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

#agent_groups .agent__table--group-manage thead tr th {
    text-transform: none;
    letter-spacing: normal;
}

#agent_groups .agent__table--group-manage tbody tr:hover {
    background-color: #eceff1;
    -webkit-transition: .5s all;
    transition: .5s all;
}

#agent_groups .agent__table--group-manage thead tr:hover {
    background: #eceff1;
}

#agent_groups .agent__group-manage-action-btns {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
}

#agent_groups .agent__group-manage-action-btns .agent__font-icon-gray {
    float: none;
    display: block;
    margin: 0 !important;
    flex-shrink: 0;
    font-size: 18px;
    color: #8c8c8c;
}

#agent_groups .agent__group-manage-action-btns .agent__font-icon-gray:hover {
    color: #595959;
}

#agent_groups .agent__group-manage-action-btns .agent__font-icon-gray.agent__table-action-inline:not(.agent__table-action-delete):hover {
    color: #008eff;
}

#agent_groups .agent__group-manage-action-btns .agent__table-action-delete:hover,
#agent_groups .agent__group-manage-action-btns .agent__table-action-delete:active {
    color: #e53935;
}

#agent_groups .agent__group-manage-action-btns .agent__group-manage-del {
    font-size: 18px;
}

#faq_manage .agent__faq-manage-action-btns {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
}

#faq_manage .agent__faq-manage-action-btns .agent__font-icon-gray {
    float: none;
    display: block;
    margin: 0 !important;
    flex-shrink: 0;
    font-size: 18px;
    color: #8c8c8c;
}

#faq_manage .agent__faq-manage-action-btns .agent__font-icon-gray:hover {
    color: #595959;
}

#faq_manage .agent__faq-manage-action-btns .agent__font-icon-gray.agent__table-action-inline:not(.agent__table-action-delete):hover {
    color: #008eff;
}

#faq_manage .agent__faq-manage-action-btns .agent__table-action-delete:hover,
#faq_manage .agent__faq-manage-action-btns .agent__table-action-delete:active {
    color: #e53935;
}

#faq_manage .agent__faq-manage-action-btns .agent__faq-manage-del {
    font-size: 18px;
}

#faq_manage .agent__faq-manage-table-wrap {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* 标题栏与 #greeting 等一致；添加按钮在表格下方居中 */
#faq_manage .agent__section-head.agent__faq-manage-bar {
    box-sizing: border-box;
    font-weight: 400;
}

#faq_manage .agent__faq-manage-bar__title {
    display: block;
    min-width: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#faq_manage .agent__faq-manage-add-wrap,
#agent_manage .agent__agent-manage-add-wrap,
#agent_groups .agent__group-manage-add-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px 18px 22px;
    border-top: 1px solid #eceff1;
}

#faq_manage .agent__faq-manage-add-btn,
#agent_manage .agent__agent-manage-add-btn,
#agent_groups .agent__group-manage-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#faq_manage .agent__faq-manage-add-btn__icon,
#agent_manage .agent__agent-manage-add-btn__icon,
#agent_groups .agent__group-manage-add-btn__icon {
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    margin-top: -1px;
}

#faq_manage .agent__faq-manage-preview-root {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.35);
}

#faq_manage .agent__faq-manage-preview {
    width: 100%;
    max-width: 480px;
    max-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    overflow: hidden;
}

#faq_manage .agent__faq-manage-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 14px 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

#faq_manage .agent__faq-manage-preview__head-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    line-height: 1.4;
}

#faq_manage .agent__faq-manage-preview__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 26px;
    color: #8c8c8c;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.12s ease, background 0.12s ease;
}

#faq_manage .agent__faq-manage-preview__close:hover {
    color: #262626;
    background: rgba(0, 0, 0, 0.04);
}

#faq_manage .agent__faq-manage-preview__body {
    padding: 14px 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

#faq_manage .agent__faq-manage-preview__label {
    font-size: 13px;
    font-weight: 600;
    color: #8c8c8c;
    margin: 12px 0 6px;
}

#faq_manage .agent__faq-manage-preview__label:first-of-type {
    margin-top: 0;
}

#faq_manage .agent__faq-manage-preview__block {
    font-size: 14px;
    line-height: 1.65;
    color: #262626;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#faq_manage .agent__faq-manage-preview__empty {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #bfbfbf;
}

.agent__table .agent__font-icon-circle {
    float: left;
    margin: 14px 0 !important;
}

.agent__table .agent__font-icon-gray {
    float: left;
    margin: 14px 0 !important;
}

.agent__table td .agent__font-icon-gray.agent__table-action-inline {
    float: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px 0 0 !important;
}

.agent__table td .agent__font-icon-gray.agent__table-action-delete:hover,
.agent__table td .agent__font-icon-gray.agent__table-action-delete:active {
    color: #e53935;
}

.agent__font-icon-gray.pop_forbidden {
    color: #ccc !important;
    cursor: default;
}

.agent__font-icon-gray.pop_forbidden:hover {
    color: #ccc !important;
}

.agent__font-icon-circle.pop_forbidden {
    color: #ccc !important;
    background-color: transparent !important;
    cursor: default;
}

.agent__section-cell .agent__font-icon-circle {
    margin-top: 2px !important;
    float: left;
}

.agent__table tr td:last-child{
    /*width: 20px;
    padding: 0 24px 0 0;*/
}

/*浮层*/

.agent__flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.agent__layer2 {
    color: rgba(0,0,0,0.87);
    background-color: rgb(255,255,255);
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    width: 600px;
    position: relative;
}

.agent__layer {
    color: rgba(0,0,0,0.87);
    background-color: rgb(255,255,255);
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 8px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    position: fixed;
    left: 50%;
    top: 50%;
    width: 600px;
    margin-left: -300px;
    margin-top: -260px;
    z-index:100;
}

.agent__alert-success {
    padding: 12px 16px;
    margin: 0 0 20px;
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
    font-family: Consolas, Menlo, monospace;
}

.agent__wework-save-success {
    color: rgba(0, 0, 0, 0.87);
    background-color: #fff;
    border-radius: 2px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: calc(100vw - 32px);
    z-index: 101;
    padding: 24px;
}

.agent__wework-save-success__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #262626;
}

.agent__wework-save-success__hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #595959;
}

.agent__layer-mini {
    color: rgba(0,0,0,0.87);
    background-color: rgb(255,255,255);
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 8px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    position: fixed;
    left: 50%;
    top: 50%;
    width: 300px;
    margin-left: -150px;
    margin-top: -160px;
    z-index:100;
    padding: 48px 18px 0 38px;
}

.agent__layer-title {
    margin: 24px 16px 40px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    font-size: 13px;
}

.agent__layer .agent__section-cell, .agent__layer2 .agent__section-cell {
    padding: 0 16px;
}

.agent__layer .agent__button-default, .agent__layer2 .agent__button-default {
    margin-right: 16px;
    margin-top:0 !important;
}

.agent__form-select input {
    padding-right: 30px;
    cursor: pointer;
}

.agent__form-select ul {
    position: absolute;
    left: 0;
    top: 32px;
    padding: 5px 0;
    z-index: 899;
    min-width: 100%;
    border: 1px solid #d2d2d2;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
    box-sizing: border-box;
}

.agent__form-select ul li {
    padding: 8px;
    padding-left: 10px!important;
    color: #333;
    cursor: pointer;
}

.agent__form-select ul.agent__multi-select li.agent__selected:before {
    content: "\ec1d";
    color: green;
    font-family: icon !important;
    float: right;
}

.agent__form-select ul li:hover {
    background-color: #f2f2f2;
    -webkit-transition: .5s all;
    transition: .5s all;
}

.agent__form-select ul .agent__selected {
    background-color: #f2f2f2;
}

.agent__section-cell .agent__avatar {
    margin-bottom:46px;
}

.agent__anim {
    -webkit-animation-duration: .3s;
    animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both
}


@-webkit-keyframes agent__up {
    from {
        -webkit-transform: translate3d(0,100%,0);
        opacity: .3
    }

    to {
        -webkit-transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes agent__up {
    from {
        transform: translate3d(0,100%,0);
        opacity: .3
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

.agent__anim-up {
    -webkit-animation-name: agent__up;
    animation-name: agent__up
}

@-webkit-keyframes agent__upbit {
    from {
        -webkit-transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        -webkit-transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes agent__upbit {
    from {
        transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

.agent__anim-upbit {
    -webkit-animation-name: agent__upbit;
    animation-name: agent__upbit
}

@-webkit-keyframes agent__upbit {
    from {
        -webkit-transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        -webkit-transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes agent__upbit {
    from {
        transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

.agent__anim-upbit {
    -webkit-animation-name: agent__upbit;
    animation-name: agent__upbit
}



@-webkit-keyframes agent__downbit {
    from {
        -webkit-transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        -webkit-transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes agent__downbit {
    from {
        transform: translate3d(0,30px,0);
        opacity: .3
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

.agent__anim-downbit {
    -webkit-animation-name: agent__downbit;
    animation-name: agent__downbit
}


/* switch */
.agent__form-switch {
    position: relative;
    height: 22px;
    line-height: 22px;
    width: 52px;
    min-width: 52px;
    padding: 0 7px 0 22px;
    margin-top: 8px;
    border: 1px solid #d2d2d2;
    border-radius: 20px;
    cursor: pointer;
    background-color: #fff;
    -webkit-transition: .1s linear;
    transition: .1s linear;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    vertical-align: middle;
    font-weight: 500;
    user-select: none;
    box-sizing: border-box;
}

.agent__form-switch i {
    position: absolute;
    left: 3px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 20px;
    background-color: #d2d2d2;
    -webkit-transition: .1s linear;
    transition: .1s linear
}

.agent__form-switch em {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0!important;
    text-align: center!important;
    color: #999!important;
    font-style: normal!important;
    font-size: 12px;
    line-height: 1;
}

.agent__form-onswitch {
    border-color: #008eff;
    background-color: #008eff;
    padding: 0 22px 0 8px;
    justify-content: flex-start;
}

.agent__checkbox-disbaled,.agent__checkbox-disbaled i {
    border-color: #e2e2e2!important
}

.agent__form-onswitch i {
    left: 100%;
    margin-left: -19px;
    background-color: #fff;
}

.agent__form-onswitch em {
    color: #fff!important;
}

.agent__form-switch--disabled {
    opacity: .55;
    cursor: not-allowed;
}

.agent__checkbox-disbaled span {
    background-color: #e2e2e2!important
}

.agent__checkbox-disbaled:hover i {
    color: #fff!important
}

.agent__input-block {
    margin-left: 120px;
}

.agent__form-item {
    margin-bottom: 15px;
    width: 163px;
}

.agent__big-section-body .agent__form-label {
    float: left;
    display: block;
    padding: 9px 0 9px 15px;
    width: 110px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
}

.agent__textarea {
    width: 100%;
    height:12em;
    border: 1px solid #d6d6d6;
    resize: none;
    font-size:15px;
    padding: 8px;
    background-color: #fafafa;
    outline: none;
}

.agent__setting-mde .EasyMDEContainer .CodeMirror {
    min-height: 12em;
    border: 1px solid #d6d6d6;
    background-color: #fafafa;
    font-size: 15px;
}

.agent__setting-mde .EasyMDEContainer .editor-toolbar {
    border: 1px solid #d6d6d6;
    border-bottom: 0;
    background: #f5f5f5;
}

.agent__setting-mde .EasyMDEContainer .editor-preview,
.agent__setting-mde .EasyMDEContainer .editor-preview-side {
    background-color: #fff;
}

.agent__section_marginb {
    margin-bottom: 18px;
}



/*消息模版样式*/
.agent__chat-content .agent__chat-template {
    margin-bottom:20px;
    max-width: 520px;
    border-radius: 2px;
    background-color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.agent__chat-content .agent__chat-template:has(.agent__faq-item) {
    width: 560px;
    max-width: calc(100% - 60px);
    min-width: 0;
}

.agent__chat-content .agent__chat-template-title {
    padding: 4px 0 12px;
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 12px;
    min-width: 380px;
}

.agent__chat-content ul li.agent__faq-item {
    margin:0;
    padding: 6px 6px 6px 0;
}

.agent__chat-content a {
    text-decoration: none;
}
/*消息模版样式*/

/*代码部署*/
.agent__code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.agent__code-title {
    font-size: 13px;
    margin-bottom: 0;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.agent__code-section {
    margin: 30px 30px 30px;
    position: relative;
}

/* 标签与复制按钮同一行，无额外框线 */
.agent__code-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.agent__code-tip-row .kb-chunk-code-copy {
    flex-shrink: 0;
}

.agent__code-content + .agent__code-tip-row {
    margin-top: 12px;
}

.agent__code-tips {
    color: darkgray;
    font-weight: 500;
    font-size: 13px;
}

.agent__code-content {
    margin: 8px 0;
    font-family: Monaco,Menlo,Consolas,"Ubuntu Mono",monospace;
    font-size: 13px;
}

.agent__code-content textarea{
    width: 100%;
    height: 7.2em;
    border:none;
    font-size: 13px;
    resize: none;
    outline:none;
    font-family: Monaco,Menlo,Consolas,"Ubuntu Mono",monospace;
    word-break: break-all;
}

.agent__code-content a.agent__code-link {
    color: #0d6efd;
    text-decoration: underline;
    word-break: break-all;
}

.agent__code-content a.agent__code-link:hover {
    color: #0a58ca;
}

/* 代码部署：顶栏「设计」打开挂件外观 iframe */
.agent__btn-widget-design {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    min-width: 72px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background: var(--agent-theme-color, #0d6efd);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.agent__btn-widget-design:hover {
    filter: brightness(0.95);
}

.agent__btn-widget-design:focus-visible {
    outline: 2px solid var(--agent-theme-color, #0d6efd);
    outline-offset: 2px;
}

.agent__widget-design-mask {
    position: fixed;
    inset: 0;
    z-index: 12020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.45);
}

.agent__widget-design-dialog {
    display: flex;
    flex-direction: column;
    width: min(1212px, calc(100vw - 32px));
    height: min(784px, calc(90vh - 24px));
    max-height: calc(90vh - 24px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.agent__widget-design-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 14px 0;
    background: #e4eaf4;
}

.agent__widget-design-bar-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent__widget-design-close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.agent__widget-design-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

/* 与 widget：顶栏约 52px + .wld-shell 上下 padding 32 + .wld-layout 预览列约 630 → 总高约 714，留边取 720 */
.agent__widget-design-iframe {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: 0;
    display: block;
    background: #e4eaf4;
}

/*代码部署*/

.agent__panel .agent__history-rechat button{
    margin: 0 auto;
    padding: 0 36px;
    line-height: 30px;
    display: block !important;
    width: 100%;
}

.agent__button {
    letter-spacing: .010em;
    display: inline-block;
    position: relative;
    cursor: pointer;
    min-height: 36px;
    min-width: 88px;
    line-height: 36px;
    vertical-align: middle;
    align-items: center;
    text-align: center;
    border-radius: 2px;
    box-sizing: border-box;
    user-select: none;
    outline: 0;
    border: 0;
    padding: 0 6px;
    margin: 6px 8px;
    background: 0 0;
    color: currentColor;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    font-style: inherit;
    font-variant: inherit;
    font-family: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1);
}

.agent__button:not([disabled]):hover {
    background-color: rgba(158,158,158,0.2);
}

.agent__pay-amount {
    color: var(--agent-theme-color);
    line-height: 36px;
    margin: 36px;
    padding: 10px;
    vertical-align: bottom;
}


.agent__charge-icon:before {
    content: '\E793';
    font-family: icon;
    font-size: 26px;
    color: var(--agent-theme-color);
    vertical-align: middle;
    margin-right: 12px;
}

.agent__func-link {
    line-height: 200%;
    display:inline-block;
    margin:16px 5px 16px 0;
    cursor: pointer;
}

.agent__func-link:hover {
    color: #008eff;
}

.agent__orangered {
    color: var(--agent-theme-color) !important;
}

.agent__orangered:hover {
    color: var(--agent-theme-color-hover) !important;
}

.agent__orangered-hover:hover {
    color: var(--agent-theme-color) !important;
}

.agent__green-btn {
    display: inline-block;
    display: inline;
    zoom: 1;
    font-size: 14px;
    line-height: 200%;
    background-color: #008eff;
    color: #fff;
    border-radius: 3px;
    box-sizing: content-box;
    border: none;
    cursor: pointer;
}

.agent__layer-small {
    background-color:#fff;width:320px;height:350px;position:absolute;bottom:50px;left:0;cursor:default;
}

.agent__layer-gray-title {
    background-color:#f3f3f3;font-size:14px;padding:8px 18px;font-weight:bold;color:#333;border-bottom:solid 1px #ddd;border-top:solid 1px #ddd;
}

.agent__chatting_item:first-child {
    border-top:1px solid transparent;
}

.kf__flex-wrap {
    flex-wrap: wrap;
}


.agent__lh120 {
    line-height:120% !important;
}

.agent__pd12 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.agent__black-text {
    color: #333;
}

.agent__ellipsis {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent__gray-text {
    color: #aaa;
}

.agent__state {
    position: absolute;right:-4px;bottom:-4px;height:16px;width:16px;
}

.agent__state-item {
    border-radius:16px;height: 16px;width:16px;font-size: 16px !important;
}

.agent__online-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00b63d;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
}

.agent_bggreen {
    background:#00b63d;
}

.agent_bg9 {
    background:#999;
}

.agent_bgf {
    background:#fff;
}

.agent__bge {
    background:#eee;
}

.agent__bgd {
    background:#f3f3f3;
}

.agent__bd1f {
    border: 2px solid #fff;
}

.agent__bd1t {
    border: 1px solid transparent;
}

/* 左侧栏头像资料浮层 */
.agent-profile-panel {
    --agent-profile-gutter: 20px;
    --agent-profile-row-inset: 8px;
    position: absolute;
    left: 52px;
    top: -4px;
    width: 300px;
    padding: var(--agent-profile-gutter);
    box-sizing: border-box;
    cursor: default;
    overflow: visible;
    z-index: 2500;
    -webkit-app-region: no-drag;
}

/* backdrop-filter 会使内部 absolute 定位参照本浮层；去掉模糊以正确锚定子菜单 */
.agent-profile-panel.agent__glass-surface {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.agent-profile-panel__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: calc(-1 * var(--agent-profile-gutter)) calc(-1 * var(--agent-profile-gutter)) 12px;
    padding: var(--agent-profile-gutter);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: background-color .15s ease;
}

.agent-profile-panel__head:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.agent-profile-panel__avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.agent-profile-panel__meta {
    min-width: 0;
    flex: 1;
}

.agent-profile-panel__name {
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-profile-panel__group {
    margin-top: 5px;
    font-size: 14px;
    color: #8c8c8c;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-profile-panel__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-profile-panel__menu-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px var(--agent-profile-row-inset);
    margin: 0 calc(-1 * var(--agent-profile-row-inset));
    border-radius: 4px;
    cursor: default;
    font-size: 14px;
    line-height: 1.45;
    color: #1a1a1a;
    transition: background-color .15s ease;
}

.agent-profile-panel__menu-item:hover .agent-profile-panel__menu-trigger {
    background-color: rgba(0, 0, 0, 0.04);
}

.agent-profile-panel__menu-trigger .agent__contextmenu-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #262626;
}

.agent-profile-panel__menu-tail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.agent-profile-panel__menu-current {
    font-size: 14px;
    color: #8c8c8c;
}

.agent-profile-panel__menu-current--online {
    color: #00b63d;
}

.agent-profile-panel .icon {
    font-family: icon !important;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    color: #8c8c8c;
    flex-shrink: 0;
    display: inline-block;
    transform: rotate(180deg);
}

.agent-profile-panel__status-sub {
    position: absolute;
    left: calc(100% - 6px);
    top: 0;
    padding-left: 6px;
    z-index: 2600;
    min-width: 132px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.agent-profile-panel .agent__contextmenu,
.agent-profile-panel__status-sub .agent__contextmenu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fff;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    border-radius: 6px;
    width: max-content;
    font-size: 14px;
    line-height: 1.45;
    color: #1a1a1a;
    user-select: none;
    cursor: default;
    overflow: visible;
}

.agent-profile-panel .agent__contextmenu ul {
    margin: 0;
    padding: 5px 6px;
    list-style: none;
}

.agent-profile-panel .agent__contextmenu ul li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin: 1px 0;
    border-radius: 4px;
    cursor: pointer;
}

.agent-profile-panel .agent__contextmenu ul li:first-child {
    margin-top: 0;
}

.agent-profile-panel .agent__contextmenu ul li:last-child {
    margin-bottom: 0;
}

.agent-profile-panel .agent__contextmenu ul li:hover,
.agent-profile-panel .agent__contextmenu ul li.agent__selected,
.agent-profile-panel .agent__contextmenu ul li.agent__selected:hover {
    background-color: #e2f2ff;
}

.agent-profile-panel__status-sub .agent__font-icon.agent__contextmenu-icon {
    font-size: 14px;
}

.agent-profile-panel__switches {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-profile-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.agent-profile-panel__label {
    font-size: 15px;
    color: #262626;
    user-select: none;
    white-space: nowrap;
}

.agent-profile-panel__row .agent__form-switch {
    margin-top: 0;
    flex-shrink: 0;
}

.is-desk-mac .agent-profile-panel {
    left: 56px;
    top: 36px;
}

.agent__goods-template-title {
    max-width: 320px;
    font-weight: 500;
    line-height: 200%;
}

.agent__goods-template-content img {
    max-width: 100px;
    margin-left: 8px;
}

.agent__goods-template-content {
    align-items: flex-start;
}


.agent__li-cell {
    font-size: 13px;
    border-bottom: 1px solid #eceff1;
    color: #445a64;
    padding: 16px 16px !important;
    font-weight: 400;
    opacity: .87;
    line-height: 24px;
}

.agent__reply-box a {
    color: #777;
    font-size: 12px;
    cursor: pointer;
}

.agent__reply-box .agent__font-icon-gray {
    margin: 0;
}

.agent__reply-box-left {
    width: 180px;
}

.agent__reply-box-left li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent__reply-box-left .agent__ellipsis {
    width:110px;
    max-width:110px;
}

.agent__reply-box-right {
    margin-left: 16px !important;
    width: 760px;
}

.agent__reply-box-right li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent__reply-box-right .agent__ellipsis {
    width:680px;
    max-width:680px;
}

.agent__cursor-pointer {
    cursor: pointer;
}

a{
    cursor: pointer;
}

.agent__hover:hover {
    background-color: rgb(240, 240, 240, 0.8);
    cursor: default;
}

.agent__reply-tip-box {
    position: absolute;left:0;bottom:1px;right:0;background:rgb(250, 250, 250, 0.8);border-top:1px solid #ddd;max-height:300px;overflow-y:scroll;
}

.agent__reply-tip-box li {
    max-width:100%;line-height:160%;padding-left:18px;font-size:14px;
}

.agent__tip {
    position:absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    background: rgba(0,0,0,.6);
    padding: 8px 18px;
    color: #fff;
    display: none;
}


/** topbar **/
.agent__topbar-box {
    position: fixed;
    right: 0;
    top: 0;
    -webkit-app-region: no-drag;
    display: flex;
    align-items: center;
    height: 30px;
    z-index: 9999;
}
.agent__topbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.agent__topbar-item:hover {
    background: #e5e5e5;
}

.agent__topbar-min {
    width: 10px;
    height: 1px;
    background-color: #666;
}

.agent__topbar-item-min:hover .agent__topbar-min {
    background-color: #333;
}

.agent__topbar-max {
    width: 10px;
    height: 10px;
    border: 1.5px solid #666;
    box-sizing: border-box;
}

.agent__topbar-item-max:hover .agent__topbar-max {
    border-color: #333;
}

.agent__topbar-max-restore {
    position: relative;
    width: 12px;
    height: 12px;
}

.agent__topbar-max-restore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    z-index: 0;
    width: 7px;
    height: 7px;
    border: 1.5px solid #666;
    background: #fff;
    box-sizing: border-box;
}

.agent__topbar-max-restore::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    z-index: 1;
    width: 7px;
    height: 7px;
    border: 1.5px solid #666;
    background: #fff;
    box-sizing: border-box;
}

.agent__topbar-item-max:hover .agent__topbar-max-restore::before,
.agent__topbar-item-max:hover .agent__topbar-max-restore::after {
    border-color: #333;
}

.agent__topbar-item-close:hover {
    background: var(--agent-theme-color-hover);
}

.agent__topbar-close {
    position: relative;
    width: 12px;
    height: 12px;
    background: transparent;
    box-sizing: border-box;
}

.agent__topbar-item-close:hover .agent__topbar-close::before,
.agent__topbar-item-close:hover .agent__topbar-close::after {
    background: #fff;
}

.agent__topbar-close:before {
    position: absolute;
    content: '';
    top: 0;
    left: 50%;
    margin-left: -0.5px;
    width: 1px;
    height: 12px;
    background: #666;
    transform: rotate(45deg);
}
.agent__topbar-close:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -0.5px;
    width: 1px;
    height: 12px;
    background: #666;
    transform: rotate(-45deg);
}

/* 翻译消息样式 */
.agent__chat-msg-translated {
    margin-top: 6px;
    border-radius: 4px;
    background-color: #f5f5f5;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    position: relative;
}

.agent__chat-msg-translated-title {
    font-size: 12px;
    color: #2fa0f9;
    margin-bottom: 4px;
    margin-top: 12px;
    font-family: icon !important;
}

.agent__chat-msg-translated-content {
    word-break: break-word;
    color: #2fa0f9;
}

.agent__chat-msg-translating {
    margin-top: 6px;
    border-radius: 4px;
    background-color: #f5f5f5;
    padding: 8px 12px;
    font-size: 14px;
    color: #999;
}

.agent__language-flag {
    width: 20px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #eee;
}

.agent__form-select ul li {
    display: flex;
    align-items: center;
}

.agent__form-select ul li.agent__selected {
    background-color: #f2f2f2;
    font-weight: bold;
}

.agent__form-select .agent__input-select {
    cursor: pointer;
    padding-right: 28px;
}

.agent__form-select::after {
    content: '\ec91';
    font-family: 'icon';
    font-family: icon !important;
    font-style: normal;
    font-size: 14px;
    line-height: 30px;
    color: #666;
    position: absolute;
    right: 8px;
    top: 0;
    bottom: auto;
    height: 30px;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.agent__language-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #eee;
}

/* ===================== 登录/注册页面美化 ===================== */
/* 认证等待：以下为自 app/visitor/view/index + visitor.css 拷贝的 loading（客服页独立一份，不共用文件） */
.agent__auth-loading.agent__vchat-boot-loading {
    position: absolute;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    animation: agent-vchat-boot-loading-reveal 0.2s ease-out 0.5s forwards;
    background-color: #f6f7f8;
    color: var(--agent-theme-color);
    padding-top: var(--agent-safe-area-top, 0px);
    padding-bottom: var(--agent-safe-area-bottom, 0px);
    padding-left: var(--agent-safe-area-left, 0px);
    padding-right: var(--agent-safe-area-right, 0px);
    box-sizing: border-box;
}

@keyframes agent-vchat-boot-loading-reveal {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

.agent__auth-loading.agent__vchat-boot-loading .agent__vchat-boot-loading-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.agent__auth-loading.agent__vchat-boot-loading .agent__loading-spinner-arc {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: agent-loading-spinner-rotate 1s linear infinite;
    will-change: transform;
}

@keyframes agent-loading-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.login-page {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f2f5 50%, #e8eeff 100%);
    z-index: 100;
    -webkit-app-region: drag;
    -webkit-user-select: none;
    user-select: none;
}

.agent-auth-locale {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    -webkit-app-region: no-drag;
}

.agent-auth-locale-trigger {
    display: flex;
    align-items: center;
    min-width: 132px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #1f1f1f;
    background: transparent;
    cursor: pointer;
    outline: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.agent-auth-locale-trigger:hover,
.agent-auth-locale-trigger:focus-visible,
.agent-auth-locale.is-open .agent-auth-locale-trigger {
    border-color: rgba(22, 119, 255, 0.2);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.agent-auth-locale-current-flag,
.agent-auth-locale-option img {
    width: 22px;
    height: 16px;
    margin-right: 9px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.agent-auth-locale-current-label { flex: 1; text-align: left; }
.agent-auth-locale-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    color: #68717d;
    font-size: 16px;
    line-height: 1;
    transition: transform 160ms ease;
}

.agent-auth-locale.is-open .agent-auth-locale-caret { transform: rotate(180deg); }

.agent-auth-locale-menu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 156px;
    padding: 5px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.agent-auth-locale.is-open .agent-auth-locale-menu { display: block; }

.agent-auth-locale-option {
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    color: #1f1f1f;
    background: transparent;
    cursor: pointer;
}

.agent-auth-locale-option:hover,
.agent-auth-locale-option.is-selected { background: #e6f4ff; }
.agent-auth-locale-option > span:first-of-type { flex: 1; text-align: left; }
.agent-auth-locale-check { visibility: hidden; color: #1677ff; }
.agent-auth-locale-option.is-selected .agent-auth-locale-check { visibility: visible; }

.login-card {
    display: flex;
    width: 860px;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(22, 119, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    -webkit-app-region: no-drag;
    user-select: text;
}

.login-card-brand {
    flex: 1;
    background: linear-gradient(145deg, #1677ff 0%, #0958d9 60%, #003eb3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-card-brand::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -130px;
    right: -130px;
}

.login-card-brand::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -90px;
    left: -70px;
}

.login-brand-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
}

.login-brand-icon {
    width: 76px;
    height: 76px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-brand-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.login-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.login-brand-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.8;
}

.login-card-form {
    width: 380px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-inner {
    width: 100%;
    padding: 0 44px;
}

.login-form-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.login-form-subtext {
    font-size: 13px;
    color: #8c8c8c;
    margin: 0 0 28px;
}


.login-registration-success {
    margin: -12px 0 18px;
    padding: 10px 12px;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    background: #f6ffed;
    color: #389e0d;
    font-size: 13px;
    line-height: 1.5;
}
.login-field {
    margin-bottom: 16px;
}

.login-field-label {
    display: block;
    font-size: 13px;
    color: #595959;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-field-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #262626;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    box-sizing: border-box;
    font-family: inherit;
}

.login-field-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
    background: #fff;
}

.login-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-captcha-row .login-field-input {
    flex: 1;
}

.login-captcha-img {
    height: 40px;
    width: 110px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #d9d9d9;
    display: block;
    transition: border-color 0.2s, opacity 0.2s;
}

.login-captcha-img:hover {
    border-color: #1677ff;
    opacity: 0.88;
}

.login-btn-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
}

.login-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 40px;
    background: #1677ff;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 3px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    border: none;
    outline: none;
    font-family: inherit;
}

.login-submit-btn:hover {
    background: #4096ff;
}

.login-submit-btn:active {
    background: #0958d9;
    transform: translateY(1px);
    box-shadow: none;
}

.login-alt-link {
    font-size: 13px;
    color: #1677ff;
    text-decoration: none;
    transition: color 0.2s;
}

.login-alt-link:hover {
    color: #4096ff;
}

.login-sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-sms-row .login-field-input {
    flex: 1;
    width: auto;
}

.login-sms-btn {
    height: 40px;
    padding: 0 14px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.login-sms-btn:hover {
    background: #4096ff;
}

.login-sms-btn:disabled {
    background: #bfbfbf;
    cursor: not-allowed;
}

.login-card-join .login-card-form {
    padding: 40px 0;
    align-items: flex-start;
}

/* 知识库嵌入：无顶栏，iframe 垂直铺满右侧面板（flex 避免沿用 agent__right-body 的 calc(100% - 60px)） */
.agent__right-main-panel.agent__embed-studio {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.agent__embed-studio > .agent__right-head--breadcrumb {
    flex: 0 0 auto;
}

.agent__embed-studio .agent__iframe-body {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.agent__embed-studio .agent__studio-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f2f2f2;
    vertical-align: top;
}

/* AI 设置：智能回复 */
.agent-bot-reply {
    margin-bottom: 4px;
}
.agent-bot-reply__switches {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 10px 0 6px;
}
.agent-bot-reply__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.agent-bot-reply__item .agent__form-switch {
    margin-top: 0;
}
.agent-bot-reply__label {
    font-size: 14px;
    color: #262626;
    user-select: none;
    white-space: nowrap;
}

/* AI 设置：知识库绑定 */
.agent-kb-bind {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.agent-kb-bind__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.agent-kb-bind__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.agent-kb-bind__sub {
    font-size: 12px;
    color: #8c8c8c;
}
.agent-kb-bind__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.agent-kb-bind__mode {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.agent-kb-bind__mode:hover {
    border-color: #d0d0d0;
    background: #fff;
}
.agent-kb-bind__mode--on {
    border-color: var(--agent-theme-color, #007bff);
    background: rgba(0, 123, 255, 0.06);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.12);
}
.agent-kb-bind__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.agent-kb-bind__mode-text {
    font-size: 14px;
    color: #262626;
    user-select: none;
}
.agent-kb-bind__panel {
    max-width: 440px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.agent-kb-bind__state {
    padding: 16px 18px;
    font-size: 13px;
    color: #595959;
}
.agent-kb-bind__state--muted {
    color: #8c8c8c;
}
.agent-kb-bind__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}
.agent-kb-bind__item {
    margin: 0;
}
.agent-kb-bind__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.agent-kb-bind__check:hover {
    background: #f7f9fc;
}
.agent-kb-bind__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--agent-theme-color, #007bff);
    cursor: pointer;
    flex-shrink: 0;
}
.agent-kb-bind__item-name {
    font-size: 14px;
    color: #262626;
    user-select: none;
}

/* ===================== 快捷回复管理 ===================== */
/* 卡片宽度与同页其它「更多功能」大区块一致（.agent__big-section），本类仅处理 overflow */
#reply_manage .agent__big-section--reply-manage {
    overflow: hidden;
}

#reply_manage .agent__section-head--with-actions .agent__section-head__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#reply_manage .agent__reply-import-export-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

#reply_manage .agent__reply-manage-body {
    margin: 0;
}

#reply_manage .agent__reply-manage {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 440px;
    padding: 0;
    box-sizing: border-box;
}

#reply_manage .agent__reply-manage-sidebar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 560px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #f0f0f0;
    overflow: hidden;
}

/* 分组 / 内容 两侧标题条：同一背景、字重与分隔线 */
#reply_manage .agent__reply-manage-sidebar__label,
#reply_manage .agent__reply-manage-panel__head {
    flex-shrink: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    color: #595959;
    line-height: 1.4;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

#reply_manage .agent__reply-manage-sidebar__label {
    padding: 0 16px;
}

#reply_manage .agent__reply-manage-panel__head {
    padding: 0 20px;
}

#reply_manage .agent__reply-manage-panel__head--cols {
    display: flex;
    align-items: center;
    gap: 12px;
}

#reply_manage .agent__reply-manage-head-code {
    flex: 0 0 112px;
    min-width: 0;
    font-weight: 600;
}

#reply_manage .agent__reply-manage-head-content {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

#reply_manage .agent__reply-manage-row__code {
    flex: 0 0 112px;
    min-width: 0;
    font-size: 13px;
    color: #595959;
}

#reply_manage .agent__reply-manage-nav {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

#reply_manage .agent__reply-manage-nav-item {
    margin: 0 0 4px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #595959;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
}

#reply_manage .agent__reply-manage-nav-item:hover {
    background: #fafafa;
    color: #262626;
}

#reply_manage .agent__reply-manage-nav-item:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#reply_manage .agent__reply-manage-nav-item--active {
    background: #e2f2ff;
    color: var(--agent-theme-color, #007bff);
}

#reply_manage .agent__reply-manage-nav-item--active:hover {
    color: var(--agent-theme-color, #007bff);
}

#reply_manage .agent__reply-manage-nav-item .agent__ellipsis {
    display: block;
    width: auto;
    max-width: 100%;
}

#reply_manage .agent__reply-manage-panel {
    flex: 1;
    min-width: 0;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

#reply_manage .agent__reply-manage-scroll {
    flex: 1;
    min-height: 120px;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#reply_manage .agent__reply-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

#reply_manage .agent__reply-manage-empty {
    margin: 0;
    padding: 28px 20px 20px;
    font-size: 13px;
    color: #8c8c8c;
    line-height: 1.6;
    text-align: center;
    flex: 1;
}

#reply_manage .agent__reply-manage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #262626;
    line-height: 1.5;
    transition: background 0.15s ease;
}

#reply_manage .agent__reply-manage-row:hover {
    background: #fafafa;
}

#reply_manage .agent__reply-manage-row:last-child {
    border-bottom: none;
}

#reply_manage .agent__reply-manage-row__text {
    flex: 1;
    min-width: 0;
}

#reply_manage .agent__reply-manage-row__text.agent__ellipsis {
    width: auto;
    max-width: 100%;
}

#reply_manage .agent__reply-manage-row__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

#reply_manage .agent__reply-manage-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: icon !important;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    color: #8c8c8c;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-font-smoothing: antialiased;
}

#reply_manage .agent__reply-manage-iconbtn:hover {
    background: #e6f4ff;
    color: var(--agent-theme-color, #007bff);
}

#reply_manage .agent__reply-manage-iconbtn--danger:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

#reply_manage .agent__reply-manage-iconbtn:focus {
    outline: none;
}

#reply_manage .agent__reply-manage-iconbtn:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#reply_manage .agent__reply-manage-toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

#reply_manage .agent__reply-manage-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: var(--agent-theme-color, #007bff);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

#reply_manage .agent__reply-manage-primary:hover {
    background: var(--agent-theme-color-hover, #0069d9);
}

#reply_manage .agent__reply-manage-primary:focus {
    outline: none;
}

#reply_manage .agent__reply-manage-primary:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#reply_manage .agent__reply-manage-primary__icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.agent__form-select ul li.agent__form-select-tip {
    cursor: default;
    color: #999;
}

.agent__form-select ul li.agent__form-select-tip:hover {
    background-color: #fff;
}

.agent__form-select ul li.agent__form-select-tip--error {
    color: #c0392b;
    word-break: break-word;
}

.agent__form-select ul li.agent__wework-account-option {
    display: block;
    line-height: 1.4;
}

.agent__form-select ul li.agent__wework-account-option .agent__wework-account-option-id {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #888;
    font-weight: normal;
    word-break: break-all;
}

/* ===================== END 登录/注册页面美化 ===================== */
