/* /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: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    flex: 0 0 3.5rem;
}

.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] {
        display: none;
    }

    .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/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: auto 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-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.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-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-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-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: auto minmax(0, 1fr) auto auto;
    }

    .chat-messages-header[b-ixdstcwdwy] {
        padding: 0.6rem 0.75rem;
    }

    .chat-messages-body[b-ixdstcwdwy] {
        padding: 0.65rem;
    }

    .chat-message[b-ixdstcwdwy] {
        max-width: calc(100vw - 2rem);
    }

    .chat-message.mine[b-ixdstcwdwy] {
        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;
}
