/* AP Manager branding display fix v2
   - desktop sidebar stays strong
   - login/register/onboarding stay large
   - mobile header gets better alignment and a more visible mark
*/

/* Desktop sidebar */
.platform-logo.sidebar-logo {
    width: 220px;
    max-width: 100%;
    max-height: 68px;
}

.brand.platform-brand {
    padding: 6px 4px 22px;
}

/* Login / register / onboarding */
.platform-logo.auth {
    width: 310px;
    max-width: 100%;
    max-height: 92px;
}

.auth-logo-row.brand-image-row {
    align-items: center;
    justify-content: flex-start;
}

/* Default mobile/topbar brand */
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    line-height: 1;
}

.platform-mark.mobile-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    display: block;
}

.mobile-brand strong {
    display: flex;
    align-items: center;
    height: 48px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    top: -1px;
}

/* Tablet / smaller screens */
@media (max-width: 768px) {
    .mobile-brand {
        gap: 12px;
        min-height: 54px;
    }

    .platform-mark.mobile-mark {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .mobile-brand strong {
        height: 52px;
        font-size: 18px;
    }
}

/* Phones */
@media (max-width: 520px) {
    .platform-logo.auth {
        width: 270px;
        max-height: 82px;
    }

    .platform-logo.sidebar-logo {
        width: 210px;
        max-height: 64px;
    }

    .mobile-brand {
        gap: 10px;
        min-height: 50px;
    }

    .platform-mark.mobile-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .mobile-brand strong {
        height: 50px;
        font-size: 17px;
        top: -1px;
    }
}

/* Very small phones */
@media (max-width: 390px) {
    .mobile-brand {
        gap: 8px;
    }

    .platform-mark.mobile-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .mobile-brand strong {
        height: 46px;
        font-size: 16px;
    }
}
