def style_error(message: str) -> str:
"""
Style an error message with a muted red background and border.
Args:
message: The error message to style
Returns:
str: HTML-formatted error message with styling
"""
return f"""
"""
def format_error(error: Exception, prefix: str = "") -> str:
"""
Format an exception into a user-friendly error message.
Args:
error: The exception to format
prefix: Optional prefix for the error message
Returns:
str: Styled error message
"""
error_msg = str(error)
if len(error_msg) > 100:
error_msg = error_msg[:100] + "..."
if prefix:
error_msg = f"{prefix}: {error_msg}"
return style_error(error_msg)