
.generate-agent-type { background-color: var(--bg-control); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 15px; height: 58px; }

.generate-agent-type>select, #CheckMode>select { display: inline-block; width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0cc' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
background-color: #1a1f3691; border: none; color: var(--text-primary); padding: 8px 40px 8px 14px; border-radius: 8px; font-size: 0.95em; cursor: pointer; transition: all 0.3s ease; text-align: left; display: flex; align-items: center; }

.generate-agent-type>select:hover, #CheckMode>select:hover { border-color: var(--border-focus); background-color: var(--bg-control-hover); }
.generate-agent-type>select:focus, #styleButton:focus, #CheckMode>select:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--glow-focus); }

.generate-agent-type>select option, #CheckMode>select option { background-color: var(--bg-control); color: var(--text-primary); }

#CheckMode {display: flex; align-items: baseline;}
#CheckMode>label {flex-shrink: 0; display: inline-block; margin-right: 8px; color: var(--text-secondary);}

body.VortexAgent .quantity-cost-block-stylish {min-width: unset;}

#GenerateAgent {padding: 0 25px;}
#GenerateAgent>span {margin-left: 0;}

#modelButtonAgent { background-color: var(--bg-control); border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px 15px; border-radius: 8px; font-size: 0.95em; cursor: pointer; transition: all 0.3s ease; text-align: left; display: flex; align-items: center;
min-height: 58px;}
#modelButtonAgent:hover { border-color: var(--border-focus); background-color: var(--bg-control-hover); }
#modelButtonAgent:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--glow-focus); }

#modelButtonAgent #selectedModelNameAgent {margin-left: 20px; color: var(--accent-primary); font-weight: 500;}

body.VortexAgent #Prompt .BottomToolbar > * {margin-top: 10px; margin-bottom: 0;}

@media (max-width: 768px) {
    body.VortexAgent .generate-button {height: 58px;}
    body.VortexAgent .quantity-cost-block-stylish {height: 58px;}
}

/* Chat */

#Chat {margin: 20px 20px 0 20px;}
#Chat>.in {display: flex; flex-direction: column; /*max-height: 80vh;*/ }

#Chat .Title {text-align: center; max-width: 700px; margin: 0 auto; display: flex; align-items: center;}
#Chat .Title>div {padding: 24px;}
#Chat .Title>div:first-child {flex-basis: 40%; flex-shrink: 0;}
#Chat .Title img {width: 100%; height: auto;}
#Chat .Title h3 {font-family: var(--chat-font); color: #fff; font-size: 1.5rem; line-height: 2rem; font-weight: 600; padding: 24px 0;}
#Chat .Title>div>div {padding-bottom: 24px;}
#Chat .Title>div>div>p+p {padding-top: 12px;}

@media (max-width: 680px) {
    #Chat .Title {flex-direction: column;}
    #Chat .Title img {max-width: 50vw; }
}

@media (max-width: 500px) {
    #Chat {margin: 20px 0 0 0; padding: 0;}
}

#QList {/*min-height: 50vh;*/ margin: 20px; position: relative; /*display: flex; flex-direction: column;*/ /* justify-content: flex-end;*/ flex-grow: 1; padding-right: 10px;
/*overflow-y: scroll;*/ scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) hsl(240 10% 3.9% / 1); scrollbar-gutter: stable both-edges;
font-size: 1.1rem;}

/*#QList>div {display: flex; flex-direction: column; height: 100%; }*/

#QList .Msg>.Panel {padding: 10px; }
#QList .Msg {display: flex; /*width: fit-content; */white-space: pre-line; overflow-wrap: anywhere;}

#QList .Msg img.Av {/*margin-bottom: 12px;*/ margin-right: 12px; height: 50px; width: auto; display: block; border-radius: 25px;}
/*#QList .Msg.Wait img.Av {height: 30px;}*/
#QList .Msg>div {display: flex;}
#QList .Msg>div>div {padding-top: 10px; display: flex; flex-wrap: wrap; justify-content:center; flex-grow: 1; gap: 4px; align-items: start;}
#QList .Msg>div>div>.Item {position: relative; height: 200px;}

#QList .Msg>div>div>.Item.Error {
    max-width: 300px;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid red;
  border-radius: 8px;
  background: url(/images/error.svg) 10px 10px no-repeat; display: flex;
  align-items: center;
}

#QList .Msg>div>div>.Item.Error>.Error {padding-left: 40px;
  padding-top: 4px;
  font-size: 16px;
}

#QList .Msg>div>div>.Item video {height: 100%; width: auto;}
#QList .Msg>div>div>.Item img {height: 100%; width: auto; cursor: pointer;}

#QList .Item .Marks {position: absolute; right: 5px; top: 5px; left: 5px; cursor: pointer; z-index: 10; display: flex; justify-content: space-between;}
#QList .Item .Marks>* {display: block;}
#QList .Item .Marks>*+* {/*margin-top: 6px;*/ /*margin-left: auto;*/}

#QList .Item .Marks>* i:hover {color: #fff;}
#QList .Item .Marks>* i {color: gray; font-size: 1.8em;}
#QList .Item .Marks>*.F i {color: aqua; font-size: 1.8em;}

#QList .Item .Marks.Bottom {bottom: 0; left: 0; right: 0; top: unset;}

#QList .Item .Play {background-color: #00ffff80; color: #ffffffd0; font-size: 36px; line-height: 64px; position: absolute; width: 64px; height: 64px;
text-align: center; z-index: 10; left: calc(50% - 32px); top: calc(50% - 32px); border-radius: 32px;
padding-left: 4px;}

@media (hover: hover) {
    #QList .Item:hover .Play {display: none;}
}

#QList .Item .TakeIt {background: rgba(100,100,200,0.5); padding: 4px 4px; border-radius: 4px; display: flex; align-items: baseline; font-size: 16px; line-height: 1.1;}
#QList .Item .TakeIt>label {display: inline-block; margin-left: 12px; cursor: pointer;}


#QList .Msg.Ask>div {cursor: pointer;}
#QList .Msg>div a {color: hsl(213 94% 68% / 1);}

@media (max-width: 550px) {
    #QList {padding-right: 0; margin: 20px 5px 5px 5px;}
    /*#QList .Msg>div {display: block;}*/
    #QList .Msg img.Av {/*float: left; */margin-right: 8px; margin-bottom: 0px;}
    /*#QList .Msg.Ask>div>div {display: inline-block;}*/
}

@media (max-height: 400px) {
    #QList {margin: 20px 0 0 0;}    
}



#QList .Msg.Ask {justify-content: flex-end;}
#QList .Msg.Ask>.Panel {/*margin-left: auto; */max-width: 90%; }
#QList .Msg.Ask.W>.Panel {width: 90%;}
#QList .Msg.Ask>div.Panel {/*flex-basis: 100%;*/}
#QList .Msg.Answer>.Panel {margin-right: 10%; width: 90%;}
#QList .Msg.Log>.Panel {}
#QList .Msg+.Msg {margin-top: 8px;}

.Panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.2) 0px 4px 24px -2px;
    box-sizing: border-box;
    padding: 24px;
}

body.VortexAgent #Prompt {display: flex; flex-direction: column;}
body.VortexAgent #Prompt #ChatInput {order: 0; padding: 0 20px;}
body.VortexAgent #Prompt .BottomToolbar {order: 1; margin: 10px 20px 20px 20px;}
body.VortexAgent #Prompt .TopToolbar {order: 2; display: none;}
body.VortexAgent #Prompt .Main {order: 3; display: none;}
body.VortexAgent #Prompt #StdControls {order: 4; display: none;}

body.VortexAgent #Prompt textarea#ChatPrompt { /*width: 100%;*/ min-height: 120px; background-color: var(--bg-control); border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; font-family: 'Poppins', sans-serif; font-size: 1em; color: var(--text-primary); resize: vertical; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
body.VortexAgent #Prompt textarea#ChatPrompt::placeholder { color: var(--text-placeholder); }
body.VortexAgent #Prompt textarea#ChatPrompt:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 2px rgba(var(--accent-secondary-rgb), 0.15), var(--glow-focus); }

.settings-button {
color:var(--text-secondary);
  font-size: 1em;
  font-weight: 600;    
    background-color: var(--bg-control);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  height: 58px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-button>span {margin-left: 12px;}

.settings-button:hover {transform: translateY(-2px);}

#CheckedCount {text-align: right; font-size: 16px; line-height: 1; color: var(--text-secondary); margin-left: 20px;}
#CheckedCount span {color: var(--text-quantity-value); font-weight: bold; display: inline-block; margin-right: 6px;}

#ChatInput {display: flex; gap: 10px; flex-wrap: wrap;}
#ChatInput>div:first-child {flex-basis: 100%; flex-shrink: 0; display: flex;
  align-items: baseline;
  justify-content: flex-end;}

#ChatInput textarea {flex-grow: 1;}
#ChatInput .Buttons {display: flex; flex-direction: column; gap: 10px;}
#ChatInput .Buttons>button {width: 40px; height: 40px;
    background-color: var(--bg-control);
  color: #c0c0c0;
  border: 2px solid #333;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#ChatInput .Buttons>button:hover {transform: translateY(-2px);}

#ChatInput .Buttons>button>svg {
    width: 30px;
  height: 30px;
  fill: #c0c0c0;
}


.Tools {display: flex; margin: 20px 20px 0 20px;}
.Tools>span {transition-duration: 0.8s; font-size: 32px; cursor: pointer;}
.Tools>span:hover {transform: translateY(-4px);}
.Tools>span+span {margin-left: 10px;}
/*.Tools .NewChat {width: 24px; height: 24px; cursor: pointer;}
.Tools .PrevChat {width: 24px; height: 24px; cursor: pointer;}
*/

