2025-08-05 03:56:23 +02:00
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
font-family: "Nata Sans", sans-serif;
|
|
|
|
font-size: 15px;
|
|
|
|
background: #181926;
|
|
|
|
color: #cad3f5;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 25px;
|
|
|
|
background: #1e2030;
|
|
|
|
margin: auto;
|
|
|
|
margin-top: 30px;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 1100px;
|
|
|
|
height: calc(100% - 30px);
|
|
|
|
border-top-left-radius: 6px;
|
|
|
|
border-top-right-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
opacity: 0 !important;
|
|
|
|
pointer-events: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#messages {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2025-08-05 04:05:35 +02:00
|
|
|
gap: 40px;
|
2025-08-05 03:56:23 +02:00
|
|
|
height: 100%;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding: 14px 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#messages:empty::before {
|
|
|
|
content: "no messages";
|
|
|
|
color: #a5adcb;
|
|
|
|
font-style: italic;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message,
|
|
|
|
.message {
|
|
|
|
border: none;
|
|
|
|
border-radius: 6px;
|
|
|
|
background: #24273a;
|
|
|
|
font: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message {
|
|
|
|
position: relative;
|
|
|
|
max-width: 700px;
|
|
|
|
min-width: 200px;
|
|
|
|
width: max-content;
|
2025-08-07 22:09:08 +02:00
|
|
|
padding-top: 22px;
|
2025-08-05 03:56:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message.user {
|
|
|
|
align-self: end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.system {
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .role {
|
|
|
|
position: absolute;
|
|
|
|
line-height: 12px;
|
|
|
|
font-size: 12px;
|
2025-08-07 22:09:08 +02:00
|
|
|
top: 6px;
|
|
|
|
left: 6px;
|
2025-08-05 03:56:23 +02:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#messages .message .role::before {
|
|
|
|
content: "";
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.user .role::before {
|
|
|
|
background-image: url(icons/user.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.system .role::before {
|
|
|
|
background-image: url(icons/system.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.assistant .role::before {
|
|
|
|
background-image: url(icons/assistant.svg);
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.message .reasoning,
|
2025-08-05 03:56:23 +02:00
|
|
|
.message .text {
|
|
|
|
display: block;
|
|
|
|
background: transparent;
|
2025-08-07 22:09:08 +02:00
|
|
|
padding: 8px 12px;
|
2025-08-05 03:56:23 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message:not(.editing) textarea.text,
|
|
|
|
.message.editing div.text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.message:not(.expanded) .reasoning-text {
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.expanded .reasoning-text {
|
|
|
|
padding: 10px 12px;
|
|
|
|
background: #1e2030;
|
|
|
|
margin-top: 10px;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message:not(.has-reasoning) .reasoning {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reasoning .toggle {
|
|
|
|
position: relative;
|
|
|
|
padding: 0 20px;
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 14px;
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reasoning .toggle::after,
|
|
|
|
.reasoning .toggle::before {
|
|
|
|
content: "";
|
|
|
|
background-image: url(icons/reasoning.svg);
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: -2px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reasoning .toggle::after {
|
|
|
|
background-image: url(icons/chevron.svg);
|
|
|
|
left: unset;
|
|
|
|
right: -2px;
|
|
|
|
top: 1px;
|
|
|
|
transition: 150ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.expanded .reasoning .toggle::after {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown p {
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2025-08-05 03:56:23 +02:00
|
|
|
textarea {
|
|
|
|
border: none;
|
|
|
|
resize: none;
|
|
|
|
outline: none;
|
|
|
|
color: inherit;
|
|
|
|
font: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#chat {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0 12px;
|
|
|
|
height: 240px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message {
|
|
|
|
border-bottom-left-radius: 0px;
|
|
|
|
border-bottom-right-radius: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 14px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .options {
|
|
|
|
display: flex;
|
|
|
|
gap: 4px;
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: 150ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message:hover .options {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.waiting .options,
|
|
|
|
.message.reasoning .options,
|
|
|
|
.message.receiving .options {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.message.reasoning .reasoning button.toggle::before {
|
|
|
|
animation: rotating 2s linear infinite;
|
|
|
|
background-image: url(icons/loading.svg);
|
|
|
|
}
|
|
|
|
|
2025-08-05 03:56:23 +02:00
|
|
|
.message .text::before {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.message:empty.receiving .text::before,
|
2025-08-05 03:56:23 +02:00
|
|
|
.message.waiting .text::before {
|
2025-08-07 22:09:08 +02:00
|
|
|
content: ". . .";
|
2025-08-05 03:56:23 +02:00
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select {
|
|
|
|
border: none;
|
|
|
|
font: inherit;
|
|
|
|
color: inherit;
|
|
|
|
outline: none;
|
2025-08-05 03:56:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
select {
|
|
|
|
background: #363a4f;
|
2025-08-07 22:09:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#chat button {
|
|
|
|
position: absolute;
|
2025-08-05 03:56:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#chat .options {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 4px;
|
2025-08-07 22:09:08 +02:00
|
|
|
left: 20px;
|
2025-08-05 03:56:23 +02:00
|
|
|
width: max-content;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#chat .option {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#chat .option+.option::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
width: 2px;
|
|
|
|
height: 12px;
|
|
|
|
background: #5b6078;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.reasoning .toggle::before,
|
|
|
|
.reasoning .toggle::after,
|
2025-08-05 03:56:23 +02:00
|
|
|
#bottom,
|
|
|
|
.message .role::before,
|
|
|
|
#clear,
|
|
|
|
#add,
|
|
|
|
#send,
|
2025-08-07 22:09:08 +02:00
|
|
|
.message .copy,
|
2025-08-05 03:56:23 +02:00
|
|
|
.message .edit,
|
|
|
|
.message .delete,
|
|
|
|
#chat .option label {
|
|
|
|
display: block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
background-position: center;
|
|
|
|
background-size: contain;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
.message .copy {
|
|
|
|
background-image: url(icons/copy.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .copy.copied {
|
|
|
|
background-image: url(icons/check.svg);
|
|
|
|
}
|
|
|
|
|
2025-08-05 03:56:23 +02:00
|
|
|
.message .edit {
|
|
|
|
background-image: url(icons/edit.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.editing .edit {
|
|
|
|
background-image: url(icons/save.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.message .delete {
|
|
|
|
background-image: url(icons/delete.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#chat .option label {
|
|
|
|
background-size: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#model {
|
|
|
|
width: 180px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#temperature {
|
|
|
|
appearance: textfield;
|
|
|
|
width: 50px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
label[for="role"] {
|
|
|
|
background-image: url(icons/user.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
label[for="model"] {
|
|
|
|
background-image: url(icons/model.svg);
|
|
|
|
}
|
|
|
|
|
2025-08-07 22:09:08 +02:00
|
|
|
label[for="prompt"] {
|
|
|
|
background-image: url(icons/prompt.svg);
|
|
|
|
}
|
|
|
|
|
2025-08-05 03:56:23 +02:00
|
|
|
label[for="temperature"] {
|
|
|
|
background-image: url(icons/temperature.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#bottom {
|
|
|
|
top: -38px;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
background-image: url(icons/down.svg);
|
|
|
|
transition: 150ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
#add,
|
|
|
|
#send {
|
|
|
|
bottom: 4px;
|
2025-08-07 22:09:08 +02:00
|
|
|
right: 20px;
|
2025-08-05 03:56:23 +02:00
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
background-image: url(icons/send.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#add {
|
|
|
|
bottom: 4px;
|
2025-08-07 22:09:08 +02:00
|
|
|
right: 52px;
|
2025-08-05 03:56:23 +02:00
|
|
|
background-image: url(icons/add.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#clear {
|
|
|
|
position: unset !important;
|
|
|
|
background-image: url(icons/trash.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.completing #add {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.completing #send {
|
|
|
|
background-image: url(icons/stop.svg);
|
2025-08-07 22:09:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes rotating {
|
|
|
|
from {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
2025-08-05 03:56:23 +02:00
|
|
|
}
|