body { font-family: Arial, sans-serif; margin: 20px; } input, button { padding: 10px; margin: 5px 0; } table { width: 100%; margin-top: 20px; border-collapse: collapse; } table, th, td { border: 1px solid #ccc; } th, td { padding: 5px; text-align: right; } th { background-color: #f4f4f4; } .legend {…