/* Profile-only responsive composition, loaded after the shared theme styles. */

@media (max-width: 767.98px) {
    .profile-v3-modern .profile-v3-cover {
        min-height: 0;
        padding: 22px 16px 18px;
    }

    .profile-v3-modern .profile-v3-command {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        align-content: start;
        align-items: center;
        justify-items: center;
        gap: 13px;
        margin: 0;
        text-align: center;
        transform: none !important;
    }

    .profile-v3-modern .profile-v3-avatar {
        grid-column: 1;
        justify-self: center;
        width: 98px;
        height: 98px;
        margin: 0 auto;
    }

    .profile-v3-modern .profile-v3-identity {
        grid-column: 1;
        display: grid;
        justify-items: center;
        width: 100%;
        min-width: 0;
        gap: 8px;
        text-align: center;
    }

    .profile-v3-modern .profile-v3-eyebrow {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        text-align: center;
    }

    .profile-v3-modern .profile-v3-name {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        gap: 8px;
        text-align: center;
    }

    .profile-v3-modern .profile-v3-name h1 {
        max-width: 100%;
        margin: 0;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .profile-v3-modern .profile-v3-status {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .profile-v3-modern .profile-v3-command-actions {
        position: static !important;
        inset: auto !important;
        grid-column: 1;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        justify-self: center;
        width: min(100%, 320px);
        margin: 2px auto 0;
        padding: 0;
        gap: 9px;
        transform: none !important;
    }

    .profile-v3-modern .profile-v3-command-actions .profile-reference-level {
        position: static !important;
        inset: auto !important;
        order: 1;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        transform: none !important;
    }

    .profile-v3-modern .profile-v3-command-actions .profile-action-menu {
        order: 2;
        flex: 0 0 44px;
        align-self: stretch;
    }

    .profile-v3-modern .profile-action-menu-toggle {
        width: 44px;
        height: 100%;
        min-height: 44px;
    }
}

@media (max-width: 399.98px) {
    .profile-v3-modern .profile-v3-cover {
        padding-inline: 12px;
    }

    .profile-v3-modern .profile-v3-command-actions {
        width: 100%;
    }
}

/* Unified compact presence cards for the profile side rail. */
.discord-presence,
.steam-presence {
    min-height: 158px;
    transition: min-height 180ms ease, padding 180ms ease;
}

.presence-card-offline .discord-presence,
.presence-card-offline .steam-presence {
    min-height: 0;
}

.discord-user,
.steam-user {
    min-height: 46px;
    gap: 11px;
}

.discord-avatar-wrap,
.steam-avatar-wrap {
    position: relative;
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: visible;
    background: #11110f;
    border: 1px solid var(--modern-border);
    border-radius: 9px;
    box-shadow: none;
}

.discord-avatar-wrap > img,
.steam-avatar-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.discord-dot,
.steam-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    border: 3px solid #11110f;
    border-radius: 50%;
}

.presence-card-offline .discord-dot,
.presence-card-offline .steam-dot {
    background: #77746d;
    box-shadow: none;
}

.discord-copy,
.steam-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.discord-status-label,
.steam-status-label {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}

.presence-card-offline .discord-status-label,
.presence-card-offline .steam-status-label {
    color: #aaa69d;
    background: #171714;
    border: 1px solid #34332e;
}

.presence-card-offline .discord-activity,
.presence-card-offline .steam-activity {
    display: none;
}

@media (max-width: 399.98px) {
    .discord-user,
    .steam-user {
        align-items: center;
    }

    .discord-status-label,
    .steam-status-label {
        padding-inline: 7px;
    }
}
