* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !important;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    /* Radiuses */
    --radius-s: 4px;
    --radius-m: 8px;
    --radius-l: 12px;
    --radius-xl: 16px;
    /* Color mappings ------------------------ */
    /* Accent HSL values */
    --accent-h: 232;
    --accent-s: 80%;
    --accent-l: 64%;
    /* Backgrounds */
    --background-primary: var(--color-base-00);
    --background-primary-alt: var(--color-base-10);
    --background-secondary: var(--color-base-20);
    --background-modifier-hover: rgba(var(--mono-rgb-100), 0.075);
    --background-modifier-active-hover: hsla(var(--interactive-accent-hsl), 0.15);
    --background-modifier-border: var(--color-base-30);
    --background-modifier-border-hover: var(--color-base-35);
    --background-modifier-border-focus: var(--color-base-40);
    --background-modifier-error-rgb: var(--color-red-rgb);
    --background-modifier-error: var(--color-red);
    --background-modifier-error-hover: var(--color-red);
    --background-modifier-success-rgb: var(--color-green-rgb);
    --background-modifier-success: var(--color-green);
    --background-modifier-message: rgba(0, 0, 0, 0.9);
    /* Inputs */
    --background-modifier-form-field: var(--background-modifier-hover);
    /* Text */
    --text-normal: var(--color-base-100);
    --text-muted: var(--color-base-70);
    --text-faint: var(--color-base-50);
    --text-on-accent: white;
    --text-on-accent-inverted: black;
    --text-error: var(--color-red);
    --text-success: var(--color-green);
    --text-selection: hsla(var(--color-accent-hsl), 0.2);
    --text-highlight-bg-rgb: 255, 208, 0;
    --text-highlight-bg: rgba(var(--text-highlight-bg-rgb), 0.4);
    --text-accent: var(--color-accent);
    --text-accent-hover: var(--color-accent-2);
    --interactive-normal: var(--color-base-00);
    --interactive-hover: var(--color-base-10);
    --interactive-accent-hsl: var(--color-accent-hsl);
    --interactive-accent: var(--color-accent-1);
    --interactive-accent-hover: var(--color-accent-2);
}

.theme-light {
    color-scheme: light;
    --highlight-mix-blend-mode: darken;
    --mono-rgb-0: 255, 255, 255;
    --mono-rgb-100: 0, 0, 0;
    --color-red-rgb: 233, 49, 71;
    --color-red: #e93147;
    --color-orange-rgb: 236, 117, 0;
    --color-orange: #ec7500;
    --color-yellow-rgb: 224, 172, 0;
    --color-yellow: #e0ac00;
    --color-green-rgb: 8, 185, 78;
    --color-green: #08b94e;
    --color-cyan-rgb: 0, 191, 188;
    --color-cyan: #00bfbc;
    --color-blue-rgb: 8, 109, 221;
    --color-blue: #086ddd;
    --color-purple-rgb: 120, 82, 238;
    --color-purple: #7852ee;
    --color-pink-rgb: 213, 57, 132;
    --color-pink: #d53984;
    --color-base-00: #ffffff;
    --color-base-05: #fcfcfc;
    --color-base-10: #fafafa;
    --color-base-20: #f6f6f6;
    --color-base-25: #e3e3e3;
    --color-base-30: #e0e0e0;
    --color-base-35: #d4d4d4;
    --color-base-40: #bdbdbd;
    --color-base-50: #ababab;
    --color-base-60: #707070;
    --color-base-70: #5a5a5a;
    --color-base-100: #222222;
    --color-accent-hsl: var(--accent-h),
        var(--accent-s),
        var(--accent-l);
    --color-accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --color-accent-1: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 2.5%));
    --color-accent-2: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 5%));
    --background-secondary-alt: var(--color-base-05);
    --background-modifier-box-shadow: rgba(0, 0, 0, 0.1);
    --background-modifier-cover: rgba(220, 220, 220, 0.4);
    --input-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        0 2px 3px 0 rgba(0, 0, 0, .05),
        0 1px 1.5px 0 rgba(0, 0, 0, .03),
        0 1px 2px 0 rgba(0, 0, 0, .04),
        0 0 0 0 transparent;
    --input-shadow-hover: inset 0 0 0 1px rgba(0, 0, 0, 0.17),
        0 2px 3px 0 rgba(0, 0, 0, .1),
        0 1px 1.5px 0 rgba(0, 0, 0, .03),
        0 1px 2px 0 rgba(0, 0, 0, .04),
        0 0 0 0 transparent;
    --shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.028),
        0px 3.4px 6.7px rgba(0, 0, 0, .042),
        0px 15px 30px rgba(0, 0, 0, .07);
    --shadow-l: 0px 1.8px 7.3px rgba(0, 0, 0, 0.071),
        0px 6.3px 24.7px rgba(0, 0, 0, 0.112),
        0px 30px 90px rgba(0, 0, 0, 0.2);
}

.theme-dark {
    color-scheme: dark;
    --highlight-mix-blend-mode: lighten;
    --mono-rgb-0: 0, 0, 0;
    --mono-rgb-100: 255, 255, 255;
    --color-red-rgb: 251, 70, 76;
    --color-red: #fb464c;
    --color-orange-rgb: 233, 151, 63;
    --color-orange: #e9973f;
    --color-yellow-rgb: 224, 222, 113;
    --color-yellow: #e0de71;
    --color-green-rgb: 68, 207, 110;
    --color-green: #44cf6e;
    --color-cyan-rgb: 83, 223, 221;
    --color-cyan: #53dfdd;
    --color-blue-rgb: 2, 122, 255;
    --color-blue: #027aff;
    --color-purple-rgb: 168, 130, 255;
    --color-purple: #a882ff;
    --color-pink-rgb: 250, 153, 205;
    --color-pink: #fa99cd;
    --color-base-00: #1e1e1e;
    --color-base-05: #212121;
    --color-base-10: #242424;
    --color-base-20: #262626;
    --color-base-25: #2a2a2a;
    --color-base-30: #363636;
    --color-base-35: #3f3f3f;
    --color-base-40: #555555;
    --color-base-50: #666666;
    --color-base-60: #999999;
    --color-base-70: #bababa;
    --color-base-100: #dadada;
    --color-accent-hsl: var(--accent-h),
        var(--accent-s),
        var(--accent-l);
    --color-accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --color-accent-1: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 3.8%));
    --color-accent-2: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 3.8%));
    --background-modifier-form-field: var(--color-base-25);
    --background-secondary-alt: var(--color-base-30);
    --interactive-normal: var(--color-base-30);
    --interactive-hover: var(--color-base-35);
    --background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
    --background-modifier-cover: rgba(10, 10, 10, 0.4);
    --text-selection: hsla(var(--interactive-accent-hsl), 0.25);
    --input-shadow: inset 0 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.09),
        0 2px 4px 0 rgba(0, 0, 0, .15),
        0 1px 1.5px 0 rgba(0, 0, 0, .1),
        0 1px 2px 0 rgba(0, 0, 0, .2),
        0 0 0 0 transparent;
    --input-shadow-hover: inset 0 0.5px 1px 0.5px rgba(255, 255, 255, 0.16),
        0 2px 3px 0 rgba(0, 0, 0, .3),
        0 1px 1.5px 0 rgba(0, 0, 0, .2),
        0 1px 2px 0 rgba(0, 0, 0, .4),
        0 0 0 0 transparent;
    --shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.121),
        0px 3.4px 6.7px rgba(0, 0, 0, 0.179),
        0px 15px 30px rgba(0, 0, 0, 0.3);
    --shadow-l: 0px 1.8px 7.3px rgba(0, 0, 0, 0.071),
        0px 6.3px 24.7px rgba(0, 0, 0, 0.112),
        0px 30px 90px rgba(0, 0, 0, 0.2);
    --pdf-shadow: 0 0 0 1px var(--background-modifier-border);
    --pdf-thumbnail-shadow: 0 0 0 1px var(--background-modifier-border);
}


.app-container {
    overflow: hidden;
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--background-secondary);
}

.nav {
    padding: 0 8px 8px;
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: width 150ms cubic-bezier(0, 0.55, 0.45, 1);
}

body:not(.is-mobile).show-nav .nav {
    width: 64px !important;
    transition: width 150ms cubic-bezier(0, 0.55, 0.45, 1);
}

.chat_window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.is-mobile .chat_window {
    background: var(--background-primary);
}

.chat {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100% - 64px);
    width: 100%;
    background-color: var(--background-primary);
}

#App_site,
.top_menu,
.setTitle {
    background-color: transparent;
    height: 64px !important;
    padding: 0 8px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.top_menu {
    justify-content: space-between;
}

.is-mobile .setTitle,
.is-mobile .top_menu {
    padding: 8px;
    margin: 0;
}

.btngroup,
.titlegroup {
    display: flex;
    align-items: center;
}

.toggler svg {
    pointer-events: none;
}

.setTitle>span,
.top_menu .title {
    text-align: start;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

#side_menu {
    padding: 8px;
    width: 64px;
    gap: 8px;
    display: flex;
    display: none;
    flex-direction: column;
}

.AppName {
    flex-grow: 1;
}

.is-mobile #side_menu,
.is-mobile #side_APP {
    display: none;
}

#side_APP {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12), 0px 2px 4px -1px rgba(0, 0, 0, .2);
}

.hide-app #side_APP {
    display: none;
}

#siteinput {
    height: 48px;
    flex-grow: 1;
    border-radius: var(--radius-l);
    border: none;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    padding: 12px 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages {
    padding: 16px;
    position: relative;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 16px;
    color: var(--text-normal);
    text-align: center;
    width: 100%;
    height: calc(100% - 80px);
}

.is-mobile .messages {
    padding: 0px;
}

.messages,
#chatlog .markdown-body>pre,
#setDialog,
#chatList {
    overflow-y: overlay;
}

.navmain::-webkit-scrollbar,
.messages::-webkit-scrollbar,
#chatList::-webkit-scrollbar {
    display: none;
}

.messages::-webkit-scrollbar,
#chatlog .markdown-body>pre::-webkit-scrollbar,
#setDialog::-webkit-scrollbar,
#chatList::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.messages::-webkit-scrollbar-track,
#chatlog .response>pre::-webkit-scrollbar-track,
#setDialog::-webkit-scrollbar-track,
#chatList::-webkit-scrollbar-track {
    background-clip: padding-box;
    background: transparent;
    border: none;
}

.messages::-webkit-scrollbar-corner,
#chatlog .response>pre::-webkit-scrollbar-corner,
#setDialog::-webkit-scrollbar-corner,
#chatList::-webkit-scrollbar-corner {
    background-color: transparent;
}

.messages::-webkit-scrollbar-thumb,
#chatlog .response>pre::-webkit-scrollbar-thumb,
#setDialog::-webkit-scrollbar-thumb,
#chatList::-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 .response>pre::-webkit-scrollbar-thumb:hover,
#setDialog::-webkit-scrollbar-thumb:hover,
#chatList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.messages .message {
    clear: both;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.5s linear;
    opacity: 0;
}

.messages .message.left .avatar {
    background-color: #f5886e;
    float: left;
}

.messages .message.left .text {
    color: #c48843;
}

.messages .message.right .avatar {
    background-color: #fdbf68;
    float: right;
}

.messages .message.right .text {
    color: #45829b;
}

.messages .message.appeared {
    opacity: 1;
}

.messages .message .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
}

#chatlog {
    word-wrap: break-word;
    text-align: start;
}

#chatlog>div {
    width: 100%;
    max-width: 768px;
    padding: 24px;
    margin: auto;
    border-radius: var(--radius-m);
}

.is-mobile #chatlog>div {
    border-radius: 0;
}

#chatlog .request {
    position: relative;
}

.requestBody {
    white-space: pre-wrap;
}

#chatlog .response {
    background: var(--background-primary-alt);
    position: relative;
}

.markdown-body {
    color: var(--text-normal) !important;
    background-color: transparent !important;
}

.response .markdown-body {
    background: transparent !important;
}

#chatlog .markdown-body>pre {
    overflow-x: auto;
    padding: 10px;
    position: relative;
    background: rgba(180, 180, 180, 0.1);
}

.m-mdic-copy-wrapper {
    position: absolute;
    top: 5px;
    right: 16px;
}

.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: var(--text-muted);
    opacity: 0.3;
}

.m-mdic-copy-wrapper div.u-mdic-copy-notify {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 6px;
    border: 0;
    border-radius: var(--radius-s);
    background: none;
    font-family: system-ui;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-muted);
    opacity: 0.3;
    outline: none;
    opacity: 1;
    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: var(--radius-s);
    background: none;
    font-family: system-ui;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-muted);
    opacity: 0.3;
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.m-mdic-copy-wrapper button.u-mdic-copy-btn:hover {
    opacity: 1;
}

#stopChat {
    display: none;
    margin: 0 auto;
    margin-top: 16px;
    width: 80px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    color: var(--text-on-accent);
    background: var(--color-accent);
    cursor: pointer;
    border-radius: var(--radius-s);
    position: sticky;
    bottom: 2px;
    justify-content: center;
    align-items: center;
}

#stopChat>svg {
    margin-right: 8px;
}

#stopChat:hover {
    background: var(--color-accent);
}

.bottom_wrapper {
    margin: 0 auto;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 16px 0px 24px;
    display: flex;
    padding: 16px;
}

.bottom_wrapper .message_input_wrapper {
    border: none;
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: left;
    display: flex;
    background: var(--background-modifier-form-field);
    border-radius: var(--radius-l);
}

.bottom_wrapper .message_input_wrapper .message_input_text {
    border-radius: 4px;
    border: none;
    outline: none;
    resize: none;
    color: var(--text-normal);
    background: transparent;
    height: 48px;
    font-size: 16px;
    max-height: 200px;
    padding: 12px 16px;
    width: 100%;
    display: block;
    flex-grow: 1;
}

.bottom_wrapper .message_input_wrapper .message_input_text::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#sendbutton {
    width: 48px;
    padding: 4px;
    color: var(--text-faint);
    cursor: pointer;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loaded>span {
    display: inline-block;
}

.loaded #loadingicon {
    display: none;
}

.loading {
    background: transparent !important;
}

.loading>#sendicon {
    display: none;
}

#sendicon,
#loadingicon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-m);
}

.activeSendBtn {
    cursor: pointer !important;
}

#sendicon>svg {
    stroke: var(--text-faint);
    color: var(--text-faint);
}

.activeSendBtn #sendicon>svg {
    stroke: var(--text-muted);
    color: var(--text-muted);
}

.activeSendBtn #sendicon:hover {
    background: var(--background-modifier-hover);
}

.switch-slide {
    display: inline-block;
    vertical-align: middle;
}

.switch-slide-label {
    display: block;
    width: 38px;
    height: 18px;
    background: var(--background-modifier-border-hover);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.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: 0.3s ease;
    transition: 0.3s ease;
}

.switch-slide input:checked+label {
    background: var(--interactive-accent);
    transition: 0.3s ease;
}

.switch-slide input:checked+label:after {
    left: 21px;
}

.showSetting .btn#setting {
    background: var(--background-modifier-hover) !important;
}

.navtop {
    height: 64px;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px
}

.navmain {
    display: flex;
    flex-direction: column;
    height: calc(100% - 64px);
}

.navEdit,
body:not(.is-mobile).show-nav .navtitle,
body:not(.is-mobile).show-nav .navEdit {
    display: none;
}

.navtitle {
    color: var(--text-muted);
    font-weight: bold;
}

.toggler,
.btn {
    height: 48px;
    width: 48px;
    cursor: pointer;
    padding: 12px;
    border: none;

    border-radius: var(--radius-l);
    display: flex;
    justify-content: center;
    align-items: center;
}

.top_menu .toggler {
    margin-right: 4px;
}

.btn svg {
    fill: var(--text-muted) !important;
}

body:not(.is-mobile) .top_menu .toggler {
    display: none;
}

.toggler:hover,
.btn:hover {
    background: var(--background-modifier-hover);
}

.theme-light #theme-light-toggle,
.theme-dark #theme-dark-toggle {
    display: none;
}

#setDialog {
    flex-grow: 1;
    height: calc(100% - 64px);
    width: 100%;
    color: var(--text-muted);
    background: var(--background-primary);
    overflow-y: auto;
    -webkit-user-select: none;
    user-select: none;
    padding: 40px;
    padding-bottom: 0px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
    align-items: center;
}

body:not(.is-mobile) .chat,
body:not(.is-mobile) #setDialog {
    box-shadow: 0px 0px 15px -3px rgba(0, 0, 0, 0.06), 0px 0px 6px -2px rgba(0, 0, 0, 0.03);
    border-top-left-radius: var(--radius-l);
    border: 1px solid var(--background-modifier-border);
    border-right: none;
    border-bottom: none;
}

.is-mobile #setDialog {
    padding: 16px;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: none;
}

.showSetting #setDialog {
    display: flex;
}

#setDialog>div {
    max-width: 768px;
}

#setDialog input {
    width: 100%;
}

#setDialog .inlineTitle {
    display: inline-block;
    width: 80px;
    line-height: 16px;
    vertical-align: middle;
}

#convOption,
#speechOption,
#speechDetail,
#recOption {
    width: 100%;
    overflow: auto;
    padding-bottom: 160px;
}

:is(#convOption, #speechOption, #speechDetail, #recOption)::-webkit-scrollbar {
    display: none;
}

#convOption>div,
#speechOption>div,
#speechDetail>div,
#recOption div {
    margin-top: 16px;
}

.inputTextClass {
    outline: none;
    border-radius: var(--radius-s);
    margin-top: 8px;
    height: 32px;
    font-size: 15px;
    padding-left: 6px;
    background: var(--background-modifier-form-field);
    border: none;
}

.areaTextClass {
    width: 100%;
    height: 120px;
    display: block;
    resize: none;
    padding: 6px;
}

textarea::placeholder {
    color: var(--text-faint);
}

input[type="range"] {
    -webkit-appearance: none;
    display: block;
    margin: 6px 0 3px 0;
    height: 8px;
    background: var(--background-secondary-alt);
    border-radius: 5px;
    background-image: linear-gradient(var(--interactive-accent), var(--interactive-accent));
    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: var(--interactive-accent);
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 var(--background-modifier-border);
}

input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.justSetLine {
    line-height: 30px;
    display: flex;
    justify-content: space-between;
}

.presetSelect>div {
    display: inline-block;
}

.presetSelect select {
    outline: none;
    border-radius: var(--radius-s);
    width: 120px;
    border-color: var(--background-modifier-border);
}

.selectDef {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-faint);
}

#preSetSpeech {
    width: 100%;
    outline: none;
    height: 30px;
    font-size: 14px;
    margin-top: 5px;
    border-radius: var(--radius-s);
    border-color: var(--background-modifier-border);
}

#chatlog>div:hover .mdOption {
    visibility: visible;
}

.mdOption {
    visibility: hidden;
    position: absolute;
    right: 8px;
    bottom: 8px;
    pointer-events: none;
    display: flex;
    gap: 8px;
}

.mdOption>div {
    pointer-events: auto;
    cursor: pointer;
}

.mdOption>div>svg {
    color: var(--text-muted);
    display: block;
}

.mdOption svg:hover {
    color: var(--text-muted);
}

.mdOption svg * {
    pointer-events: none;
}

.refreshReq svg:not(:first-child) {
    display: none;
}

.halfRefReq svg:not(:nth-child(2)) {
    display: none;
}

.moreOption {
    position: absolute;
    left: -24px;
}

.optionItems {
    position: absolute;
    top: -8px;
    display: flex;
    justify-content: space-between;
    visibility: hidden;
    z-index: 1;
    color: var(--text-muted);
}

.moreOptionHidden>div {
    display: none !important;
}

.optionItems:hover {
    visibility: visible;
}

.optionItems:hover .optionItem {
    transform: scale(1);
    visibility: visible;
}

.optionTrigger:hover+.optionItems .optionItem:nth-of-type(3) {
    transform: scale(1);
    visibility: visible;
    transition-delay: 50ms;
    transition-duration: 60ms;
}

.optionTrigger:hover+.optionItems .optionItem:nth-of-type(2) {
    visibility: visible;
    transition-delay: 80ms;
    transform: scale(1);
    transition-duration: 60ms;
}

.optionTrigger:hover+.optionItems .optionItem:nth-of-type(1) {
    visibility: visible;
    transition-delay: 110ms;
    transform: scale(1);
    transition-duration: 60ms;
}

.optionItem {
    border-radius: var(--radius-s);
    height: 30px;
    width: 30px;
    background-color: transparent;
    visibility: hidden;
    transform: scale(0);
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.optionItem * {
    pointer-events: none;
}

.optionItem:hover {
    background: var(--background-modifier-hover);
}

.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: var(--radius-s);
    margin-left: 4px;
    cursor: pointer;
    padding: 4px;
    margin: auto 0;
}

#voiceTypes>span:hover {
    background: var(--background-modifier-hover);
}

.selVoiceType {
    background: var(--background-modifier-hover) !important;
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
}

.is-mobile .nav {
    width: 256px;
    height: 100%;
    background-color: var(--background-primary);
    left: -256px;
    top: 0;
    position: fixed;
    transition: left 100ms ease-in-out;
    z-index: 99;
    display: flex;
    flex-direction: column;
}

#newApp {
    margin: 0 0 8px 0;
}

#newChat {
    border-radius: var(--radius-l);
    text-align: center;
    width: 100%;
    height: 48px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--background-modifier-border);
}

#newChat:hover {
    background: var(--background-modifier-hover) !important;
}

#newChat>svg {
    margin-left: 12px;
    margin-right: 12px;
}

#newChat>span {
    height: 20px;
    line-height: 20px;
}

body:not(.is-mobile).show-nav #newChat>span {
    display: none;
}

.navFunc {
    display: flex;
    justify-content: space-between;
}

#AppList,
#chatList {
    width: 100%;
    max-height: calc(100% - 64px);
    border-bottom: 1px var(--background-modifier-border) solid;
    margin-bottom: 8px;
}

.AppLi {
    border-radius: var(--radius-l);
    margin-bottom: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 12px;
    color: var(--text-muted);
    fill: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hide-app #activeAppLi:hover,
.AppLi:hover,
#activeAppLi {
    background: var(--background-modifier-hover) !important;
}

.hide-app #activeAppLi {
    background: transparent !important;
}

.chatLi {
    border-radius: var(--radius-l);
    margin-bottom: 8px;
    cursor: pointer;
    width: 100%;
    height: 48px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

body:not(.is-mobile).show-nav .chatLi {
    width: 48px;
}

body:not(.is-mobile).show-nav .chatName,
body:not(.is-mobile).show-nav .chatOption {
    display: none !important;
}

.AppLi>img,
.show-nav .chatLi>svg {
    pointer-events: none;
}

.AppLi>img {
    border-radius: var(--radius-s);
}


.chatLi svg {
    pointer-events: auto;
}

.chatLi svg:hover {
    stroke: var(--text-muted);
}

.chatLi>svg {
    margin-left: 14px;
}

.chatName,
body:not(.is-mobile).show-nav .chatLi .avatar-container,
.chatLi svg * {
    pointer-events: none;
}

.chatLi .avatar-container {
    pointer-events: auto;
}

.AppLi svg {
    fill: var(--text-faint);
}

.AppLi svg:hover {
    fill: var(--text-muted);
}

.AppLi svg * {
    pointer-events: none;
}

.AppOption {
    position: absolute;
    top: 2px;
    right: 2px;
    display: none;
}

.AppLi:hover .AppOption {
    display: flex;
}

.chatLi .chatName {
    position: absolute;
    left: 54px;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100px;
    line-height: 20px;
    height: 20px;
}

.chatLi:has(#activeChatEdit) .chatName {
    opacity: 0;
}

.chatLi .chatOption {
    visibility: hidden;
    display: flex;
    color: var(--text-faint);
    margin-right: 8px;
}

.chatLi:hover {
    background: var(--background-modifier-hover);
}

.showSetting .activeChatLi:hover,
.activeChatLi {
    background: var(--background-modifier-hover) !important;
}

.showSetting .activeChatLi {
    background: transparent !important;
}

.activeChatLi .chatOption {
    visibility: visible !important;
}

.showSetting .chatOption {
    visibility: hidden !important;
}

.activeChatLi #activeChatEdit {
    position: absolute;
    left: 52px;
    font-size: 16px;
    border-radius: 2px;
    background: transparent;
    outline: none;
    border: none;
    pointer-events: auto;
    height: 24px;
    line-height: 24px;
    max-width: 100px;
    z-index: 1;
}

.chatLi:has(#activeChatEdit) {
    box-shadow: inset 0 0 0 2px var(--background-modifier-border-focus);
}

.show-nav.is-mobile .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;
}

/*.showSetting .overlay,*/
.show-nav.is-mobile .overlay {
    opacity: 1;
    visibility: visible;
}

.setTitle,
.showSetting :is(.top_menu, .chat) {
    display: none;
}

.showSetting .setTitle {
    display: flex;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

#loadMask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: #08391E;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadMask>div {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#voiceRec {
    width: 48px;
    height: 100%;
    padding: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#voiceRecIcon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-m);
    cursor: pointer;
}

#voiceRecIcon:hover {
    background: var(--background-modifier-hover);
}

#voiceRecIcon>svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

#voiceRecIcon>svg .animVoice {
    display: none;
}

.voiceRecing>svg {
    color: var(--color-green) !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;
    user-select: none;
    border-radius: var(--radius-s);
    background-color: var(--background-primary-alt);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

#voiceRecSetting select {
    width: 102px;
    outline: none;
    border-radius: var(--radius-s);
    border-color: var(--background-modifier-border);
}

.presetModelCls label {
    margin-right: 8px;
}

select {
    height: 30px;
    font-size: 15px;
}

.setSwitch {
    width: 100%;
    display: flex;

}

.setSwitch>div {
    border-radius: var(--radius-s);
    width: calc(100% / 2);
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}

.setSwitch>div:hover {
    background-color: var(--background-modifier-hover);
}

.activeSwitch {
    background-color: var(--background-modifier-hover) !important;
}

#checkVoiceLoad {
    height: 32px;
    border-radius: var(--radius-s);
    line-height: 32px;
    background: transparent;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#checkVoiceLoad:hover {
    background: var(--background-modifier-hover);
}

.voiceChecking {
    background-color: var(--background-modifier-hover) !important;
}

.voiceChecking>svg {
    display: inline !important;
}

#checkVoiceLoad>svg {
    display: none;
    margin-right: 8px;
    height: 24px;
    width: 24px;
}

#preSetSystem {
    vertical-align: top;
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-m);
    cursor: pointer;
    margin-left: 8px;
    border: 1px solid var(--background-modifier-border);
}

.avatar-container:hover {
    background-color: var(--background-modifier-hover);
}

.avatar-container span {
    font-size: 21px;
}

emoji-picker {
    position: absolute;
    width: 345px;
    height: 425px;
    z-index: 1000;
}

.AppTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.is-mobile .AppTitle {
    display: none;
}
