/* =========================================================
   ChrisEmm Connect – kompakte Onlineliste 1.0.2
   ========================================================= */

.online-user {
    display: grid !important;
    grid-template-columns:
        48px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 11px !important;
    min-width: 0 !important;
}

.online-user-info {
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
}

.online-member-topline {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    line-height: 1.2;
}

.online-member-name {
    min-width: 0;
    overflow: hidden;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-member-age {
    flex: 0 0 auto;
    color: #d7def0;
    font-size: 0.78rem;
    font-weight: 800;
}

.online-member-age::after {
    content: "";
}

.online-member-gender {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(137, 151, 185, 0.24);
    border-radius: 7px;
    color: #dce4f5;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.93rem;
    font-weight: 900;
    line-height: 1;
}

.online-member-gender.is-male {
    color: #8fc8ff;
    border-color: rgba(73, 157, 255, 0.28);
    background: rgba(73, 157, 255, 0.10);
}

.online-member-gender.is-female {
    color: #ff9fd1;
    border-color: rgba(255, 101, 181, 0.28);
    background: rgba(255, 101, 181, 0.10);
}

.online-member-gender.is-diverse,
.online-member-gender.is-custom {
    color: #c8a6ff;
    border-color: rgba(166, 112, 255, 0.30);
    background: rgba(166, 112, 255, 0.11);
}

.online-member-roleline {
    display: flex;
    align-items: center;
    min-width: 0;
}

.online-member-role {
    overflow: hidden;
    color: var(--muted, #93a2bf) !important;
    font-size: 0.69rem !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-user > .online-status,
.online-user > .online-indicator,
.online-user > .status-dot {
    justify-self: end;
}

.online-user > .whisper-user-button {
    grid-column: 2 / 4;
    justify-self: start;
    margin: 5px 0 0 !important;
}

/*
 * Die alte Metadatenzeile wird durch die kompakte Kopfzeile ersetzt.
 */
.online-user-info > .chat-member-details {
    display: none !important;
}

@media (max-width: 560px) {
    .online-user {
        grid-template-columns:
            44px minmax(0, 1fr) auto !important;
    }

    .online-member-name {
        font-size: 0.86rem !important;
    }

    .online-member-age {
        font-size: 0.73rem;
    }

    .online-member-gender {
        width: 20px;
        height: 20px;
        font-size: 0.84rem;
    }
}
