/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-e2g1d73wgv] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main[b-e2g1d73wgv] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar[b-e2g1d73wgv] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.layout-splitter[b-e2g1d73wgv] {
    display: none;
}

.top-row[b-e2g1d73wgv] {
    background-color: #04163c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    height: 3.5rem;
    flex: 0 0 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem;
}

.top-row-title[b-e2g1d73wgv] {
    flex: 1 1 auto;
    min-width: 0;
    color: #f3f3f6;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.top-row-title-avatar[b-e2g1d73wgv] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cfd6e4;
    line-height: 0;
}

.top-row-title-name[b-e2g1d73wgv] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-row-actions[b-e2g1d73wgv] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-row-admin-link[b-e2g1d73wgv] {
    color: #d7d7d7;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    padding: 0.3rem 0.65rem;
    font-size: 0.86rem;
    line-height: 1.2;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.top-row-admin-link:hover[b-e2g1d73wgv] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
}

.top-row-admin-link.active[b-e2g1d73wgv] {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
}

.top-row-logout-form[b-e2g1d73wgv] {
    display: inline-flex;
    margin: 0;
}

.top-row-logout-btn[b-e2g1d73wgv] {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font: inherit;
    background: transparent;
}

.content[b-e2g1d73wgv] {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 !important;
}

@media (max-width: 640.98px) {
    .page[b-e2g1d73wgv] {
        height: 100dvh;
        overflow: hidden;
    }

    .sidebar[b-e2g1d73wgv] {
        width: 100% !important;
        flex: 0 0 auto;
    }

    main[b-e2g1d73wgv] {
        flex: 1 1 auto;
        min-height: 0;
    }

    .top-row[b-e2g1d73wgv] {
        height: 3rem;
        flex: 0 0 3rem;
        padding: 0 0.75rem;
    }

    .top-row-title[b-e2g1d73wgv] {
        font-size: 0.95rem;
    }

    .content[b-e2g1d73wgv] {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
}

@media (min-width: 641px) {
    .page[b-e2g1d73wgv] {
        flex-direction: row;
    }

    .sidebar[b-e2g1d73wgv] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 auto;
        min-width: 190px;
        max-width: 520px;
        border-right: 1px solid rgba(0, 0, 0, 0.35);
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
    }

    .layout-splitter[b-e2g1d73wgv] {
        display: block;
        width: 6px;
        flex: 0 0 auto;
        cursor: col-resize;
        user-select: none;
        background: linear-gradient(180deg, #2d4f97 0%, #1a2f60 100%);
    }

    .layout-splitter:hover[b-e2g1d73wgv] {
        background: linear-gradient(180deg, #3d67bf 0%, #24417f 100%);
    }

    main[b-e2g1d73wgv] {
        flex: 1 1 auto;
    }

    .top-row[b-e2g1d73wgv] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .content[b-e2g1d73wgv] {
        min-height: calc(100vh - 3.5rem);
    }
}

#blazor-error-ui[b-e2g1d73wgv] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-e2g1d73wgv] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-m619kra004] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-m619kra004] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-m619kra004] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.top-row-content[b-m619kra004] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.top-row-actions[b-m619kra004] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.users-panel[b-m619kra004] {
    color: #d7d7d7;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.users-panel-wrapper[b-m619kra004] {
    padding-top: 0.75rem;
}

.users-panel-sidebar[b-m619kra004] {
    width: 100%;
}

.users-title[b-m619kra004] {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.users-list[b-m619kra004] {
    margin: 0;
    padding-left: 1rem;
    max-height: 55vh;
    overflow-y: auto;
    font-size: 0.85rem;
}

.user-select-button[b-m619kra004] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #d7d7d7;
    padding: 0.3rem 0.45rem;
}

.user-select-label[b-m619kra004] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-bell[b-m619kra004] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    pointer-events: none;
}

.user-bell-icon[b-m619kra004] {
    display: block;
}

.user-bell-icon--outline[b-m619kra004] {
    color: rgba(255, 255, 255, 0.38);
    opacity: 0.95;
}

.user-bell-icon--filled[b-m619kra004] {
    color: #ffca28;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.user-select-button:hover[b-m619kra004] {
    background: rgba(255, 255, 255, 0.15);
}

.user-select-button.active[b-m619kra004] {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
}

.current-user-name[b-m619kra004] {
    color: #d7d7d7;
    font-size: 0.9rem;
}

.register-button[b-m619kra004] {
    white-space: nowrap;
}

.navbar-brand[b-m619kra004] {
    font-size: 1.1rem;
}

.admin-top-link[b-m619kra004] {
    color: #d7d7d7;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.admin-top-link:hover[b-m619kra004] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.bi[b-m619kra004] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-m619kra004] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-m619kra004] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-m619kra004] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-chat-nav-menu[b-m619kra004] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chat-left-dots-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8c0 3.314-3.582 6-8 6a8.84 8.84 0 0 1-4.083-.981c-.689.268-1.782.54-3.075.653a.5.5 0 0 1-.53-.63c.24-.83.48-1.551.688-2.145C.381 10.243 0 9.161 0 8c0-3.314 3.582-6 8-6s8 2.686 8 6M5 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2m3 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2m3 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2'/%3E%3C/svg%3E");
}

.nav-item[b-m619kra004] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-m619kra004] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-m619kra004] {
        padding-bottom: 1rem;
    }

    .nav-item[b-m619kra004]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-m619kra004]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-m619kra004]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-m619kra004] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-m619kra004] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-m619kra004] {
        display: none;
    }

    .nav-scrollable[b-m619kra004] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

@media (max-width: 640.98px) {
    .navbar-toggler[b-m619kra004] {
        right: 0.65rem;
        z-index: 2;
    }

    .top-row-content[b-m619kra004] {
        padding-right: 4.25rem;
    }

    .navbar-brand[b-m619kra004],
    .admin-top-link[b-m619kra004] {
        min-width: 0;
    }

    .admin-top-link[b-m619kra004] {
        flex: 0 1 auto;
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-scrollable[b-m619kra004] {
        max-height: calc(100dvh - 3.5rem);
        overflow-y: auto;
    }

    .users-list[b-m619kra004] {
        max-height: 32dvh;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h49wxhysdz],
.components-reconnect-repeated-attempt-visible[b-h49wxhysdz],
.components-reconnect-failed-visible[b-h49wxhysdz],
.components-pause-visible[b-h49wxhysdz],
.components-resume-failed-visible[b-h49wxhysdz],
.components-rejoining-animation[b-h49wxhysdz] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-retrying[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-failed[b-h49wxhysdz],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-h49wxhysdz] {
    display: block;
}


#components-reconnect-modal[b-h49wxhysdz] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-h49wxhysdz 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-h49wxhysdz 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-h49wxhysdz 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-h49wxhysdz]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-h49wxhysdz 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-h49wxhysdz {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-h49wxhysdz {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-h49wxhysdz {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-h49wxhysdz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-h49wxhysdz] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-h49wxhysdz] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-h49wxhysdz] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-h49wxhysdz] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-h49wxhysdz] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-h49wxhysdz] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-h49wxhysdz 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-h49wxhysdz] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-h49wxhysdz {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/AdminUsers.razor.rz.scp.css */
.metadata-tree[b-azpscwrq3e] {
    max-height: 360px;
    overflow: auto;
    background: linear-gradient(180deg, #fff, #fbf8ff);
}

.metadata-tree-row[b-azpscwrq3e] {
    --metadata-depth: 0;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-left: calc(3px + min(var(--metadata-depth), 4) * 2px) solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    margin-block: 0.16rem;
    padding-block: 0.42rem;
    padding-right: 0.6rem;
    padding-left: calc(0.55rem + var(--metadata-depth) * 2.2rem);
    text-align: left;
    cursor: pointer;
}

.metadata-tree-row:hover[b-azpscwrq3e],
.metadata-tree-row.is-selected[b-azpscwrq3e] {
    background: #efe8ff;
    border-color: #d6c6ff;
}

.metadata-tree-row.is-child[b-azpscwrq3e] {
    background: rgba(111, 66, 193, 0.04);
    border-left-color: #cbb9ff;
}

.metadata-tree-row.is-child:hover[b-azpscwrq3e],
.metadata-tree-row.is-child.is-selected[b-azpscwrq3e] {
    background: #e7dcff;
    border-left-color: #6f42c1;
}

.metadata-tree-guides[b-azpscwrq3e] {
    width: calc(var(--metadata-depth) * 0.35rem);
    min-height: 1.2rem;
    border-left: calc(var(--metadata-depth) * 1px) solid rgba(111, 66, 193, 0.25);
}

.metadata-tree-toggle[b-azpscwrq3e],
.metadata-tree-leaf[b-azpscwrq3e] {
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    color: #6f42c1;
    font-weight: 700;
}

.metadata-tree-toggle[b-azpscwrq3e] {
    border: 1px solid #cbb9ff;
    background: #fff;
    cursor: pointer;
}

.metadata-tree-toggle:hover[b-azpscwrq3e] {
    background: #6f42c1;
    color: #fff;
}

.metadata-tree-name[b-azpscwrq3e] {
    font-weight: 600;
    color: #2c2142;
}

.metadata-tree-image[b-azpscwrq3e] {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 0.35rem;
    object-fit: cover;
    border: 1px solid #d6c6ff;
    background: #fff;
}

.metadata-tree-code[b-azpscwrq3e] {
    color: #777;
    font-size: 0.85rem;
}

.metadata-image-preview img[b-azpscwrq3e] {
    max-width: 160px;
    max-height: 120px;
    border-radius: 0.5rem;
    border: 1px solid #d6c6ff;
    object-fit: contain;
}
/* /Components/Pages/Chat.razor.rz.scp.css */
.chat-shell[b-ixdstcwdwy] {
    --chat-mobile-layout-version: 2;
    display: block;
    background: #f7f2dd;
    height: calc(100vh - 3.5rem);
    overflow: hidden;
}

.chat-messages[b-ixdstcwdwy] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    height: 100%;
    min-height: 0;
    position: relative;
}

.chat-messages-main[b-ixdstcwdwy] {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages-header[b-ixdstcwdwy] {
    padding: 0.75rem;
    border-bottom: 1px solid #d3d3d3;
    color: #1c2f6d;
    background: #f3ecd1;
}

.chat-current-user[b-ixdstcwdwy] {
    font-size: 0.9rem;
    color: #33415f;
    margin-bottom: 0.2rem;
}

.chat-room-title[b-ixdstcwdwy] {
    font-size: 1.15rem;
    font-weight: 700;
}

.chat-messages-body[b-ixdstcwdwy] {
    padding: 0.75rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.chat-delete-overlay[b-ixdstcwdwy] {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 40, 40, 0.28);
}

.chat-delete-dialog[b-ixdstcwdwy] {
    background: #f7f2dd;
    border: 1px solid #8a93a3;
    border-radius: 6px;
    padding: 1rem 1.15rem 0.85rem;
    max-width: 19rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.chat-delete-question[b-ixdstcwdwy] {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1c2f6d;
}

.chat-delete-actions[b-ixdstcwdwy] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.chat-delete-btn-secondary[b-ixdstcwdwy] {
    border: 1px solid #9fa6b2;
    background: #f0f0f0;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.chat-delete-btn-secondary:hover[b-ixdstcwdwy] {
    background: #e4e4e4;
}

.chat-delete-btn-primary[b-ixdstcwdwy] {
    border: 1px solid #8a3030;
    background: #a53c3c;
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.chat-delete-btn-primary:hover[b-ixdstcwdwy] {
    background: #8f2e2e;
}

.chat-date-divider[b-ixdstcwdwy] {
    text-align: center;
    font-weight: 700;
    color: #2b3d86;
    margin: 0.75rem 0;
    border-bottom: 1px dashed #b3b3b3;
}

.chat-message[b-ixdstcwdwy] {
    /* Ширина по содержимому, верх — по окну, не тянемся вместе с 70% от ширины окна */
    width: fit-content;
    max-width: 28rem;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.6rem;
    border: 1px solid #c9ced6;
    border-radius: 4px;
}

.chat-message.has-image-preview[b-ixdstcwdwy] {
    min-width: 0;
    width: fit-content;
    max-width: 12rem;
}

.chat-message.has-image-preview .chat-message-author-row[b-ixdstcwdwy] {
    margin: 0 0 0.2rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.chat-message.has-image-preview .chat-message-text[b-ixdstcwdwy],
.chat-message.has-image-preview .chat-message-attachments[b-ixdstcwdwy],
.chat-message.has-image-preview .chat-message-footer[b-ixdstcwdwy] {
    width: fit-content;
    max-width: 100%;
}

.chat-message.has-image-preview .chat-message-footer[b-ixdstcwdwy] {
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    gap: 0.45rem;
}

.chat-message.has-image-preview .chat-message-footer-right[b-ixdstcwdwy] {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
}

.chat-message-row[b-ixdstcwdwy] {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
    max-width: min(100%, 46rem);
}

.chat-message.other[b-ixdstcwdwy] {
    background: #9ad4ff;
    align-self: flex-start;
}

.chat-message.mine[b-ixdstcwdwy] {
    background: #f7c999;
    align-self: flex-start;
    margin-left: 2.25rem;
}

.chat-message-row .chat-message[b-ixdstcwdwy] {
    margin-bottom: 0;
}

.chat-message-author-row[b-ixdstcwdwy] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: -0.5rem -0.7rem 0.2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px 4px 0 0;
}

.chat-message.other .chat-message-author-row[b-ixdstcwdwy] {
    background: rgba(255, 255, 255, 0.4);
}

.chat-message.mine .chat-message-author-row[b-ixdstcwdwy] {
    background: rgba(255, 255, 255, 0.4);
}

.chat-author-avatar[b-ixdstcwdwy] {
    flex: 0 0 auto;
    color: #6a6a6a;
    line-height: 0;
    opacity: 0.95;
}

.chat-message.mine .chat-author-avatar[b-ixdstcwdwy] {
    color: #6a6a6a;
}

.chat-message-author[b-ixdstcwdwy] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a5a5a;
}

.chat-message-text[b-ixdstcwdwy] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-view-full-link[b-ixdstcwdwy] {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-message-categorization[b-ixdstcwdwy] {
    flex: 0 0 13rem;
    width: 13rem;
    margin-top: 0.15rem;
    border: 1px solid #d1d5db;
    border-radius: 0.45rem;
    background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
    color: #374151;
    font-size: 0.68rem;
    line-height: 1.2;
    overflow: hidden;
}

.chat-message-categorization-title[b-ixdstcwdwy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.28rem 0.4rem;
    border-bottom: 1px solid rgba(156, 163, 175, 0.7);
    font-weight: 700;
}

.chat-message-categorization-view[b-ixdstcwdwy] {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.75rem;
}

.chat-message-categorization-tree[b-ixdstcwdwy] {
    position: relative;
    max-height: 5.9rem;
    overflow: hidden;
    padding: 0.25rem 0.35rem 0.45rem;
}

.chat-message-categorization-tree.is-truncated[b-ixdstcwdwy]::after {
    content: "...";
    position: absolute;
    right: 0.35rem;
    bottom: 0.05rem;
    padding-left: 1.3rem;
    background: linear-gradient(90deg, transparent, #e5e7eb 45%);
    font-weight: 700;
}

.chat-message-category-row[b-ixdstcwdwy] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(2.4rem, 0.8fr);
    gap: 0.35rem;
    padding-left: calc(var(--category-depth) * 0.65rem);
    min-width: 0;
}

.chat-message-category-name[b-ixdstcwdwy],
.chat-message-category-value[b-ixdstcwdwy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-message-category-value[b-ixdstcwdwy] {
    color: #111827;
    text-align: right;
}

.chat-typing-text[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.chat-typing-dots[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
    min-width: 1.2rem;
}

.chat-typing-dot[b-ixdstcwdwy] {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.25;
    animation: chatTypingPulse-b-ixdstcwdwy 1s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2)[b-ixdstcwdwy] {
    animation-delay: 0.16s;
}

.chat-typing-dot:nth-child(3)[b-ixdstcwdwy] {
    animation-delay: 0.32s;
}

@keyframes chatTypingPulse-b-ixdstcwdwy {
    0%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-1px);
    }
}

.chat-message-attachments[b-ixdstcwdwy] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.25rem 0 0;
    max-width: 100%;
}

.chat-attachment[b-ixdstcwdwy] {
    align-self: flex-start;
}

.chat-attachment--image[b-ixdstcwdwy] {
    position: relative;
}

.chat-attachment-image-link[b-ixdstcwdwy] {
    display: block;
    line-height: 0;
}

.chat-attachment-image[b-ixdstcwdwy] {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.35);
}

.chat-attachment--image .chat-clip-badge[b-ixdstcwdwy] {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    color: #555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chat-attachment--file[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.25rem 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    cursor: pointer;
    color: #2b3d86;
}

.chat-attachment--file:hover[b-ixdstcwdwy] {
    background: rgba(255, 255, 255, 0.55);
}

.chat-attachment--file .chat-clip-badge[b-ixdstcwdwy] {
    flex: 0 0 auto;
    color: #555;
    display: inline-flex;
}

.chat-attachment-filename[b-ixdstcwdwy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: left;
}

.chat-message-footer[b-ixdstcwdwy] {
    margin-top: 0.35rem;
    margin-bottom: 1mm;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    align-content: end;
    justify-items: stretch;
    gap: 0.35rem 0.5rem;
}

.chat-message-footer-right[b-ixdstcwdwy] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: end;
    justify-self: end;
    text-align: right;
    min-width: 0;
    gap: 0.1rem;
}

.chat-message-status[b-ixdstcwdwy] {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #6b6b6b;
    white-space: nowrap;
    max-width: 100%;
}

.chat-message-actions[b-ixdstcwdwy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: end;
    justify-self: start;
    gap: 0.25rem;
    min-width: 0;
}

.chat-message-head-actions[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.chat-head-btn[b-ixdstcwdwy] {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(28, 47, 109, 0.55);
    outline: 0;
    background: transparent;
    color: #1c2f6d;
    font: inherit;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
    box-shadow: none;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 100ms ease, box-shadow 140ms ease;
}

.chat-head-btn:focus[b-ixdstcwdwy],
.chat-head-btn:focus-visible[b-ixdstcwdwy] {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(43, 61, 134, 0.3);
}

.chat-head-btn:hover[b-ixdstcwdwy] {
    border-color: #1c2f6d;
    background: rgba(43, 61, 134, 0.1);
}

.chat-head-btn:active[b-ixdstcwdwy] {
    transform: scale(0.92);
    background: rgba(43, 61, 134, 0.18);
}

.chat-head-btn-delete[b-ixdstcwdwy] {
    border-color: rgba(138, 28, 28, 0.55);
    color: #8a1c1c;
}

.chat-head-btn-delete:hover[b-ixdstcwdwy] {
    border-color: #8a1c1c;
    background: rgba(160, 60, 60, 0.12);
    color: #7a1313;
}

.chat-head-btn-delete:focus[b-ixdstcwdwy],
.chat-head-btn-delete:focus-visible[b-ixdstcwdwy] {
    box-shadow: 0 0 0 2px rgba(160, 60, 60, 0.3);
}

.chat-head-btn-delete:active[b-ixdstcwdwy] {
    background: rgba(160, 60, 60, 0.22);
}

.chat-head-btn .chat-msg-action-icon[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.chat-head-btn .chat-msg-action-icon svg[b-ixdstcwdwy] {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
}

.chat-msg-action-icon[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.chat-msg-action-icon svg[b-ixdstcwdwy] {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.chat-reply-btn[b-ixdstcwdwy] {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #1c2f6d;
    font: inherit;
    padding: 0.25rem 0.35rem;
    border-radius: 3px;
    cursor: pointer;
    line-height: 0;
}

.chat-reply-btn:hover[b-ixdstcwdwy] {
    background: rgba(0, 0, 0, 0.1);
}

.chat-edit-btn[b-ixdstcwdwy] {
    border: none;
    background: rgba(28, 47, 109, 0.1);
    color: #1c2f6d;
    font: inherit;
    padding: 0.25rem 0.35rem;
    border-radius: 3px;
    cursor: pointer;
    line-height: 0;
}

.chat-edit-btn:hover[b-ixdstcwdwy] {
    background: rgba(28, 47, 109, 0.18);
}

.chat-delete-btn[b-ixdstcwdwy] {
    border: none;
    background: rgba(160, 40, 40, 0.12);
    color: #8a1c1c;
    font: inherit;
    padding: 0.25rem 0.35rem;
    border-radius: 3px;
    cursor: pointer;
    line-height: 0;
}

.chat-delete-btn:hover[b-ixdstcwdwy] {
    background: rgba(160, 40, 40, 0.2);
}

.chat-message-reply[b-ixdstcwdwy] {
    border-left: 3px solid #2b3d86;
    padding: 0.3rem 0.45rem 0.35rem 0.5rem;
    margin-bottom: 0.4rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 0 3px 3px 0;
    max-height: 5.5em;
    overflow: hidden;
}

.chat-message-reply-label[b-ixdstcwdwy] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2b3d86;
    margin-bottom: 0.15rem;
}

.chat-message-reply-text[b-ixdstcwdwy] {
    font-size: 0.8rem;
    color: #444;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-message-meta[b-ixdstcwdwy] {
    font-size: 0.75rem;
    color: #555;
    white-space: nowrap;
}

.chat-like-btn[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: none;
    background: transparent;
    color: #b33a5a;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    border-radius: 4px;
}

.chat-like-btn:hover[b-ixdstcwdwy] {
    background: rgba(179, 58, 90, 0.12);
}

.chat-like-btn.is-liked .chat-like-icon[b-ixdstcwdwy] {
    color: #c41e3a;
}

.chat-like-icon[b-ixdstcwdwy] {
    font-size: 1rem;
}

.chat-like-count[b-ixdstcwdwy] {
    font-size: 0.75rem;
    color: #5a2d3a;
    min-width: 1ch;
}

.chat-compose[b-ixdstcwdwy] {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: sticky;
    bottom: 0;
    background: #f7f2dd;
    z-index: 2;
}

.chat-compose-inner[b-ixdstcwdwy] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.chat-compose-row[b-ixdstcwdwy] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.chat-compose-row textarea[b-ixdstcwdwy] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 1px solid #c6c6c6;
    padding: 0.42rem 0.55rem;
    font-size: 80%;
    line-height: 1.2;
    resize: vertical;
    min-height: 3.2rem;
    max-height: 9rem;
    align-self: stretch;
    overflow-y: auto;
}

.chat-compose-actions[b-ixdstcwdwy] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.chat-clip-btn[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #9fa6b2;
    border-radius: 4px;
    background: #f5f3ee;
    color: #3d4a5c;
    cursor: pointer;
    line-height: 0;
    align-self: center;
}

.chat-clip-btn:hover[b-ixdstcwdwy] {
    background: #e8e4d9;
}

.chat-attach-launcher[b-ixdstcwdwy] {
    position: relative;
    flex: 0 0 auto;
}

.chat-send-btn[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #9fa6b2;
    border-radius: 4px;
    background: #f0f0f0;
    color: #2f3f58;
    cursor: pointer;
    line-height: 0;
    align-self: center;
}

.chat-send-btn:hover:not(:disabled)[b-ixdstcwdwy] {
    background: #e3e7ef;
}

.chat-send-btn:disabled[b-ixdstcwdwy] {
    opacity: 0.55;
    cursor: default;
}

.chat-send-icon[b-ixdstcwdwy] {
    display: inline-flex;
}

.chat-clip-icon[b-ixdstcwdwy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-attach-input-hidden[b-ixdstcwdwy] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    opacity: 0.01;
}

.chat-compose-staged[b-ixdstcwdwy] {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.35rem;
    background: #ebe4d0;
    border: 1px solid #c9c1a8;
    border-radius: 3px;
    max-height: 4.2rem;
    overflow-y: auto;
}

.chat-compose-staged-item[b-ixdstcwdwy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.1rem 0;
}

.chat-compose-staged-name[b-ixdstcwdwy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
    color: #333;
}

.chat-compose-staged-remove[b-ixdstcwdwy] {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    flex: 0 0 auto;
}

.chat-compose-staged-remove:hover[b-ixdstcwdwy] {
    color: #c00;
}

.chat-replying-bar[b-ixdstcwdwy] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    background: #ebe4d0;
    border: 1px solid #c9c1a8;
    border-radius: 3px;
    font-size: 0.8rem;
}

.chat-editing-bar[b-ixdstcwdwy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    background: #e2ebf5;
    border: 1px solid #a8b8c9;
    border-radius: 3px;
    font-size: 0.8rem;
}

.chat-editing-label[b-ixdstcwdwy] {
    font-weight: 700;
    color: #1c2f6d;
}

.chat-replying-label[b-ixdstcwdwy] {
    font-weight: 700;
    color: #1c2f6d;
    margin-bottom: 0.15rem;
}

.chat-replying-preview[b-ixdstcwdwy] {
    color: #444;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chat-replying-cancel[b-ixdstcwdwy] {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #555;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.2rem;
    cursor: pointer;
    border-radius: 3px;
}

.chat-replying-cancel:hover[b-ixdstcwdwy] {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

.chat-compose-splitter[b-ixdstcwdwy] {
    height: 4px;
    background: #ada99b;
    flex: 0 0 auto;
    cursor: row-resize;
}

@media (max-width: 640.98px) {
    .chat-shell[b-ixdstcwdwy] {
        height: calc(100dvh - 3.5rem);
    }

    .chat-messages[b-ixdstcwdwy] {
        grid-template-rows: minmax(0, 1fr) auto auto;
    }

    .chat-messages-body[b-ixdstcwdwy] {
        padding: 0.65rem;
    }

    .chat-message-row[b-ixdstcwdwy] {
        max-width: 100%;
        flex-direction: column;
        gap: 0.35rem;
    }

    .chat-message[b-ixdstcwdwy] {
        max-width: calc(100vw - 2rem);
    }

    .chat-message.mine[b-ixdstcwdwy] {
        margin-left: 0.75rem;
    }

    .chat-message-categorization[b-ixdstcwdwy] {
        width: min(13rem, calc(100vw - 2rem));
        flex-basis: auto;
        margin-left: 0.75rem;
    }

    .chat-compose[b-ixdstcwdwy] {
        padding: 0.45rem;
        padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    }

    .chat-compose-row[b-ixdstcwdwy] {
        gap: 0.3rem;
    }

    .chat-compose-row textarea[b-ixdstcwdwy] {
        min-height: 2.8rem;
        max-height: 6.5rem;
        font-size: 0.9rem;
    }

    .chat-clip-btn[b-ixdstcwdwy],
    .chat-send-btn[b-ixdstcwdwy] {
        width: 2rem;
        height: 2rem;
    }
}

/* /Components/Pages/ChatCompose.razor.rz.scp.css */
.chat-compose-inner[b-i842jbjvxo] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.chat-compose-row[b-i842jbjvxo] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.chat-compose-row textarea[b-i842jbjvxo] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 1px solid #c6c6c6;
    padding: 0.42rem 0.55rem;
    font-size: 80%;
    line-height: 1.2;
    resize: vertical;
    min-height: 3.2rem;
    max-height: 9rem;
    overflow-y: auto;
    vertical-align: top;
}

.chat-compose-actions[b-i842jbjvxo] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.chat-attach-launcher[b-i842jbjvxo] {
    position: relative;
    flex: 0 0 auto;
}

.chat-clip-btn[b-i842jbjvxo] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #9fa6b2;
    border-radius: 4px;
    background: #f5f3ee;
    color: #3d4a5c;
    cursor: pointer;
    line-height: 0;
}

.chat-clip-btn:hover[b-i842jbjvxo] {
    background: #e8e4d9;
}

.chat-clip-icon[b-i842jbjvxo] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn[b-i842jbjvxo] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #9fa6b2;
    border-radius: 4px;
    background: #f0f0f0;
    color: #2f3f58;
    cursor: pointer;
    line-height: 0;
}

.chat-send-btn:hover:not(:disabled)[b-i842jbjvxo] {
    background: #e3e7ef;
}

.chat-send-btn:disabled[b-i842jbjvxo] {
    opacity: 0.55;
    cursor: default;
}

.chat-send-icon[b-i842jbjvxo] {
    display: inline-flex;
}

.chat-attach-input-hidden[b-i842jbjvxo] {
    display: none !important;
}

.chat-attach-launcher input[type="file"][b-i842jbjvxo] {
    display: none !important;
}

.chat-compose-staged[b-i842jbjvxo] {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.35rem;
    background: #ebe4d0;
    border: 1px solid #c9c1a8;
    border-radius: 3px;
    max-height: 4.2rem;
    overflow-y: auto;
}

.chat-compose-staged-item[b-i842jbjvxo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.1rem 0;
}

.chat-compose-staged-name[b-i842jbjvxo] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
    color: #333;
}

.chat-compose-staged-remove[b-i842jbjvxo] {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    flex: 0 0 auto;
}

.chat-compose-staged-remove:hover[b-i842jbjvxo] {
    color: #c00;
}
/* /Components/Pages/ChatMessageMetadataView.razor.rz.scp.css */
.metadata-view-page[b-thlgjyvi4y] {
    min-height: 100%;
    padding: 1.5rem;
    background: #f6f3e3;
}

.metadata-view-card[b-thlgjyvi4y] {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.metadata-view-header[b-thlgjyvi4y] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee6ce;
    padding-bottom: 0.75rem;
}

.metadata-view-label[b-thlgjyvi4y] {
    color: #666;
    font-size: 0.85rem;
}

.metadata-view-header h1[b-thlgjyvi4y] {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
}

.metadata-view-back[b-thlgjyvi4y] {
    border-radius: 0.45rem;
    background: #6f42c1;
    color: #fff;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.metadata-view-table[b-thlgjyvi4y] {
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    overflow: hidden;
}

.metadata-view-row[b-thlgjyvi4y] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.6fr);
    gap: 1rem;
    padding: 0.55rem 0.8rem;
    border-top: 1px solid #edf0f3;
}

.metadata-view-row--head[b-thlgjyvi4y] {
    border-top: 0;
    background: #f3f4f6;
    font-weight: 700;
}

.metadata-view-name[b-thlgjyvi4y] {
    padding-left: calc(var(--category-depth) * 1.25rem);
    font-weight: 600;
}

.metadata-view-value[b-thlgjyvi4y] {
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 640px) {
    .metadata-view-page[b-thlgjyvi4y] {
        padding: 0.75rem;
    }

    .metadata-view-header[b-thlgjyvi4y],
    .metadata-view-row[b-thlgjyvi4y] {
        display: block;
    }

    .metadata-view-back[b-thlgjyvi4y] {
        display: inline-block;
        margin-top: 0.75rem;
    }
}
/* /Components/Pages/ChatMessageView.razor.rz.scp.css */
.message-view-page[b-zl0frpo83n] {
    min-height: 100%;
    padding: 1.5rem;
    background: #f6f3e3;
}

.message-view-card[b-zl0frpo83n] {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.message-view-header[b-zl0frpo83n] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee6ce;
    padding-bottom: 0.75rem;
}

.message-view-label[b-zl0frpo83n],
.message-view-date[b-zl0frpo83n] {
    color: #666;
    font-size: 0.85rem;
}

.message-view-header-actions[b-zl0frpo83n] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.message-view-back[b-zl0frpo83n] {
    display: inline-block;
    border-radius: 0.45rem;
    background: #6f42c1;
    color: #fff;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.message-view-back:hover[b-zl0frpo83n] {
    color: #fff;
    background: #59339d;
}

.message-view-header h1[b-zl0frpo83n] {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
}

.message-view-text[b-zl0frpo83n] {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .message-view-page[b-zl0frpo83n] {
        padding: 0.75rem;
    }

    .message-view-header[b-zl0frpo83n] {
        display: block;
    }

    .message-view-header-actions[b-zl0frpo83n] {
        align-items: flex-start;
        margin-top: 0.75rem;
    }
}

/* === BLAZORTC2-SETTINGS-UNSCOPED-V1 ===
   Р“Р»РѕР±Р°Р»СЊРЅС‹Рµ (РќР• scoped) СЃС‚РёР»Рё РґР»СЏ СЃС‚СЂР°РЅРёС† "РќР°СЃС‚СЂРѕР№РєР° РїРѕР»СЊР·РѕРІР°С‚РµР»СЏ"
   Рё "РљРѕРЅС„РёРіСѓСЂР°С†РёСЏ" вЂ” РєР°СЂРєР°СЃ РєР°Рє Сѓ Р»РµРЅС‚С‹ С‡Р°С‚Р° + СЂР°Р·РґРµР»С‹-С‚Р°Р±Р»Рѕ. */

/* ===== РљР°СЂРєР°СЃ (chat-shell) ===== */
.user-settings-shell,
.admin-shell {
    display: block;
    background: #f7f2dd;
    height: calc(100vh - 3.5rem);
    overflow: hidden;
}

.user-settings-messages,
.admin-shell-messages {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    position: relative;
}

.user-settings-main,
.admin-shell-main {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.user-settings-header,
.admin-shell-header {
    padding: 0.6rem 0.75rem 0.4rem;
    border-bottom: 1px solid #d3d3d3;
    color: #1c2f6d;
    background: #f3ecd1;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.user-settings-header .chat-room-title,
.admin-shell-header .chat-room-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c2f6d;
    margin: 0;
}

.user-settings-header .chat-current-user {
    font-size: 0.9rem;
    color: #33415f;
}

.user-settings-header .chat-current-user strong {
    color: #1c2f6d;
    font-weight: 700;
}

/* ===== Tabs РІРЅСѓС‚СЂРё С€Р°РїРєРё РєРѕРЅС„РёРіСѓСЂР°С†РёРё ===== */
.admin-shell-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.admin-shell-tab {
    -webkit-appearance: none;
    appearance: none;
    background: #fbf6e0;
    border: 1px solid #c6cbd3;
    border-bottom-color: transparent;
    border-radius: 6px 6px 0 0;
    color: #33415f;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.admin-shell-tab:hover {
    background: #f7f2dd;
    color: #1c2f6d;
}

.admin-shell-tab.is-active {
    background: #f7f2dd;
    color: #1c2f6d;
    border-color: #8a93a3 #8a93a3 #f7f2dd;
    font-weight: 700;
}

/* ===== РЎРєСЂРѕР»Р» РєР°Рє РІ Р»РµРЅС‚Рµ С‡Р°С‚Р° (С‚РѕР»СЊРєРѕ РІРЅСѓС‚СЂРё Р±Р»РѕРєР°) ===== */
.user-settings-body,
.admin-shell-body {
    padding: 0.75rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    scrollbar-width: thin;
    scrollbar-color: #8d9fbe #efe5c8;
}

.user-settings-body::-webkit-scrollbar,
.admin-shell-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.user-settings-body::-webkit-scrollbar-track,
.admin-shell-body::-webkit-scrollbar-track {
    background: #efe5c8;
}

.user-settings-body::-webkit-scrollbar-thumb,
.admin-shell-body::-webkit-scrollbar-thumb {
    background: #8d9fbe;
    border-radius: 8px;
    border: 2px solid #efe5c8;
}

.user-settings-body::-webkit-scrollbar-thumb:hover,
.admin-shell-body::-webkit-scrollbar-thumb:hover {
    background: #7489ad;
}

/* ===== Р‘Р»РѕРєРё-"РўР°Р±Р»Рѕ" (chat-tablo-modal) ===== */
.settings-tablo {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.7rem;
    background: #f7f2dd;
    border: 1px solid #8a93a3;
    border-radius: 6px;
    padding: 0.85rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.settings-tablo.is-collapsed {
    grid-template-rows: auto;
}

.settings-tablo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(120, 124, 132, 0.45);
    padding-bottom: 0.45rem;
}

.settings-tablo.is-collapsed .settings-tablo-header {
    border-bottom: 0;
    padding-bottom: 0;
}

.settings-tablo-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.settings-tablo-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1c2f6d;
}

/* РљРЅРѕРїРєР° "РЎРІРµСЂРЅСѓС‚СЊ" (РІРјРµСЃС‚Рѕ "Р—Р°РєСЂС‹С‚СЊ") */
.settings-tablo-collapse-btn {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(91, 96, 106, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    color: #1c2f6d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.settings-tablo-collapse-btn:hover {
    background: #fff;
    color: #244d93;
    border-color: rgba(28, 47, 109, 0.55);
}

.settings-tablo-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid #c6cbd3;
    border-radius: 4px;
    background: #eee5c9;
    padding: 0.65rem;
    color: #2f3136;
    font-size: 0.92rem;
    line-height: 1.35;
}

/* ===== РџРѕР»СЏ/РїРѕРґРїРёСЃРё/РєРЅРѕРїРєРё РІРЅСѓС‚СЂРё tablo-body ===== */
.settings-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-label {
    font-weight: 600;
    color: #1c2f6d;
    font-size: 0.92rem;
}

.settings-hint {
    font-size: 0.82rem;
    color: #4b5461;
}

.settings-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.6rem;
    border: 1px solid #c6cbd3;
    border-radius: 4px;
    background: #fbf6e0;
    color: #2f3136;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.3;
}

.settings-input:focus {
    outline: none;
    border-color: #2d5fb4;
    box-shadow: 0 0 0 2px rgba(45, 95, 180, 0.18);
}

.settings-input:disabled {
    background: #e8e1c4;
    color: #6b7280;
    cursor: not-allowed;
}

.settings-input-file {
    padding: 0.3rem 0.4rem;
    background: #fbf6e0;
}

.settings-photo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.settings-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.settings-btn {
    border: 1px solid #9fa6b2;
    background: #f0f0f0;
    color: #2f3136;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.settings-btn:hover {
    background: #e4e4e4;
}

.settings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.82rem;
}

.settings-btn-primary {
    border: 1px solid #264b8f;
    background: #2d5fb4;
    color: #fff;
}

.settings-btn-primary:hover {
    background: #244d93;
    color: #fff;
}

.settings-btn-danger {
    border: 1px solid #8a3030;
    background: #a53c3c;
    color: #fff;
}

.settings-btn-danger:hover {
    background: #8f2e2e;
    color: #fff;
}

.settings-btn-success {
    border: 1px solid #1f5f3a;
    background: #2c7a4e;
    color: #fff;
}

.settings-btn-success:hover {
    background: #235f3d;
    color: #fff;
}

.settings-btn-outline {
    border: 1px solid #8a93a3;
    background: #fbf6e0;
    color: #1c2f6d;
}

.settings-btn-outline:hover {
    background: #eee5c9;
}

/* ===== РђР»С‘СЂС‚С‹ ===== */
.user-settings-alert {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
}

.user-settings-alert-error {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

.user-settings-alert-success {
    background: #d1e7dd;
    border-color: #a3cfbb;
    color: #0a3622;
}

.user-settings-alert-warning {
    background: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
}

.user-settings-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===== РџСЂРµРІСЊСЋ С„РѕС‚Рѕ 20x20 ===== */
.user-photo-preview {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
    overflow: hidden;
    flex: 0 0 20px;
    box-sizing: border-box;
}

.user-photo-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.user-photo-placeholder {
    color: #9aa0a6;
    font-size: 12px;
    line-height: 1;
}

/* ===== Bootstrap-СЌР»РµРјРµРЅС‚С‹ РІРЅСѓС‚СЂРё admin-shell-body вЂ” РїСЂРёРІРµРґРµРЅРёРµ Рє СЃС‚РёР»СЋ ===== */
.admin-shell-body .table {
    background: #fbf6e0;
    color: #2f3136;
    border-color: #c6cbd3;
}

.admin-shell-body .table > :not(caption) > * > * {
    border-bottom-color: #c6cbd3;
    background: transparent;
}

.admin-shell-body .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f3ecd1;
    color: #2f3136;
}

.admin-shell-body .table tbody tr:hover > * {
    background-color: #efe5c8;
    color: #1c2f6d;
}

.admin-shell-body .form-control,
.admin-shell-body .form-select,
.admin-shell-body textarea.form-control {
    background: #fbf6e0;
    border: 1px solid #c6cbd3;
    color: #2f3136;
}

.admin-shell-body .form-control:focus,
.admin-shell-body .form-select:focus,
.admin-shell-body textarea.form-control:focus {
    border-color: #2d5fb4;
    box-shadow: 0 0 0 2px rgba(45, 95, 180, 0.18);
    background: #fff;
}

.admin-shell-body .form-label {
    color: #1c2f6d;
    font-weight: 600;
    font-size: 0.88rem;
}

.admin-shell-body .form-text {
    color: #4b5461;
}

.admin-shell-body .text-muted {
    color: #4b5461 !important;
}

.admin-shell-body code {
    background: #fbf6e0;
    color: #1c2f6d;
    padding: 0 0.2rem;
    border-radius: 3px;
    border: 1px solid #d4d8df;
}

.admin-shell-body .btn-primary {
    border: 1px solid #264b8f;
    background: #2d5fb4;
    color: #fff;
}

.admin-shell-body .btn-primary:hover {
    background: #244d93;
}

.admin-shell-body .btn-outline-secondary {
    border: 1px solid #8a93a3;
    background: #fbf6e0;
    color: #1c2f6d;
}

.admin-shell-body .btn-outline-secondary:hover {
    background: #eee5c9;
}

/* ===== Р”РµСЂРµРІСЊСЏ (РјРµС‚Р°РґР°РЅРЅС‹Рµ/РјРѕРґСѓР»Рё) РІРЅСѓС‚СЂРё tablo-body ===== */
.admin-shell-body .metadata-tree {
    max-height: 360px;
    overflow: auto;
    background: linear-gradient(180deg, #fff, #fbf8ff);
    scrollbar-width: thin;
    scrollbar-color: #8d9fbe #efe5c8;
}

.admin-shell-body .metadata-tree::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.admin-shell-body .metadata-tree::-webkit-scrollbar-track {
    background: #efe5c8;
}

.admin-shell-body .metadata-tree::-webkit-scrollbar-thumb {
    background: #8d9fbe;
    border-radius: 8px;
}

@media (max-width: 640.98px) {
    .user-settings-shell,
    .admin-shell {
        height: calc(100dvh - 3.5rem);
    }
}

/* === BLAZORTC2-SCRIPT-EDITOR-UNSCOPED-V1 ===
   Глобальные (НЕ scoped) стили редактора скрипта /admin/modules/{id}/script.
   Каркас (chat-shell / settings-tablo) уже определён выше; здесь только сам
   редактор кода + блок результата проверки синтаксиса.
   Подсветка (.syntax-*) живёт в ModuleScriptEditor.razor.css через ::deep,
   потому что классы пишет HighlightOneCScript на стороне сервера.
*/

/* Раздел-«табло» с редактором: тянется вниз до низа рабочей области (как у ленты). */
.module-script-editor-shell .user-settings-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.module-script-editor-shell .user-settings-body .user-settings-alert,
.module-script-editor-shell .user-settings-body .user-settings-muted {
    flex: 0 0 auto;
}

/* Переопределяем .settings-tablo (grid) на flex-колонку, чтобы body мог flex:1. */
.module-script-editor-shell .settings-tablo.settings-tablo-script {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.55rem;
}

.module-script-editor-shell .settings-tablo.settings-tablo-script .settings-tablo-header {
    flex: 0 0 auto;
}

/* Блок «Проверка синтаксиса» снизу — не съедает высоту у редактора. */
.module-script-editor-shell .user-settings-body .settings-tablo:not(.settings-tablo-script) {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(40vh, 22rem);
    overflow: auto;
}

.module-script-editor-shell .settings-tablo-meta {
    font-size: 0.78rem;
    color: #4b5461;
    font-weight: 400;
    line-height: 1.25;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(60vw, 36rem);
}

.module-script-editor-shell .settings-actions-script {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: 0.55rem;
}

.module-script-editor-shell .settings-tablo-body-script {
    /* Кнопки вверху, редактор к низу секции */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.55rem;
    padding: 0.55rem;
}

/* ---- сам редактор кода: заполняет низ «табло» (привязка к низу каркаса) ---- */
.module-script-editor-shell .script-editor-shell {
    flex: 1 1 auto;
    min-height: 10rem;
    height: auto;
    align-self: stretch;
    grid-template-rows: minmax(0, 1fr);
}

/* Глобальный .script-editor-shell: компактая высота, если нет .module-script-editor-shell */
.script-editor-shell {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 10rem;
    height: 28vh;
    border: 1px solid #c6cbd3;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.script-line-numbers {
    margin: 0;
    padding: 0.65rem 0.5rem;
    border-right: 1px solid #d8dde8;
    background: #eef2f7;
    color: #7a8495;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
    white-space: pre;
    overflow: hidden;
    user-select: none;
}

.script-editor-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: #fbfcff;
}

.script-highlight,
.script-textarea {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.script-highlight {
    color: #212529;
    pointer-events: none;
    min-height: 100%;
}

.script-textarea {
    color: transparent;
    caret-color: #111827;
    background: transparent;
    resize: none;
    outline: none;
    overflow-wrap: break-word;
}

.script-textarea::selection {
    background: rgba(13, 110, 253, 0.25);
}

/* ---- табло «Проверка синтаксиса» ---- */
.settings-tablo-body-check {
    /* Унификация отступов и стиль монопространственного шрифта */
    padding: 0;
    overflow: hidden;
}

.settings-tablo-body-check.is-ok {
    border-color: #6cbf6c;
    background: #e8f5e8;
}

.settings-tablo-body-check.is-err {
    border-color: #c46a6a;
    background: #fbe9e7;
}

.settings-tablo-body-check .script-check-text {
    margin: 0;
    padding: 0.65rem 0.85rem;
    max-height: 16rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #2f3136;
    scrollbar-width: thin;
    scrollbar-color: #8d9fbe #efe5c8;
}

.settings-tablo-body-check .script-check-text::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.settings-tablo-body-check .script-check-text::-webkit-scrollbar-thumb {
    background: #8d9fbe;
    border-radius: 8px;
}

@media (max-width: 640.98px) {
    .script-editor-shell {
        height: 40vh;
        min-height: 8rem;
    }

    .module-script-editor-shell .script-editor-shell {
        min-height: 6rem;
    }

    .module-script-editor-shell .user-settings-body {
        overflow-y: auto;
    }

    .module-script-editor-shell .settings-tablo-meta {
        white-space: normal;
        max-width: none;
    }
}

