/** {
    box-sizing: border-box;
}*/

[hidden] {
    display: none !important;
}

/*body {
    margin: 0;
    font: 15px/1.5 system-ui, sans-serif;
    background: #f4f6f8;
    color: #1d2733;
}*/
/*
main {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    margin: 0 0 8px;
    font-size: 20px;
}

    h1 small {
        font-weight: 400;
        color: #7a8794;
        font-size: 12px;
    }*/

/*.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#lang-switch {
    display: flex;
    gap: 4px;
}

    #lang-switch button {
        padding: 4px 10px;
        background: #fff;
        color: #0b5fff;
        border: 1px solid #0b5fff;
        font-size: 12px;
    }

        #lang-switch button[aria-pressed="true"] {
            background: #0b5fff;
            color: #fff;
        }

form {
    display: flex;
    gap: 8px;
}

input, textarea {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #c5ced6;
    border-radius: 6px;
    font: inherit;
}

textarea {
    resize: vertical;
}

button {
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: #0b5fff;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

    button:disabled {
        background: #9db8ef;
        cursor: not-allowed;
    }
*/

#load-older {
    align-self: center;
    margin: 12px 0 0;
    background: #fff;
    color: #0b5fff;
    border: 1px solid #0b5fff;
}
/*
.notice {
    font-size: 12px;
    color: #7a8794;
    margin: 6px 0;
}

.usage {
    font-size: 12px;
    margin: 4px 0;
    color: #3b4856;
}

    .usage.warn {
        color: #b35c00;
    }*/

#status {
    min-height: 22px;
    margin: 8px 0;
    font-size: 13px;
    color: #3b4856;
}

    #status.error {
        color: #c0392b;
    }

#messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

    .msg.user {
        align-self: flex-end;
        background: #0b5fff;
        color: #fff;
    }

    .msg.assistant {
        align-self: flex-start;
        background: #ffffff1c;
        /*border: 1px solid #dbe2e8;*/
        height: fit-content !important;
        min-height: fit-content !important;
    }

    .msg.failed, .msg.interrupted {
        border-color: #c0392b;
    }

    .msg.system {
        align-self: center;
        max-width: 95%;
        background: #fff7e0;
        border: 1px solid #f0d58a;
        color: #4a3b00;
        text-align: center;
    }

        .msg.system a, .link-button {
            color: #0b5fff;
            font-weight: 600;
            white-space: nowrap;
        }

.link-button {
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.mode {
    font-size: 13px;
    margin: 4px 0;
    color: #3b4856;
}

.msg .tag {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #c0392b;
}
/*
#chat-form {
    position: sticky;
    bottom: 0;
    background: #f4f6f8;
    padding: 8px 0;
}
*/