/* FIXED HEADER LAYOUT - SAFE RESTORE V2 */

/* 1. Reset the Username Block to allow normal flow */
.i_post_username {
    display: block !important;
    width: auto !important;
    margin-right: 40px !important;
    /* Space for menu */
    white-space: normal !important;
    /* Allow wrapping if needed */
}

/* 2. Target the link inside to align connection/badges inline */
.i_post_username a.truncated {
    display: inline-block !important;
    /* Not flex, to act like text */
    vertical-align: middle !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 3. Badges alignment - keep them inline with text */
.i_post_username svg,
.i_post_username img,
.user_verified_status,
.is_vip,
.is_creator {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 3px !important;
    position: relative !important;
    top: -1px !important;
    /* Micro-adjustment for alignment */
}

/* 4. Handle and Time Wrapper - Inline with name or below? 
   Based on image, it looks like: Name [Badges] [Connection]
   Then handle/time might be next to it or below. 
   Let's keep them inline if possible, or gracefully wrap.
*/
.i_post_shared_time {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 5px !important;
    font-size: 13px !important;
    color: #8a96a3 !important;
}

/* 5. Mobile Adjustments */
@media screen and (max-width: 480px) {
    .i_post_username {
        margin-right: 35px !important;
        /* Ensure menu doesn't overlap text */
        font-size: 14px !important;
    }
}

/* 6. Ensure Menu is absolutely positioned to the right */
.i_post_menu {
    position: absolute !important;
    top: 5px !important;
    right: 15px !important;
    display: block !important;
    z-index: 99 !important;
}

.i_post_menu .i_post_menu_dot {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}