/* CHAT MOBILE FIX */
@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 0.5rem !important;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-header h1 {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    .main-header > div {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 0.5em;
    }

    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 0 !important; /* collapse vertical spacing */
    }

    .nav-link {
        display: inline-flex !important;
        align-items: center;
        gap: 0.4em;
        white-space: nowrap;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
        box-sizing: border-box;

        /* collapse padding + margin */
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }

    .main-header > div > div:nth-child(2),
    .main-header > div > #user-header-info {
        order: 2;
        width: 100%;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5em;
        margin-bottom: 0.5em;
    }

    .main-header img {
        width: 28px !important;
        height: 18px !important;
    }
}
