def parse_inline_css(style: str) -> dict:
    """Parse an inline CSS 'style' string into a dictionary."""
    css = {}
    for key_value_str in style.split(';'):
        key, value = key_value_str.split(':')

        key = key.strip()

        value = value.strip()
        try:
            value = int(value)
        except ValueError:
            pass
        try:
            value = float(value)
        except ValueError:
            pass

        css[key] = value
    return css