#message-composer {
    background-color: #FFFFFF;
    /*   Тут бэкграунд ломает тёмную тему. Если нужно чтобы она адекватно смотрелась - лучше вырубить и оперировать только переменными тем */
    border-width: 1px;
    border-color: #D7D8D8;

    &:has(textarea:focus) {
        border-color: #090A0B;
    }
}

#user-nav-button {
    display: none;
}


div:has(>div>div.message-content) {
    /*     Стилизация облачков с сообщениями пользователя */
    border-radius: 16px 16px 2px 16px;
}

#chat-submit {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    position: relative;

    /* Тут подменяется стандартная иконка на ту, что из дизайна.
    Могут быть проблемы, т.к. меняется размер и есть риск коллизий с другими элементами.
    + У иконки есть отдельно своё состояние загрузки, которое не совсем понятно как отловить и стилизовать (видно как она в этот момент скачет).
    Самое лучшее решение на мой взгляд - вернуться к оригинальному размеру, но с другим свг*/
    svg {
        display: none;
    }

    &::after {
        content: url('data:image/svg+xml,%3Csvg%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.12257%2012.1095L19.6226%201.60955M9.25015%2012.4376L11.8783%2019.1956C12.1098%2019.791%2012.2255%2020.0886%2012.3923%2020.1755C12.5369%2020.2509%2012.7092%2020.251%2012.8539%2020.1758C13.0208%2020.0891%2013.1369%2019.7916%2013.3691%2019.1965L19.9595%202.30875C20.1691%201.77157%2020.2739%201.50298%2020.2166%201.33135C20.1668%201.1823%2020.0498%201.06533%2019.9008%201.01554C19.7291%200.958202%2019.4606%201.06302%2018.9234%201.27265L2.03562%207.86299C1.44055%208.09521%201.14301%208.21133%201.0563%208.37823C0.981136%208.52292%200.981238%208.69517%201.05658%208.83977C1.14348%209.00657%201.44115%209.12233%202.0365%209.35385L8.7945%2011.982C8.91535%2012.029%208.97578%2012.0525%209.02666%2012.0888C9.07175%2012.1209%209.11119%2012.1604%209.14336%2012.2055C9.17965%2012.2563%209.20315%2012.3168%209.25015%2012.4376Z%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
        position: absolute;
        width: 24px;
        height: 24px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}


/* Тут убирается аватар у сообщеий ИИ-шки.
Есть риск задеть другие элементы внутри ответа. Нужно тестить особенно с картинками - не пропадают ли*/
.ai-message>span>span>img {
    display: none;
}

.text-sidebar-foreground {
    /*     Стилизация границы левой панели */
    border-right: 1px solid #F0F1F1;
}

div:has(>#\#upload-drop-input)>div:first-of-type {
    /*  Костыльный фикс двойного скролла при наличии математических формул Так и не понял откуда он берётся */
    overflow-y: hidden;
}

a.text-primary {
    /*  Стилизация ссылок */
    color: rgb(0 102 255 / var(--tw-text-opacity, 1));

    &:hover {
        opacity: 0.7;
    }
}

#readme-button {
    display: none;
}

#theme-toggle {
    display: none;
}

div.watermark {
    display: none !important;
}

.card {
    font-weight: 600;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    height: 160px;
    padding: 15px;
    border-radius: 18px;
    background-color: hsl(var(--accent));
    text-align: center;
    transition: .1s ease-in-out;

    svg {
        transition: .1s ease-in-out;
    }

    &:hover {
        background-color: hsl(var(--secondary));
        font-weight: 800;

        svg {
            width: 30px;
            height: 30px
        }
    }

}


.cookieConsentContainer {
    z-index: 100;
    display: fixed;
    width: 100vh;
    height: 100wv;
    background-color: #090A0B01;
}

.buttonContainer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 40px;
    width: 100%;
    background-color: black;
}

.dialogAsFooter {
    border-radius: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: unset !important;
    height: 68px !important;
    width: 100vw !important;
    max-width: unset !important;
    top: unset !important;
    background-color: #090A0B !important;
    color: white !important;
    transform: unset !important;
    padding: 0 !important;

    span {
        font-size: 14px;

    }

    .consentButton {
        background: rgb(76, 175, 80);
        border: 0px;
        border-radius: 4px;
        box-shadow: none;
        color: black;
        cursor: pointer;
        flex: 0 0 auto;
        padding: 8px 16px;
        margin: 15px;
        font-size: 14px;
    }

    button[type=button] {
        display: none;
    }
}

.linkButton {
    color: #fff;
    background: #000000;
    box-shadow: none;
    font-size: 16px;
    height: 36px;
    padding: 0px 15px;
    border-radius: 14px;
    outline: none;
    position: relative;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}