/* notyf.min.css */
@-webkit-keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@-webkit-keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@-webkit-keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;-webkit-animation:notyf-fadeinup .3s ease-in forwards;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px 0 rgba(0,0,0,.25);position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{-webkit-animation:notyf-fadeoutright .3s forwards;animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translateX(0)}.notyf__toast--disappear .notyf__message{-webkit-animation-delay:.05s;animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translateX(13%);z-index:5;-webkit-animation:ripple .4s ease-out forwards;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.3s;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;-webkit-animation:notyf-fadeinleft .3s forwards;animation:notyf-fadeinleft .3s forwards;-webkit-animation-delay:.35s;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:rgba(0,0,0,.25);border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:rgba(0,0,0,.15)}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;-webkit-animation-duration:.5s;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px 0 rgba(0,0,0,.13);width:100%}.notyf__dismiss{width:56px}}

/* chat.css */
.requestBody, .response .markdown-body {
    max-width: calc(100% - 88px);
}

.bottom_wrapper {
    max-width: 100%;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

html {
    width: 100%;
    height: 100%;
}

:root {
    --background: #edeff2;
    --chat-back: #fff;
    --main-back: #f6f6f6;
    --active-btn: #e0e0e0;
    --lighter-active: #eaeaea;
    --sel-btn: #d0d0d0;
    --btn-color: #404040;
    --text-color: #909090;
    --chat-text-color: #24292f;
    --response-color: #f7f7f8;
    --lighter-active-color: #e8e8e8;
    --lighter-text-color: #555;
    --svg-color: #808080;
    --lighter-svg-color: #c0c0c0;
    --code-color: #f9fafb;
    --black-color: #000;
    --boder-solid:1px solid #e5e7eb;
}

[data-theme="dark"] {
    --background: #1f1f1f;
    --chat-back: #3c3c3c;
    --main-back: #333;
    --active-btn: #1f1f1f;
    --lighter-active: #151515;
    --sel-btn: #1e1e1e;
    --btn-color: #bfbfbf;
    --text-color: #8f8f8f;
    --chat-text-color: #c9d1d9;
    --response-color: #2f2f2f;
    --lighter-active-color: #171717;
    --lighter-text-color: #aaa;
    --svg-color: #7f7f7f;
    --lighter-svg-color: #3f3f3f;
    --code-color: #101010;
    --black-color: #fff;
    --boder-solid:1px solid #e5e7eb;
}

body {
    background-color: var(--background);
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.markdown-body .mermaid svg{
	background: var(--code-color);
}
.markdown-body .km-view{
	background:none !important;
}
.markdown-body .ai-gen svg, .markdown-body .ai-gen iframe{
	background: var(--code-color);
	min-height: 450px;
	border-radius: 12px;
	border: var(--boder-solid);
}
.km-receiver{
	display: none;
}

.chat_window {
    position: absolute;
    width: 100%;
    max-width: 1188px;
    height: 100%;
    max-height: 888px;
    background-color: var(--chat-back);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.chat_window>.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 90;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
    transition: all 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 1188px) and (max-height: 888px) {
    #toggleFull {
        display: none;
    }
}

@media screen and (min-width: 800px) {
    .chat_window {
        display: flex;
    }

    .mainContent {
        width: calc(100% - 250px);
    }

    .chat_window>.nav {
        position: relative;
        margin-left: -250px;
        transition: margin-left 250ms;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .show-nav .nav {
        margin-left: 0;
    }

    #sysDialog {
        max-width: 600px;
    }

    .sysContent {
        display: flex;
    }

    .sysSwitch {
        flex-shrink: 0;
        width: 160px;
    }

    .sysSwitch>div {
        padding-left: 6px;
    }

    .sysDetail {
        margin-left: 12px;
        margin-top: 5px;
    }

    .setNotNormalFlow {
        width: calc(100% - 212px);
    }
}

@media screen and (max-width: 800px) {
    .chat_window {
        display: block;
    }

    .mainContent {
        width: 100%;
    }

    .chat_window>.nav {
        position: absolute !important;
        left: -250px;
        transition: left 250ms;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .show-nav .nav {
        left: 0;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 10px -5px, rgba(0, 0, 0, 0.14) 0px 16px 24px 2px, rgba(0, 0, 0, 0.12) 0px 6px 30px 5px;
    }

    .show-nav .overlay {
        visibility: visible;
        opacity: 1;
    }

    #sysDialog {
        max-width: 400px;
    }

    .sysSwitch {
        display: flex;
    }

    .sysSwitch>div {
        width: 50%;
        justify-content: center;
    }

    .sysDetail {
        margin-top: 8px;
    }

    .setNotNormalFlow {
        width: calc(100% - 40px);
    }
}

.full_window {
    max-width: none;
    max-height: none;
}

.chat_window>.nav {
    width: 250px;
    height: 100%;
    border-right: var(--boder-solid);
    background-color: var(--main-back);
    top: 0;
    z-index: 99;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.mainContent {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top_menu {
    background-color: var(--main-back);
    width: 100%;
    height: 50px;
    padding: 5px 0;
}

.top_menu .toggler {
    margin-left: 10px;
    width: 40px;
    height: 40px;
    float: left;
    padding: 5px 7px;
    border-radius: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.top_menu .toggler:hover {
    background: var(--active-btn);
}

.top_menu .toggler .button {
    width: 24px;
    height: 2px;
    position: absolute;
    pointer-events: none;
}

.top_menu .toggler .button.item1 {
    margin-top: 6px;
    background-color: rgba(0, 0, 0, .3);
}

.top_menu .toggler .button.item2 {
    margin-top: 14px;
    background-color: rgba(0, 0, 0, .3);
}

.top_menu .toggler .button.item3 {
    margin-top: 22px;
    background-color: rgba(0, 0, 0, .3);
}

.top_menu .title {
    color: var(--text-color);
    font-size: 20px;
    height: 40px;
    line-height: 40px;
    position: relative;
    pointer-events: none;
}

.top_menu .title>span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.messages {
    position: relative;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 16px;
    color: var(--chat-text-color);
    text-align: center;
}

.messages::-webkit-scrollbar,
#chatlog .markdown-body pre>code::-webkit-scrollbar,
#setDialog::-webkit-scrollbar,
.allList::-webkit-scrollbar,
.sysDetail::-webkit-scrollbar,
#apiSelect::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.messages::-webkit-scrollbar-track,
#chatlog .markdown-body pre>code::-webkit-scrollbar-track,
#setDialog::-webkit-scrollbar-track,
.allList::-webkit-scrollbar-track,
.sysDetail::-webkit-scrollbar-track,
#apiSelect::-webkit-scrollbar-track {
    background-clip: padding-box;
    background: transparent;
    border: none;
}

.messages::-webkit-scrollbar-corner,
#chatlog .markdown-body pre>code::-webkit-scrollbar-corner,
#setDialog::-webkit-scrollbar-corner,
.allList::-webkit-scrollbar-corner,
.sysDetail::-webkit-scrollbar-corner,
#apiSelect::-webkit-scrollbar-corner {
    background-color: transparent;
}

.messages::-webkit-scrollbar-thumb,
#chatlog .markdown-body pre>code::-webkit-scrollbar-thumb,
#setDialog::-webkit-scrollbar-thumb,
.allList::-webkit-scrollbar-thumb,
.sysDetail::-webkit-scrollbar-thumb,
#apiSelect::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    border: solid transparent;
    border-radius: 10px;
}

.messages::-webkit-scrollbar-thumb:hover,
#chatlog .markdown-body pre>code::-webkit-scrollbar-thumb:hover,
#setDialog::-webkit-scrollbar-thumb:hover,
.allList::-webkit-scrollbar-thumb:hover,
.sysDetail::-webkit-scrollbar-thumb:hover,
#apiSelect::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

#chatlog {
    word-wrap: break-word;
    text-align: start;
}

.response>.chatAvatar {
    margin-top: 15px;
    margin-bottom: 15px;
}

.response .gpt3Avatar {
    background: #0ea5e9;
    border-radius: 50%;
}

.response .gpt4Avatar {
    background: #ab68ff;
}

.chatAvatar {
    margin: 15px;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 2px;
}

.chatAvatar>img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.chatAvatar>svg {
    display: block;
    margin-top: 4px;
    margin-left: 4px;
}

#chatlog .request {
    position: relative;
    display: flex;
    justify-content: center;
}

.requestBody {
    white-space: pre-wrap;
    margin: 20px 0 20px 20%;
    flex: 1;
    justify-content: flex-end;
    display: flex;
    width: 100%;
}
.requestBody span{
    padding: 8px 16px;
    background-color: #0000000a;
    border-radius: 12px;
}
#chatlog .response {
    position: relative;
    display: flex;
    justify-content: center;
    margin:10px 0;
}

.response .markdown-body {
    margin: 15px 0;
    flex: 1;
    padding: 5px 0;
    border-radius: 12px;
}

#chatlog .markdown-body a {
    padding: 0 1px 0 2px;
}

#chatlog .markdown-body pre {
    padding: 10px;
    position: relative;
    background: var(--code-color);
}

#chatlog .markdown-body pre>code {
    overflow-x: auto;
    display: block;
}

#chatlog .markdown-body ul {
    list-style-type: disc;
}

.m-mdic-copy-wrapper {
    position: absolute;
    top: 5px;
    right: 16px;
    -webkit-user-select: none;
    user-select: none;
}

.m-mdic-copy-wrapper span.u-mdic-copy-code_lang {
    position: absolute;
    top: 3px;
    right: calc(100% + 4px);
    font-family: system-ui;
    font-size: 12px;
    line-height: 18px;
    color: #bbb;
}

.m-mdic-copy-wrapper div.u-mdic-copy-notify {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: 3px;
    background: none;
    font-family: system-ui;
    font-size: 12px;
    line-height: 18px;
    color: var(--lighter-text-color);
    outline: none;
    right: 100%;
    padding-right: 4px;
}

.m-mdic-copy-wrapper button.u-mdic-copy-btn {
    position: relative;
    top: 0;
    right: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: 3px;
    background: none;
    font-family: system-ui;
    font-size: 12px;
    line-height: 18px;
    color: #bbb;
    outline: none;
    cursor: pointer;
    transition: color 250ms;
}

.m-mdic-copy-wrapper span.u-mdic-copy-code_lang::before,
.m-mdic-copy-wrapper div.u-mdic-copy-notify::before,
.m-mdic-copy-wrapper button.u-mdic-copy-btn::before {
    content: attr(text);
}

.m-mdic-copy-wrapper button.u-mdic-copy-btn:hover {
    color: var(--lighter-text-color);
}

#loadingChat {
    display: none;
    margin: 0 auto;
    margin-top: 3px;
    width: 100px;
    height: 40px;
    text-align: center;
    line-height: 32px;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    position: sticky;
    bottom: 2px;
    justify-content: center;
    align-items: center;
}
#loadingChat svg{
	width: 100px;
    height: 40px;
}

.bottom_wrapper {
	position: relative;
    width: 100%;
}
.bottom-input{
    border: var(--boder-solid);
    border-radius: 16px;
    padding: 10px;
    margin: 10px;
}

.bottom-input textarea {
    height: 50px;
    max-height: 200px;
	margin-bottom:10px;
    display: block;
    width: 100%;
    color: var(--chat-text-color);
    background-color: #fff;
    box-shadow: none;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;	
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.42857143;
    border: none;
    outline: none;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

#plugin_select{
	flex-grow: 1;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: 40px;
}
#plugin_select label{
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 25px;
    border: 1px solid #00000014;
    margin-right: 8px;
}
#plugin_select label.selected{
	background-color: #daeeff;
    color: #0285ff;
    border: 1px solid #daeeff;
}
#plugin_select .file-icon{
	background-size: 22px 22px;
}

.clearConv {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 47px;
    height: 47px;
    border-radius: 3px;
    background: var(--text-color);
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}

.clearConv>svg {
    margin: 0 auto;
}

.clearConv:hover {
    background: var(--svg-color);
}

.clearConv svg:first-child {
    display: none;
}

.clearConv svg:nth-child(2) {
    display: block;
}

.closeConv {
    background: var(--active-btn);
}

.closeConv:hover {
    background: var(--lighter-active-color);
}

.closeConv svg:first-child {
    display: block;
}

.closeConv svg:nth-child(2) {
    display: none;
}

.switch-slide {
    display: inline-block;
    vertical-align: middle;
}

.switch-slide-label {
    display: block;
    width: 38px;
    height: 18px;
    background: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    -webkit-transition: all 250ms;
    transition: all 250ms;
}

.switch-slide-label:after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    position: absolute;
    left: 1px;
    top: 1px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition: all 250ms;
    transition: all 250ms;
}

.switch-slide input:checked+label {
    background: #0ea5e9;
    -webkit-transition: all 250ms;
    transition: all 250ms;
}

.switch-slide input:checked+label:after {
    left: 21px;
}

.settings {
    margin-right: 10px;
    display: flex;
    position: absolute;
    right: 0;
    top: 5px;
    display: none;
}

.setBtn {
    margin-left: 2px;
    cursor: pointer;
    padding: 5px;
    border: none;
    background-color: transparent;
    border-radius: 4px;
}

.setBtn>svg {
    display: block;
    color: var(--text-color);
}

.setBtn:hover {
    background: var(--active-btn);
}

#setting {
    right: 15px;
}

#toggleFull {
    right: 56px;
}

#toggleLight *,
#toggleFull * {
    pointer-events: none;
}

.showSetting {
    background: var(--lighter-svg-color) !important;
}

#setDialog {
    color: var(--btn-color);
    position: absolute;
    z-index: 2;
    background: var(--main-back);
    width: 320px;
    right: 6px;
    top: 46px;
    overflow-y: auto;
    max-height: calc(100% - 55px);
    -webkit-user-select: none;
    user-select: none;
    border-radius: 5px;
    padding: 8px 12px 8px 12px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

#setDialog input {
    width: 100%;
}

#setDialog .inlineTitle {
    display: inline-block;
    width: 88px;
    line-height: 16px;
    vertical-align: middle;
}

#convOption,
#speechOption,
#speechDetail,
#recOption {
    margin-bottom: 6px;
}

#convOption>div,
#speechOption>div,
#speechDetail>div,
#recOption div {
    margin-top: 7px;
}

#voiceRecSetting select, #speechDetail select {
    background: var(--chat-back);
    color: var(--chat-text-color);
}

.inputTextClass {
    outline: none;
    border-radius: 2px;
    margin-top: 3px;
    height: 32px;
    font-size: 15px;
    padding-left: 6px;
    background: var(--chat-back);
    color: var(--chat-text-color);
    border: none;
}

.areaTextClass {
    width: 100%;
    height: 80px;
    display: block;
    resize: none;
    padding: 6px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    margin: 4px 0 3px 0;
    height: 8px;
    background: var(--text-color);
    border-radius: 5px;
    background-image: linear-gradient(#0ea5e9, #0ea5e9);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: ew-resize;
}

input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.justSetLine {
    display: flex;
    justify-content: space-between;
}

.justSetBtn {
    height: 32px;
    border-radius: 3px;
    line-height: 32px;
    background: var(--lighter-active);
    text-align: center;
    padding: 0px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.justSetBtn:hover {
    background-color: var(--sel-btn);
}

.justSetBtn>svg {
    margin-right: 3px;
}

.readyTestVoice>div:not(:first-child) {
    display: none;
}

.pauseTestVoice>div:nth-child(1),
.pauseTestVoice>div:nth-child(3) {
    display: none;
}

.resumeTestVoice>div:nth-child(1),
.resumeTestVoice>div:nth-child(2) {
    display: none;
}

.presetSelect>div {
    display: inline-block;
}

.presetSelect select {
    outline: none;
    border-radius: 3px;
    width: 128px;
    border-color: rgba(0, 0, 0, .3);
    background: var(--chat-back);
    color: var(--chat-text-color);
}

.selectDef {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-color);
}

#preSetSpeech {
    width: 100%;
    outline: none;
    height: 30px;
    font-size: 14px;
    margin-top: 5px;
    border-radius: 3px;
    border-color: rgba(0, 0, 0, .3);
}

.mdOption {
    flex-shrink: 0;
    width: 30px;
    pointer-events: none;
}

.mdOption>div {
    pointer-events: auto;
    cursor: pointer;
}

.mdOption svg * {
    pointer-events: none;
}

.refreshReq svg:not(:first-child) {
    display: none;
}

.halfRefReq svg:not(:nth-child(2)) {
    display: none;
}

.optionItems {
    position: absolute;
    bottom: -12px;
    display: flex;
    justify-content: space-between;
    visibility: hidden;
    z-index: 1;
    color: var(--svg-color);
}

.optionItems:hover {
    visibility: visible;
}

.request:hover .optionItems,
.request:hover .voiceCls,
.response:hover .optionItems,
.response:hover .voiceCls {
    visibility: visible;
}

.optionItem {
    border-radius: 10px;
    height: 24px;
    width: 32px;
    border: 1px solid var(--active-btn);
    background-color: var(--response-color);
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin:2px;
}

.optionItem * {
    pointer-events: none;
}

.optionItem:hover {
    background: var(--active-btn);
}

.voiceCls {
    position: relative;
    height: 100%;
    visibility: hidden;
    display: flex;
    align-items: center;
    display: none;
}

.voiceCls>svg {
    color: var(--lighter-svg-color);
    display: block;
    margin-left: 5px;
    position: relative;
}

.voiceCls:hover>svg {
    color: var(--svg-color);
}

.showVoiceCls,
.showVoiceCls .markdown-body {
    background: var(--active-btn) !important;
}

.showVoiceCls .voiceCls {
    visibility: visible !important;
}

.readyVoice svg:not(:first-child) {
    display: none;
}

.pauseVoice svg:not(:nth-child(2)) {
    display: none;
}

.resumeVoice svg:not(:nth-child(3)) {
    display: none;
}

#voiceTypes>span {
    border-radius: 3px;
    margin-left: 4px;
    cursor: pointer;
    padding: 1px 5px;
}

#voiceTypes>span:hover {
    background: var(--active-btn);
}

.selVoiceType {
    background: var(--sel-btn) !important;
}

.navHeader {
    width: 100%;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
}

#newChat {
    text-align: center;
    width: 80%;
    height: 40px;
    border-radius: 3px;
    background: var(--lighter-active-color);
    color: var(--btn-color);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    flex: 1;
}

.navHeader>div:hover {
    background: var(--active-btn) !important;
}

#newChat>svg {
    margin-right: 2px;
}

#newFolder {
    height: 40px;
    width: 40px;
    margin-left: 10px;
    border-radius: 3px;
    color: var(--btn-color);
    cursor: pointer;
    position: relative;
    background: var(--lighter-active-color);
    -webkit-user-select: none;
    user-select: none;
}

#newFolder>svg {
    display: block;
    margin: 8px auto;
}

.extraChat {
    padding: 2px 10px 6px 10px;
    position: relative;
}

#searchChat {
    width: 100%;
    height: 36px;
    padding-left: 10px;
    padding-right: 45px;
    font-size: 16px;
    outline: none;
    border: none;
    color: var(--chat-text-color);
    background: var(--lighter-active-color);
    border-radius: 3px;
}

#searchChat:focus {
    background: var(--active-btn)
}

#searchChat:placeholder-shown+#clearSearch {
    display: none;
}

#clearSearch {
    position: absolute;
    right: 34px;
    top: 8px;
    cursor: pointer;
    color: var(--btn-color);
}

#clearSearch:hover {
    color: var(--black-color);
}

#clearSearch>svg {
    display: block;
}

.seledSearch {
    background: var(--lighter-svg-color) !important;
}

#matchCaseSearch {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    border-radius: 3px;
    color: var(--btn-color);
}

#matchCaseSearch:hover {
    background: var(--sel-btn);
}

#matchCaseSearch>svg {
    display: block;
}

.navFooter {
    padding-bottom: 8px;
}

.navFooter .divider {
    width: 100%;
    border-top: 1px solid var(--active-btn);
    margin: 4px 0;
}

.navFunc {
    padding-top: 5px;
    display: flex;
    justify-content: space-around;
}

.navFunc svg {
    display: block;
}

.navFunc>div,
.navFunc>label {
    border-radius: 20px;
    text-align: center;
    padding: 8px 8px;
    color: var(--btn-color);
    font-size: 14px;
    cursor: pointer;
}

.navFunc>div:hover,
.navFunc>label:hover {
    background: var(--active-btn);
}

.navFooter .links {
    text-align: center;
}

.navFooter .links a {
    color: var(--btn-color);
    text-decoration: none;
}

.navFooter .links a:hover {
    color: var(--chat-text-color) !important;
}

.navFooter .links a:visited {
    color: var(--btn-color);
}

.allList {
    width: 100%;
    position: relative;
    flex: 1;
    overflow-y: auto;
}

#chatList {
    min-height: 50px;
}

.dragingLi {
    filter: brightness(90%);
}

.dragingChat {
    background: var(--lighter-active-color);
}

.expandFolder>.headLi>svg {
    transform: rotate(90deg);
}

.expandFolder>.chatsInFolder {
    display: block;
}

.chatsInFolder {
    display: none;
    margin-left: 22px;
    padding-left: 2px;
    border-left: 1px solid var(--text-color);
}

.headLi,
.chatLi {
    cursor: pointer;
    width: 100%;
    height: 50px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.headLi *,
.chatLi * {
    pointer-events: none;
}

.headLi>svg,
.chatLi>svg {
    margin-left: 10px;
    color: var(--btn-color);
    pointer-events: none;
}

.folderOption svg,
.chatOption svg {
    pointer-events: auto;
}

.headLi svg *,
.chatLi svg * {
    pointer-events: none;
}

.headLi .folderInfo {
    position: absolute;
    left: 40px;
    height: 40px;
    max-width: calc(100% - 115px);
}

.chatLi .chatInfo {
    position: absolute;
    left: 40px;
    height: 40px;
    max-width: calc(100% - 90px);
}

.folderInfo *,
.chatInfo * {
    -webkit-user-select: none;
    user-select: none;
}

.chatInfo span {
    background: #f8b26a;
}

.headLi .folderName,
.chatLi .chatName {
    color: var(--btn-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    line-height: 20px;
    height: 20px;
}

.headLi .folderNum,
.chatLi .chatPre {
    color: var(--btn-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 12px;
    line-height: 20px;
    height: 20px;
}

.headLi .folderOption,
.chatLi .chatOption {
    visibility: hidden;
    display: flex;
    color: #777;
    margin-right: 2px;
}

.folderLi .chatLi>svg {
    margin-left: 5px;
}

.folderLi .chatLi .chatInfo {
    left: 35px;
    max-width: calc(100% - 85px);
}

.folderLi .chatLi #activeChatEdit {
    left: 32px;
    width: calc(100% - 60px)
}

.folderLi:hover {
    background: var(--lighter-active);
}

.chatLi:hover {
    background: var(--active-btn);
}

.headLi:hover .folderOption,
.chatLi:hover .chatOption {
    visibility: visible !important;
}

.activeFolder,
.activeChatLi {
    background: var(--sel-btn) !important;
}

.activeChatLi .chatOption {
    visibility: visible !important;
}

.folderOption>svg:hover,
.chatOption>svg:hover {
    color: #444;
}

#activeChatEdit {
    position: absolute;
    left: 37px;
    font-size: 16px;
    border-radius: 2px;
    color: var(--chat-text-color);
    background: var(--chat-back);
    outline: none;
    border: none;
    pointer-events: auto;
    height: 24px;
    line-height: 24px;
    width: calc(100% - 65px);
    padding: 20px 3px;
    z-index: 1;
}

#loadMask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: var(--background);
}

#loadMask>div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

@keyframes loading {

    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.loadingCSSIcon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.loadingCSSIcon div {
    width: 15%;
    height: 0;
    padding-bottom: 15%;
    border-radius: 50%;
    animation: loading 1s cubic-bezier(0.3, 0, 0.7, 1) infinite;
}

.loadingCSSIcon div:nth-child(1) {
    background: #e15b64;
    animation-delay: -0.4s
}

.loadingCSSIcon div:nth-child(2) {
    background: #f8b26a;
    animation-delay: -0.2s
}

.loadingCSSIcon div:nth-child(3) {
    background: #0ea5e9;
    animation-delay: 0s;
}

#loadMask>div>:first-child {
    font-size: 40px;
    color: var(--text-color);
}

#loadMask>div>:last-child {
    width: 140px;
    height: 70px;
    margin: 0 auto;
}

#voiceRecIcon>svg .animVoice {
    display: none;
}

.voiceRecing>svg {
    color: #0ea5e9 !important;
}

.voiceRecing .animVoice {
    display: inline !important;
    transform-origin: 0 64%;
    animation-duration: 1.5s;
    animation-name: scaleVoice;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.voiceLong .animVoice {
    display: inline !important;
    transform-origin: 0 64%;
    animation-duration: 0.3s;
    animation-name: longVoice;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
}

@keyframes longVoice {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes scaleVoice {
    0% {
        transform: scaleY(0.28);
    }

    20% {
        transform: scaleY(0.60);
    }

    28% {
        transform: scaleY(0.28);
    }

    36% {
        transform: scaleY(0.45);
    }

    44% {
        transform: scaleY(0.28);
    }

    52% {
        transform: scaleY(0.45);
    }

    62% {
        transform: scaleY(0.80);
    }

    72% {
        transform: scaleY(0.80);
    }

    90% {
        transform: scaleY(0.28);
    }

    100% {
        transform: scaleY(0.28);
    }
}

#voiceRecSetting {
    display: none;
    position: absolute;
    top: -70px;
    left: -26px;
    z-index: 1;
    padding: 4px 4px;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 3px;
    background-color: var(--main-back);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

#voiceRecSetting select {
    width: 102px;
    outline: none;
    height: 28px;
    border-radius: 3px;
    border-color: rgba(0, 0, 0, .3);
}

.presetModelCls label {
    margin-right: 8px;
}

.presetModelCls select {
    height: 30px;
    margin-top: 2px;
    font-size: 15px;
}

.setSwitch {
    display: flex;
}

.setSwitch>div {
    border-radius: 3px;
    width: calc(100% / 3);
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.setSwitch>div:hover {
    background-color: var(--active-btn);
}

.activeSwitch {
    background-color: var(--sel-btn) !important;
}

#checkVoiceLoad {
    height: 32px;
    border-radius: 3px;
    line-height: 32px;
    background: var(--sel-btn);
    text-align: center;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

#checkVoiceLoad:hover {
    background: var(--lighter-svg-color);
}

.voiceChecking {
    background-color: var(--lighter-svg-color) !important;
}

.voiceChecking>svg {
    display: inline !important;
}

#checkVoiceLoad>svg {
    display: none;
    margin-right: 8px;
    height: 32px;
    width: 64px;
}

#preSetSystem {
    height: 20px;
    line-height: 20px;
    vertical-align: top;
}

#sysMask {
    display: none;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .4);
    -webkit-tap-highlight-color: transparent;
}

#sysDialog {
    position: relative;
    background: var(--chat-back);
    color: var(--btn-color);
    cursor: auto;
    max-height: 100%;
    width: 88%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    padding: 12px 20px 12px 20px;
}

.sysTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.sysSwitch,
.sysSwitch>div * {
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sysSwitch>div {
    border-radius: 3px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    font-weight: bold;
    display: flex;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.sysSwitch>div>svg {
    margin-right: 4px;
}

.sysSwitch>div:hover {
    background-color: var(--active-btn);
}

.sysDetail {
    overflow-y: auto;
    flex: 1;
}

#closeSet {
    position: absolute;
    right: 0px;
    top: 0px;
    cursor: pointer;
    padding: 10px 14px;
}

#closeSet:hover {
    color: var(--black-color);
}

.setContent {
    margin-bottom: 10px;
}

.setNotNormalFlow {
    position: absolute;
}

.setTitle {
    margin-bottom: 6px;
    font-weight: bold;
    -webkit-user-select: none;
    user-select: none;
}

.setDetail {
    margin: 0 10px;
    -webkit-user-select: none;
    user-select: none;
}

.autoSelect>label,
.autoSelect>input {
    cursor: pointer;
}

.dataDetail {
    display: flex;
}

.dataDetail svg {
    margin-right: 4px;
}

.dataDetail>div,
.dataDetail>label {
    border-radius: 3px;
    text-align: center;
    padding: 6px 8px;
    margin-right: 12px;
    color: var(--btn-color);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dataDetail>div:hover,
.dataDetail>label:hover {
    background: var(--lighter-active-color);
}

.keyOptionDetail {
    display: flex;
    margin-top: 10px;
}

#resetHotKey {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    color: var(--btn-color);
    border-radius: 3px;
    padding: 6px 8px;
    margin-left: 90px;
}

#resetHotKey>svg {
    margin-right: 4px;
}

#resetHotKey:hover {
    background: var(--lighter-active-color);
}

.hotKeyDetail>div {
    position: relative;
    height: 30px;
    margin-bottom: 2px;
}

.hotKeyDetail label {
    line-height: 30px;
}

.hotKeyDetail select {
    position: absolute;
    left: 150px;
    outline: none;
    border-radius: 3px;
    width: 120px;
    border-color: rgba(0, 0, 0, .3);
    background: var(--chat-back);
    color: var(--chat-text-color);
    height: 30px;
    font-size: 15px;
}

.avatarDetail {
    display: flex;
    margin-top: 2px;
}

.avatarDetail img {
    border-radius: 2px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 2px;
}

.inputDetail input {
    outline: none;
    border-radius: 3px;
    padding-left: 8px;
    font-size: 15px;
    width: 100%;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, .3);
    background: var(--chat-back);
    color: var(--chat-text-color);
}

.apiDetail {
    display: flex;
}

.apiDetail input {
    flex: 1;
}

.apiDetail>div {
    margin-left: 6px;
    background: var(--lighter-active-color);
    border-radius: 3px;
    width: 108px;
    text-align: center;
    cursor: pointer;
    margin-top: 2px;
    height: 34px;
    line-height: 34px;
    font-size: 15px;
}

.apiDetail>div:hover {
    background: var(--active-btn);
}

.themeDetail {
    display: flex;
    width: 180px;
    justify-content: space-between;
    pointer-events: none;
}

.themeDetail svg {
    display: block;
}

.themeDetail>div {
    pointer-events: auto;
    border-radius: 20px;
    text-align: center;
    padding: 8px 8px;
    color: var(--btn-color);
    font-size: 14px;
    cursor: pointer;
}

.themeDetail>div * {
    pointer-events: none;
}

.themeDetail>div:hover {
    background: var(--lighter-active-color);
}

.darkTheme>div:first-child {
    background: var(--sel-btn);
}

.lightTheme>div:nth-child(2) {
    background: var(--sel-btn);
}

.autoTheme>div:nth-child(3) {
    background: var(--sel-btn);
}

.langDetail {
    width: 110px;
}

.enLang>div:first-child {
    background: var(--sel-btn);
}

.zhLang>div:nth-child(2) {
    background: var(--sel-btn);
}

#customAutoSet input {
    width: 100px;
    height: 30px;
    line-height: 30px;
    font-size: 15px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, .3);
    text-align: center;
    border-radius: 3px;
    background: var(--chat-back);
    color: var(--chat-text-color);
}

#customAutoSet label {
    margin-right: 8px;
}

.progressBar {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: var(--active-btn);
    overflow: hidden;
}

.nowProgress {
    position: absolute;
    left: 0;
    top: 0;
    height: 12px;
    min-width: 1px;
    border-radius: 6px;
    background: #0ea5e9;
}

.progressDetail {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.cursorCls {
    background: var(--chat-text-color);
    width: 4px;
    animation: 1s cursor-blinker infinite step-start;
}

@keyframes cursor-blinker {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#apiSelect {
    position: absolute;
    top: 37px;
    padding: 4px 0;
    background: var(--chat-back);
    width: 100%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    max-height: 180px;
    overflow-y: auto;
    -webkit-user-select: none;
    user-select: none;
}

#apiSelect>div {
    pointer-events: auto;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 0 6px 8px;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#apiSelect>div:hover {
    background: var(--lighter-active-color);
}

#apiSelect>div>span {
    height: 100%;
    line-height: 23px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#apiSelect>div * {
    pointer-events: none;
}

.delApiOption:hover {
    background: var(--lighter-svg-color);
}

.delApiOption {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    pointer-events: auto !important;
}

.delApiOption>svg {
    margin: 6px;
    display: block;
}


/* for katex */
.katex {
    font-size: 1em !important;
}

eq {
    display: inline-block;
}

eqn {
    display: block
}

section.eqno {
    display: flex;
    flex-direction: row;
    align-content: space-between;
    align-items: center;
}

section.eqno>eqn {
    width: 100%;
    margin-left: 3em;
}

section.eqno>span {
    width: 3em;
    text-align: right;
}
.weixin{
	display: none;
}
.weixin .matools{
	height: 30px;
    background: #07C160;
    border-radius: 5px;
    margin-top: 12px;
    line-height: 30px;
    padding: 0 8px 0 8px;
}
.weixin i{
	width: 16px;
    height: 16px;
    color: #F7F7F7;
    margin-right: 6px;
}
.weixin span{
	font-size: 14px;
    font-weight: 500;
    color: #F7F7F7;
}

.send-div{
    display: flex;
    height: 40px;
    align-items: center;
}
.attach-btn, .send-btn, .stop-btn, #voiceRecIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stop-btn{
	display: none;
}
.attach-btn svg, .send-btn svg, .stop-btn svg, #voiceRecIcon svg {
	width:20px;
	height:20px;
}
.send-btn{
  background-color: #0ea5e9;
  color: #fff;
  margin-left:8px;
  opacity: 0.4;
  cursor: not-allowed !important;
}
.activeSendBtn {
    background-color: #0ea5e9 !important;
    cursor: pointer !important;
    opacity: 1;
}
.activeSendBtn:hover {
    filter: brightness(0.85);
}
.attach-btn:hover, .stop-btn:hover, #voiceRecIcon:hover{
  background-color: #f3f4f6;
  color: #111827;
  width: 40px;
  height: 40px;
}
#attachShow {
	flex-grow: 1;
    height: 60px;
    border: none;
    outline: none;
    font-size: 14px;
	display: none;
    align-items: center;
    line-height: 1;
    margin-bottom: 10px;
}
#attachDiv {
	width:300px;
	height:60px;
    display: flex;
    align-items: center;
    background: #0000000a;
    border-radius:8px;
}
#attachIcon svg,#attachIcon img {
	width:60px;
	height:60px;
	padding:5px;
}
#attachInfo{
	flex-grow:1;
	padding-left:2px;
}
#attachName{
	flex-grow: 1;
	max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-bottom:8px;
}
#attachAtr span{
	margin-right:5px;
	font-size: 12px;
    color: #777;
}
#attachError{
	color:#f94d4d;
	display: flex;
    align-items: center;
	max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden; 
    font-size: 12px;   
}
#attachError svg{
	margin-right:5px;
}
#attachClose{
	cursor: pointer;
	align-items: flex-start;
    display: none;
    height: 60px;
}
