@scope (#page-chat) {
    .page-content {
        display: grid;
        grid-template-columns: minmax(0, min(25%, 200px)) minmax(0, 1fr);
        /*         grid-template-columns: auto 1fr; */
        gap: 16px;
        flex: 1;
        min-height: 0;
    }

    .chat {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        min-width: 0;
        /* need this cuz it defaults to auto when unspecified */
        min-height: 0;
    }

    .bottom {
        text-align: center;
        display: flex;
        flex-direction: row;
    }

    #chat-input {
        width: 100%;
        padding-left: 6px;
        padding-right: 6px;
    }

    #chat-send {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom>* {
        margin-left: 1.5px;
        margin-right: 1.5px;
    }

    .msg-container {
        min-height: 0;
        overflow-y: auto;
        padding: 16px;
    }

    /* ============ users ============================= */
    .users {
        padding: 16px;
        min-width: 0;
        max-width: 200px;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }


    /* ============ chat messages ===================== */

    .msg {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 6px;
        border-radius: 6.7px;
        margin-bottom: 6.7px;
    }

    .msg-avatar {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .msg-content {
        min-width: 0;
        flex: 1;
    }

    .msg-meta {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }

    .msg-username,
    .msg-time,
    .msg-text {
        margin: 0;
    }

    .msg-time {
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .msg-text {
        overflow-wrap: anywhere;
        text-align: left;
    }
}