[layout] better card and temporary message layout with stroke and better positioning