@charset "UTF-8";
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    border: 0;
}
.dev {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.dev p {
    font-size: var(--font-size-16);
    margin-bottom: 1em;
}
.dev h2 {
    font-size: var(--font-size-24);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5em;
}
.dev h3 {
    font-size: var(--font-size-18);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5em;
}
.dev_bac {
    background: var(--bg-body-purple-light);
    border-radius: var(--border-radius-l);
    margin-bottom: 15px;
    padding: 20px;
}
.dev_item {
    margin-bottom: 15px;
}
.dev-h1,
.dev-name {
    font-weight: bold;
    margin-bottom: 12px;
}
.dev-h1 {
    font-size: var(--font-size-30);
}
.dev-name {
    font-size: var(--font-size-16);
}
html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%
}
body {
    font-family: var(--bs-font-family);
    background-color: var(--bs-body-bg);
    transition: background-color var(--transition-standard-in);
    min-width: 375px;
    height: 100%;
}
body.menu-open {
    overflow: hidden;
}
body.sidebar-animate .right_connect {
    transition: margin-left 0.5s ease-in-out;
}
body.sidebar-animate .sidebar-menu-text {
    transition: opacity 0.05s ease-in-out, transform 0.15s ease-in-out;
}
.modal {
    z-index: 1010;
}
.modal-backdrop {
    z-index: 1000;
}
.page-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.page-overlay.active {
    display: block;
}
.bg-content {
    background: var(--bg-body-purple-light);
    border-radius: var(--border-radius-l);
    padding: 20px;
}
.page_content,
.page-users,
.page-prompts,
.page-importers,
.page-bots {
    gap: 30px;
    display: flex;
    flex-direction: column;
}
.page_content-main {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
.content_title {
    position: relative;
}
.title__h1 {
    font-size: var(--font-size-30);
    font-weight: var(--font-weight-bold);
    margin: 0;
    padding: 0;
}
.title__desc {
    font-size: var(--font-size-15);
}
strong, b, .bold {
    font-weight: var(--font-weight-bold);
}
.normal {
    font-weight: normal;
}
.italic {
    font-style: italic;
}
.text-justify {
    text-align: justify;
}
.text-green {
    color: var(--text-green);
}
.text-red {
    color: var(--text-red);
}
.pointer {
    cursor: pointer;
}
.small {
    font-size: 90%
}
.smaller {
    font-size: 80%;
}
.nowrap {
    white-space: nowrap;
}
.icon-svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
    fill: currentColor;
}
.tooltip .tooltip-inner {
    padding: 4px 8px !important;
    font-size:var(--font-size-12);
    border-radius: var(--border-radius-s);
    transition: opacity .15s ease, transform .15s ease;
}
.tooltip .tooltip-arrow{
    display:none !important;
}
.text-scroll-through {
    display: none;
    text-align: center;
    font-size: var(--font-size-12);
    color: var(--color-gray);
    margin-top:6px;
}
#app {

}
#wrapper {
    display: flex;
    background-color: var(--bs-body-bg-gray);
}
#right {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}
.right_connect {
    margin-left: calc(var(--sidebar-width) + 1.2em);
    z-index: 11;
}
#brain {
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--bs-body-bg);
    min-height: calc(100vh - 70px);
}
.brain-content {
    margin-top: 0;
    padding: 50px 42px;
    border-radius: 30px 0 0 0;
}
.brain_logo {

}
.brain_logo-link {
    text-decoration: none;
    border: 0;
}
.brain_logo-img {
    width: 94px;
    height: 40px;
}
.bars_icon {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
}
.bars_icon:hover {
    opacity: 0.7;
    cursor: pointer;
}
.bars_icon-img {
    width: 30px;
    height: 30px;
}
.bars_close .bars_icon-img {
    padding: 3px;
    color: var(--bs-icon-close);
}
.bars_close:hover .bars_icon-img {
    color: var(--color-purple-light);
}
.bars_hamburger .bars_icon-img {
    width: 30px;
    height: 30px;
    color: var(--bs-icon-hamburger);
}
.bars_hamburger:hover .bars_icon-img {
    color: var(--bs-icon-hamburger-hover);
}
#brain_theme_style-btn {
    cursor: pointer;
    height: 24px;
    width: 24px;
    transition: left 1s ease-in-out;
}
#brain_theme_style-icon:hover {
    color: var(--text-purple);
    fill: var(--text-purple);
    transition: transform 0.4s ease, padding 0.4s ease;
}
#brain_theme_style-icon,
#brain_theme_style-icon .brain_theme_style-icon-svg {
    height: 24px;
    width: 24px;
}
.icon-animate {
    animation: iconFlip 0.8s ease;
}
.select2-container--open { z-index: 1060; } /* bootstrap modal = 1055 */
#topMenuCompanyIcon {
    display: flex !important;
    position: absolute;
    top: 123px;
    left: -20px;
    padding: 10px;
    border-radius: 50px;
    background-color: var(--color-purple);
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.4s ease, padding 0.4s ease;
}
#topMenuCompanyIcon:hover {
    padding: 12px;
    transform: scale(1.1);
}
#topMenuCompanyIcon:active {
    animation: iconClickAnimation 0.6s ease;
}
@keyframes iconClickAnimation {
    0% {
        transform: scale(1.1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(104, 69, 246, 0.4);
    }
    25% {
        transform: scale(1.2) rotate(90deg);
        box-shadow: 0 0 0 8px rgba(104, 69, 246, 0.3);
    }
    50% {
        transform: scale(1.15) rotate(180deg);
        box-shadow: 0 0 0 12px rgba(104, 69, 246, 0.2);
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        box-shadow: 0 0 0 8px rgba(104, 69, 246, 0.1);
    }
    100% {
        transform: scale(1.1) rotate(360deg);
        box-shadow: 0 0 0 0 rgba(104, 69, 246, 0);
    }
}
.header {
    padding: 0 42px 0 0;
    background-color: var(--bs-body-bg-gray);
    height: 70px;
    position: relative;
    z-index: 99;
}
.header_logo {
    display: none;
}
.brain_sidebar-clients {
    width: 100%;
}
.brain_inner-clients {
    width: 380px;
}
.brain_inner-company-name {

}
.header_inner {
    margin-right:0;
}
.header_theme,
.header_billing,
.header_token_gift {
    margin-right: 20px;
}
.header_billing-link,
.header_token_gift-link {
    display: flex;
    line-height: 30px;
    padding-left: 18px;
    padding-right: 18px;
    text-decoration: none;
    font-size: var(--font-size-14);
    border-radius: var(--border-radius-xl);
}
.header_billing-link-icon {
    display: none;
}
.header_billing-link {
    color: var(--bottom-transparent-txt);
    background: var(--bottom-transparent-bg);
    border: 1px solid var(--bottom-transparent-border-color);
}
.header_token_gift-link {
    color: var(--bottom-purple-light-txt);
    background: var(--bottom-purple-light-bg);
    border: 1px solid var(--bottom-purple-light-border-color);
}
.header_billing-link:hover,
.header_token_gift-link:hover {
    color: var(--color-white);
    border-color: var(--color-purple);
    background: var(--color-purple);
    --transform: scale(1);
    --transform-hover: scale(1);
}
.header_profile {
    height: 2.5rem;
    cursor: pointer;
}
.header_profile-img {
    overflow: hidden;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--bottom-transparent-border-color);
}
.header_profile .dropdown-toggle::after {
    display: none;
}
.header_profile-menu {
    width: 220px;
    font-size: var(--font-size-14);
    position: relative;
    padding: 5px 9px;
    z-index: 1;
}
.profile-menu__user-info {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem;
    color: var(--color-soft-dark);
    border-bottom: 1px solid var(--profile-hr);
}
.profile-menu__user-name,
.profile-menu__user-email,
.profile-menu__account-id,
.profile-menu__nav-item, .support-contact__text {
    font-style: normal;
    font-weight: var(--font-weight-regular);
}
.profile-menu__user-name {
    font-size: var(--font-size-14);
    line-height: var(--line-height-14);
}
.profile-menu__user-email,
.profile-menu__account-id {
    font-size: var(--font-size-12);
    line-height: var(--line-height-12);
}
.profile-menu__nav {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.profile-menu__nav-item {
    font-size: var(--font-size-14);
    line-height: var(--line-height-14);
    border-radius: var(--border-radius-xs);
    padding: .5rem .75rem;
    cursor: pointer;
    text-decoration: none;
}
.profile-menu__nav-item {
    color: var(--text-dark-gray);
    background: var(--color-transparent);
}
.profile-menu__nav-item:hover {
    background: var(--profile-hover);
}
.profile-menu__support {
    border-top: 1px solid var(--profile-hr);
    padding: .75rem .75rem;
}
.profile-support .support__text {
    font-size: var(--font-size-13);
    line-height: var(--line-height-13);
}
.support_contact, .support_contact__item {
    display: flex;
    gap: .5rem;
}
.support_contact {
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}
.support_contact__item {
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    transition: color .5s ease-in-out;
}
.support__icon {
    max-width: 1rem;
    height: 1rem;
}
.support__icon, .support__text, .sidebar_footer_nav-link {
    color: var(--color-soft-dark);
}
.support__text, .sidebar_footer_nav-link {
    font-weight: var(--font-weight-regular);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support_contact__item:hover .support__icon,
.support_contact__item:hover .support__text, .sidebar_footer_nav-link:hover {
    transition: transform 0.4s ease, padding 0.4s ease;
    color: var(--bottom-purple-light-txt);
}
.open .support_contact__item:hover .support__icon,
.open .support_contact__item:hover .support__text, .open .sidebar_footer_nav-link:hover {
    color: var(--color-purple);
}
.sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: width .3s ease-in-out;
    -webkit-overflow-scrolling: touch;
    gap: 3rem;
    overflow-x: auto;
    padding: 15px;
    position: fixed;
    overflow-y: auto;
    z-index: 10;
    left: 0;
    top: 0;
}
.sidebar_header {
    display: flex;
}
.sidebar_logo-img {
    width: 94px;
    height: 40px;
    transition: left 1s ease-in-out;
}
body.sidebar-collapsed .sidebar, .sidebar-collapsed-initial .sidebar {
    width: 80px;
}
body.sidebar-collapsed .right_connect, .sidebar-collapsed-initial .right_connect {
    margin-left: 80px;
}
body.sidebar-collapsed .sidebar_logo-img {
    width: 48px;
    height: 26px;
}
body.sidebar-collapsed .sidebar_logo {
    transition: left 1s ease-in-out;
    padding-top: 6px;
}
body.sidebar-collapsed .sidebar_menu {
    padding: 0;
}
body.sidebar-collapsed .sidebar_menu-item {
    position: relative;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.sidebar-collapsed .sidebar_menu-text {
    font-size: 0;
    margin-left: 0;
}
body.sidebar-collapsed .sidebar_footer,
body.sidebar-collapsed .sidebar_bottom,
body.sidebar-collapsed .sidebar_footer_copy {
    display: none !important;
}
.sidebar_menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}
.sidebar_menu-item {
    padding: 7px;
    text-decoration: none;
    line-height: 1.5;
    border-radius: 8px;
    transition: background-color 0.4s;
    font-size: var(--font-size-14);
    display: flex;
    align-items: center;
}
.sidebar_menu-item .sidebar_menu-icon {
    display: inline-block;
    font-size: 20px;
}
.sidebar_menu-text {
    display: inline;
    margin-left: 12px;
}
.sidebar_menu-item {
    color: var(--text-purple);
}
.sidebar_menu-item .sidebar_menu-text {
    color: var(--text-dark);
}
.sidebar_menu-item.active {
    font-weight: var(--font-weight-bold);
}
.sidebar_menu-item.active .sidebar_menu-text {
    color: var(--text-purple) ;
}
.sidebar_menu-item-admin,
.sidebar_menu-item-admin .sidebar_menu-text,
.sidebar_menu-item-admin.active,
.sidebar_menu-item-admin.active .sidebar_menu-text {
    color: var(--text-red);
}
.sidebar_menu-item:hover {
    background: var(--color-purple-shadow-rgba);
}
.sidebar_menu-item-admin:hover {
    background: var(--color-red-shadow-rgba);
}
body.sidebar-collapsed .sidebar_menu-item .sidebar_menu-icon {
    color: var(--text-purple);
}
body.sidebar-collapsed .sidebar_menu-item.active .sidebar_menu-icon {
    color: var(--text-dark);
}
body.sidebar-collapsed .sidebar_menu-item-admin .sidebar_menu-icon,
body.sidebar-collapsed .sidebar_menu-item-admin.active .sidebar_menu-icon {
    color: var(--text-red);
}
.menu-open .open .sidebar_menu-item {
    color: var(--color-purple);
}
.menu-open .open .sidebar_menu-item .sidebar_menu-text {
    color: var(--color-dark);
}
.menu-open .open .sidebar_menu-item-admin .sidebar_menu-text {
    color: var(--color-red);
}
.menu-open .open .sidebar_menu-item.active .sidebar_menu-text {
    color: var(--color-purple) ;
}
.menu-open .open .sidebar_menu-item-admin,
.menu-open .open .sidebar_menu-item-admin.active,
.menu-open .open .sidebar_menu-item-admin.active .sidebar_menu-text {
    color: var(--color-red);
}
.menu-open .open .sidebar_menu-item:hover {
    background: var(--color-purple-shadow-rgba);
}
.menu-open .open .sidebar_menu-item-admin:hover {
    background: var(--color-red-20);
}
.sidebar_footer__bottom,
.sidebar_footer,
.sidebar_footer_menu,
.sidebar_footer_nav {
    display: flex;
    flex-direction: column;
}
.sidebar_footer__bottom {
    gap: 20px;
    margin-top: auto;
}
.sidebar_bottom {
    display: none;
}
.sidebar_footer {
    gap: 20px;
}
.sidebar_footer_nav_line {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--profile-hr);
}
.sidebar_footer_nav-link {
    width: 100%;
    text-decoration: none;
}
.sidebar_footer_nav, .sidebar_footer_support {
    gap: .375rem;
}
.sidebar_footer_nav,
.sidebar_footer_support  {
    font-size: var(--font-size-12);
    line-height: var(--line-height-12);
}
.open .sidebar_footer_nav,
.open .sidebar_footer_support  {
    font-size: var(--font-size-14);
    line-height: var(--line-height-14);
}
.sidebar_footer_copy {
    font-size: var(--font-size-13);
    line-height: var(--line-height-13);
}
.open .sidebar_footer_copy {
    text-align: center;
    color: var(--color-black-light);
}
.breadcrumb {
    margin-bottom: 2em;
}
.breadcrumb-item,
.breadcrumb-item a {
    text-decoration: none;
    font-size: var(--font-size-15);
    color: var(--text-gray);
}
.breadcrumb-item a {
    border-bottom: 1px solid var(--text-gray-light);
}
.breadcrumb-item.active {
    color: var(--text-gray-light);
}
.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-gray);
}
.breadcrumb-item a:hover {
    color: var(--text-purple);
    border-bottom-color: var(--text-purple);
}
.brain-pagination .pagination {
    gap: 6px;
}
.brain-pagination .page-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:36px;
    height:36px;
    padding:0 10px;

    font-size:13px;
    line-height:1;
    font-weight:500;

    border-radius:12px;
    border:1px solid var(--bs-body-bg-gray-line);
    background:var(--bs-body-bg-gray);
    color:var(--text-dark);

    transition: background .15s ease,  border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.brain-pagination .page-link:hover {
    background:var(--bs-body-bg);
    border-color:var(--color-purple, rgba(126,61,255,.45));
    color:var(--text-dark);
}
.brain-pagination .page-item .page-link.active {
    background:var(--color-purple-20, rgba(126,61,255,.18));
    border-color:var(--color-purple-50, rgba(126,61,255,.6));
    color:var(--text-dark);
}
.brain-pagination .page-item.disabled .page-link{
    opacity:.45;
    pointer-events:none;
}
.brain-pagination .page-link--dots {
    cursor:default;
}
[data-bs-theme="dark"] .brain-pagination .page-link {
    background:rgba(255,255,255,.04);
    border-color:rgba(255,255,255,.12);
    color:rgba(255,255,255,.85);
}
[data-bs-theme="dark"] .brain-pagination .page-link:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(126,61,255,.5);
    color:#fff;
}
[data-bs-theme="dark"] .brain-pagination .page-item .page-link.active {
    background:rgba(126,61,255,.28);
    border-color:rgba(126,61,255,.7);
    color:#fff;
}
@media (max-width: 991.98px) {
    .brain-pagination .page-link {
        min-width:32px;
        height:32px;
        font-size:12px;
        border-radius:10px;
    }
}

/* ========================================== PROFILE ========================================== */
.profile-page {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.profile-card {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-l);
    border: 0;
}
.profile-top {
    display: grid;
    grid-template-columns: 110px 1fr; /* аватар 110px, имя шире */
    gap: 18px;
    align-items: start;
}

/* AVATAR */
.profile-avatar-btn .profile-avatar-img,
.profile-avatar-btn:hover .profile-avatar-img{
    border-color: var(--color-purple-60);
    box-shadow: 0 0 0 0.2rem var(--color-purple-shadow-rgba);
}
.profile-avatar-btn:hover .profile-avatar-img {
    transform: scale(1.02);
    transition: opacity .15s ease, transform .15s ease;
}
.profile-avatar-menu {
    min-width: 150px;
}
.profile-avatar-col {
    display: flex;
    align-items: flex-start;
}
.profile-avatar-dropdown {
    width: 110px;
}
.profile-avatar-btn {
    width: 110px;
    height: 110px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid var(--color-purple-60);
    background: transparent;
    overflow: hidden;
}
.profile-avatar-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: var(--bs-body-bg-gray);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.profile-avatar-btn:hover .profile-avatar-img {
    border-color: var(--color-purple-60);
    box-shadow: var(--color-purple-shadow);
}
.profile-avatar-img {
    transition: opacity .18s ease;
}
.profile-avatar-img.is-fading{
    opacity: 0;
}

/* FIELDS */
.profile-gender-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}
.profile-gender-title {
    width: 100%;
    font-size: var(--font-size-12);
    color: var(--text-gray);
    margin-bottom: -2px;
}
.profile-gender-select {
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}
.profile-gender-tabs {
    gap: 12px;
}
.profile-gender-tabs .btn {
    border-radius: 999px !important;
    padding-left: 12px;
    padding-right: 12px;
}
.profile-gender-clear {
    padding: 0 6px;
    text-decoration: none;
}

/* SOCIAL */
/* ===================== SOCIAL AUTH ===================== */
.profile-social {
    border: 1px solid var(--bs-body-bg-gray-line);
    border-radius: var(--border-radius-m);
    padding: 12px;
    background: var(--bs-body-bg-gray);
}
.profile-social-title {
    font-size: var(--font-size-12);
    color: var(--text-gray);
    margin-bottom: 10px;
}
.profile-social-list {
    display: flex;
    gap: 12px;
}
.profile-social-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-body-bg-gray-line);
    background: var(--bs-body-bg);
    color: var(--text-gray);
    transition: all .15s ease;
    text-decoration: none;
}
.profile-social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--text-purple);
}
.profile-social-link:hover {
    border-color: var(--color-purple-60);
    color: var(--color-purple-60);
    box-shadow: 0 0 0 0.15rem var(--color-purple-shadow-rgba);
}
.profile-social-link.active {
    border-color: var(--color-purple);
    color: var(--color-purple);
    box-shadow: var(--color-purple-shadow);
}
.profile-social-check {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-purple);
    color: #fff;
    font-size: var(--font-size-12);
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
}
.profile-social-link.active .profile-social-check {
    display: flex;
}
.profile-social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-black);
    color: var(--text-white);
    font-size: var(--font-size-12);
    padding: 4px 8px;
    border-radius: var(--border-radius-s);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 5;
}
.profile-social-link:hover::after {
    opacity: 0.85;
    transform: translateX(-50%) translateY(2px);
}
.profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 18px;
    flex-wrap: wrap;
}
.profile-save-state {
    width: 100%;
    text-align: right;
    font-size: var(--font-size-12);
    color: var(--color-green);
    min-height: 18px;
}

/* ========================================== TABLE / GRID ========================================== */
.brain_add-row {
    position: relative;
}
.brain_add-btn {
    width: auto;
}
.brain_toolbar_filter {
    display: flex;
    justify-content: space-between;
}
.brain_toolbar_filter-left {

}
.brain_toolbar_filter-right {

}
.brain_toolbar {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    flex-wrap:wrap;
}
.brain_toolbar_view {
    display:inline-flex;
    gap:8px;
    align-items:center;
}
.brain_toolbar-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height: 42px;
    width: 42px;
    border-radius:12px;
    border:1px solid var(--bs-border-color);
    background:var(--bs-body-bg);
    color:var(--bs-body-color);
    cursor:pointer;
    user-select:none;
    line-height: var(--line-height-1);
}
.brain_toolbar-btn i{
    font-size:var(--font-size-22);
    line-height:var(--line-height-1);
}
.brain_toolbar-btn.active {
    border-color: var(--color-purple);
    box-shadow: var(--color-purple-shadow);
    color: var(--text-purple);
}
.brain___info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    color: var(--bs-secondary-color);
}
.brain___info i {
    font-size: var(--font-size-12);
    line-height: 1;
}
.brain___actions {
    display: inline-flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
}
.brain_tg_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    color: var(--bs-secondary-color);
    border-radius: var(--border-radius-s);
    padding: 4px;
    line-height: 1;
    border: none;
    background: var(--color-transparent);
}
.brain_tg_btn:hover {
    color: var(--text-purple);
}
.brain_tg_btn i {
    font-size: var(--font-size-16);
}
.brain_tg_btn.brain_tg_btn-delete,
.brain_tg_btn.brain_tg_btn-edit {
    position: relative;
}
.brain_tg_btn.disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.brain_tg_btn.disabled:hover i {
    color: var(--bs-secondary-color);
}
.brain_tg_img {
    display: block;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid var(--bs-border-color);
}
.brain_tg_title {
    font-weight: var(--font-weight-medium);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
}
.brain_tg_prompt,
.brain_tg_comment {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.brain_tg_prompt,
.brain_tg_comment{
    -webkit-line-clamp: 2;
}
.brain_tg_platforms_img {
    width: 18px;
    height: 18px;
}
.brain_tg_platforms-telegram {
    color: #27A7E7;
}
.brain_tg_platforms-vk {
    color: #4d7198;
}
/* ===================== TABLE ===================== */
.brain_table-wrap {
    width: 100%;
}
.brain_table-wrap-content {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius-l);
    overflow: hidden;
}
.brain_table-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.brain_table {
    margin: 0;
    min-width: 100%;
    font-size: var(--font-size-15);
    table-layout: fixed;
}
.brain_table thead th {
    background: rgba(var(--bs-secondary-rgb), .05);
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
    padding: 6px 12px;
    font-size: var(--font-size-12);
}
.brain-th-photo {
    width: 44px;
}
.brain-th-name,
.brain-th-comment,
.brain-th-platforms,
.brain-th-type,
.brain-th-status {
    text-align: left;
}
.brain-th-platforms {
    width: 42px;
}
.brain-th-status {
    width: 40px;
}
.brain-th-actions {
    width: 150px;
}
.brain_table_tr {
    vertical-align: middle;
}
.brain_table tbody td {
    padding: 6px 12px;
    border-top: 1px solid rgba(var(--bs-secondary-rgb), .12);
    vertical-align: middle;
}
.brain_table tbody td.brain_table___photo {
    padding-right: 0;
}
.brain_table tbody tr:hover td {
    background: var(--bg-body-purple-light);
}
.brain_table___photo {
    width: 44px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}
.brain_table___name {
    text-align: left;
}
.brain_table___comment {
    text-align: left;
}
.brain_table___platforms {
    width: 42px;
    text-align: center;
}
.brain_table___type {
    text-align: left;
}
.brain_table___status {
    text-align: center;
}
.brain_table___actions {
    text-align: right;
}
.brain_table_img {
    width: 32px;
    height: 32px;
    margin: 0 auto;
}
.brain_table_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.brain_table_dashboard tbody td {
    padding: 1em;
    vertical-align: top;
}
.brain_table_dashboard tbody td.actions {
    vertical-align: middle;
}
.brain_table_dashboard-id {

}
.brain_table_dashboard-source {
    margin-top: 0.5em;
    padding-top: 0.5em;
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: .5em;
}
.brain_table_dashboard-source-link,
.brain_table_dashboard-source-date {
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}
[data-content-key="users"] .brain-th-type{
    width: 150px;
}
[data-content-key="users"] .brain-th-actions {
    width: 80px;
}
[data-content-key="prompts"] .brain-th-type {
    width: 136px;
}
[data-content-key="prompts"] .brain-th-actions {
    width: 136px;
}
[data-content-key="importers"] .brain-th-type {
    width: 150px;
}
[data-content-key="importers"] .brain-th-actions {
    width: 110px;
}
[data-content-key="bots"] .brain-th-type {
    width: 150px;
}
[data-content-key="bots"] .brain-th-actions {
    width: 80px;
}
/* ===================== GRID ===================== */
.brain_grid {
    position: relative;
}
.brain_grid-wrap-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    font-size: var(--font-size-15);
}
.brain_card {
    position: relative;
    border-radius: var(--border-radius-l);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    padding: 14px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    min-height: 120px;
    /*box-shadow: 0 8px 24px rgba(var(--color-purple-shadow-rgb, 104, 69, 246), 0.08);*/
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.brain_card:hover {
    box-shadow: 0 12px 28px rgba(var(--color-purple-shadow-rgb), 0.14);
    transform: translateY(-1px);
}
.brain_card-left {
    display: flex;
    flex-direction: column;
}
.brain_card-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 52px;
}
.brain_card___actions {
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.brain_card:hover .brain_card___actions {
    opacity: 1;
}
[data-content-view="grid"][data-content-key="prompts"] .brain___actions,
[data-content-view="grid"][data-content-key="importers"] .brain___actions,
[data-content-view="grid"][data-content-key="bots"] .brain___actions {
    flex-wrap: wrap;
    width: 52px;
}
.brain_card___photo {
    position: relative;
}
.brain_card___header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brain_card___name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brain_card___status {
    text-align: center;
}
.brain_card___content {
    display: flex;
    flex-direction: column;
}
.brain_card___type {
    display: flex;
    gap: 0.5rem;
}
.brain_card___platforms-type {
    display: flex;
}
.brain_card_img {
    width: 72px;
    height: 72px;
}
.brain_card_title {
    position: relative;
}
.brain_card_prompt,
.brain_card_comment,
.brain_card_content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.brain_card_prompt,
.brain_card_comment {
    -webkit-line-clamp: 3;
}
.brain_card_content {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--bs-secondary-color);
    font-size: var(--font-size-13);
    gap: 0.5rem;
    -webkit-line-clamp: 2;
}
@media (min-width: 1919.98px) {
    .brain_grid-wrap-content {
        grid-template-columns:repeat(4, minmax(0,1fr));
    }
}
@media (min-width: 2499.98px) {
    .brain_grid-wrap-content {
        grid-template-columns:repeat(5, minmax(0,1fr));
    }
}
@media (max-width: 1319.98px) {
    .brain_grid-wrap-content {
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 991.98px) {
    .brain_table {
        min-width: 560px;
    }
    [data-content-key="prompts"] .brain_table {
        min-width: 720px;
    }
}
@media (max-width: 767.98px) {
    .brain_grid-wrap-content {
        grid-template-columns:repeat(1, minmax(0,1fr));
    }
}
@media (max-width: 575.98px) {
    .brain_add-btn {
        width: 100%;
    }
}

/* ========================================== STATUS / BADGE ========================================== */
.brain_status {
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06) inset;
    vertical-align:middle;
}
.brain_status-active {
    background:#22c55e; /* ИСПОЛЬЗОВАТЬ VAR*/
}
.brain_status-off {
    background:#ef4444 /* ИСПОЛЬЗОВАТЬ VAR*/;
}
.brain_badge {
    position: relative;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}
.badge {
    display:inline-flex;
    align-items:center;
    padding: 4px 10px;
    font-size: var(--font-size-12);
    line-height:var(--line-height-1);
    border-radius: 999px;
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
    border: 1px solid var(--color-transparent);
}
.brain_badge-purple {
    background: var(--color-purple-20);
    color: var(--color-purple-dark);
    border-color: var(--color-purple-80);
}
.brain_badge-red {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), .10);
    border-color: rgba(var(--bs-danger-rgb), .25);
}
.brain_badge-yellow {
    color: #7a5a00;
    background: rgba(var(--bs-warning-rgb), .18);
    border-color: rgba(var(--bs-warning-rgb), .32);
}
.brain_badge-green {
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), .10);
    border-color: rgba(var(--bs-success-rgb), .25);
}
.brain_badge-gray {
    color: var(--bs-body-color);
    background: var(--bs-body-bg-gray);
    border-color: var(--bs-body-bg-gray-line);
}
[data-bs-theme="dark"] .brain_badge-purple {
    background: rgba(104, 69, 246, 0.25);
    color: var(--color-purple-20);
    border-color: var(--color-purple-dark);
}
[data-bs-theme="dark"] .brain_badge-red {
    color:#ff6b6b;
    background: rgba(255,107,107,.18);
    border-color: rgba(255,107,107,.35);
}
[data-bs-theme="dark"] .brain_badge-yellow {
    color:#ffd166;
    background: rgba(255,209,102,.18);
    border-color: rgba(255,209,102,.35);
}
[data-bs-theme="dark"] .brain_badge-green {
    color:#69db7c;
    background: rgba(105,219,124,.18);
    border-color: rgba(105,219,124,.35);
}
[data-bs-theme="dark"] .brain_badge-gray {
    color: var(--bs-body-color);
    background: var(--bs-body-bg-gray);
    border-color: var(--bs-body-bg-gray-line);
}

/* ========================================== MODAL ========================================== */
.brain_modal .modal-content {
    border-radius: var(--border-radius-l);
}
.brain_modal___header,
.brain_modal___footer {
    border-color: var(--color-transparent);
}
.brain_modal___body,
.brain_modal___body-col,
.brain_modal___footer {
    padding-top: 0;
}
.brain_modal___body-col {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
}
.brain_modal___header .modal-title {
    font-size: var(--font-size-18);
    font-weight: var(--font-weight-bold);
}
.brain_modal___header .btn-close {
    font-size: var(--font-size-13);
}
.brain_modal-top {
    display:grid;
    grid-template-columns: 107px 1fr;
    gap:14px;
    align-items:start;
    margin-bottom: 10px;
}
.brain_modal___photo {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.brain_modal___fields {

}
.brain_modal_img {
    width:107px;
    height:107px;
    border-radius:999px;
    border:1px solid var(--bs-border-color);
    margin: 0 auto;
    cursor:pointer; /* dropdown */
}
.brain_modal_img-menu {
    min-width: 150px;
}
.brain_modal-invite-text {
    color: var(--bs-secondary-color);
    font-size: var(--font-size-15);
    line-height:1.4;
}

/* ===================== MODAL TABS ===================== */
.brain_type_tabs {
    position: relative;
}
.brain_type_tabs-note {
    margin-top:8px;
    font-size:12px;
    color: var(--bs-secondary-color);
}

/* ===================== MODAL BUTTOM ===================== */
.brain_modal_actions,
.brain_modal_actions-edit {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.brain_modal_btn-save,
.brain_modal_btn-create,
.brain_modal_btn-cancel,
.brain_modal_btn-delete {
    width: 100%;
    white-space:nowrap;
}
@media (max-width: 767.98px){
    .brain_modal-top {
        grid-template-columns: 1fr;
    }
    .brain_type_tabs {
        text-align: center;
    }
    .brain_type_tabs .btn-group {
        width: 100%;
    }
    .brain_modal_actions-edit {
        flex-wrap: wrap;
    }
    .brain_modal_actions-edit .brain_modal_btn-save {
        flex: 0 0 100%;
    }
    .brain_modal_actions-edit .brain_modal_btn-cancel,
    .brain_modal_actions-edit .brain_modal_btn-delete {
        flex: 1 1 0;
    }
    .brain_modal___body-col {
        flex-direction: column;
    }
}
@media (max-width: 575.98px){
    .brain_modal_actions,
    .brain_modal_actions-edit {
        flex-direction:column;
    }
}





/* =========================================================
   BOOTSTRAP POPOVER — BRAIN STYLE
========================================================= */
.popover.brain-bs-popover{
    border-radius: var(--border-radius-l);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    overflow: hidden;
}
.popover.brain-bs-popover .popover-header{
    background: rgba(var(--bs-secondary-rgb), .06);
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 13px;
    font-weight: 500;
}
.popover.brain-bs-popover .popover-body{
    font-size: 13px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Внутренний контент */
.brain_popover{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.brain_popover-row{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.brain_popover-label{
    font-size: 12px;
    color: var(--bs-secondary-color);
    display:flex;
    align-items:center;
    gap:6px;
}
.brain_popover-value{
    font-size: 13px;
    word-break: break-word;
}
.brain_popover-empty{
    color: var(--bs-secondary-color);
}

/* =========================================================
   BOOTSTRAP TOAST — BRAIN STYLE
========================================================= */
.brain-bs-toast-container{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;

    display: flex;
    flex-direction: column;
    gap: 10px;

    max-width: calc(100vw - 32px);
    pointer-events: none; /* клики “пролетают” мимо контейнера */
}
.brain-bs-toast{
    pointer-events:auto;
    min-width: 280px;
    max-width: 360px;
    border-radius: var(--border-radius-l);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
    overflow:hidden;
}
.brain-bs-toast__header{
    background: rgba(var(--bs-secondary-rgb), .06);
    border-bottom: 1px solid var(--bs-border-color);
}
.brain-bs-toast__title{
    font-size: 13px;
    font-weight: 600;
}
.brain-bs-toast__body{
    font-size: 13px;
}
.brain-bs-toast__dot{
    width:10px;
    height:10px;
    border-radius:50%;
    margin-right:10px;
    background:#9ca3af;
}
.brain-bs-toast-success .brain-bs-toast__dot{ background:#22c55e; }
.brain-bs-toast-info .brain-bs-toast__dot{ background:#3b82f6; }
.brain-bs-toast-warning .brain-bs-toast__dot{ background:#f59e0b; }
.brain-bs-toast-danger .brain-bs-toast__dot{ background:#ef4444; }

.brain-bs-toast {
    animation: brainToastIn 0.25s ease-out;
}
@keyframes brainToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.submenu .nav-item .sidebar_menu-item {
    padding-left: 40px;
}
.sidebar_menu-item-admin:hover {
    color: var(--text-red);
}
.sidebar_menu-item-admin:hover i.sidebar_menu-icon {
    color: var(--text-red);
}

ul {
    list-style: none;
}
.brain_add-row .form_add .input-group {
    gap: 0.75em;
    align-items: center;
}
#brain-pro-ru-last-update {
    font-size: 14px;
}
.ai-input-inner-line {
    width: 100%;
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
    flex-direction: row;
    padding: 0.5rem;
}
.modal-lg-full {
    width: calc(100% - 50px);
    max-width: calc(100% - 50px);
}
@media (max-width: 1024px) {
    .ai-input-inner-line {
        width: 100%;
        display: flex;
        gap: 0.5em;
        justify-content: flex-end;
        flex-direction: row;
        padding: 0.5rem;
    }
    .modal-lg-full {
        width: calc(100% - 15px);
        max-width: calc(100% - 15px);
    }
}